Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26c3cd9b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/dsi-staging: set default topology" into dev/msm-4.14-display

parents f2912d45 3dae3833
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -1989,11 +1989,12 @@ static void dsi_display_parse_cmdline_topology(struct dsi_display *display,
	char *boot_str = NULL;
	char *str = NULL;
	char *sw_te = NULL;
	unsigned long value;
	unsigned long cmdline_topology = NO_OVERRIDE;
	unsigned long cmdline_timing = NO_OVERRIDE;

	if (display_type >= MAX_DSI_ACTIVE_DISPLAY) {
		pr_err("display_type=%d not supported\n", display_type);
		return;
		goto end;
	}

	if (display_type == DSI_PRIMARY)
@@ -2007,27 +2008,29 @@ static void dsi_display_parse_cmdline_topology(struct dsi_display *display,

	str = strnstr(boot_str, ":config", strlen(boot_str));
	if (!str)
		return;
		goto end;

	if (kstrtol(str + strlen(":config"), INT_BASE_10,
				(unsigned long *)&value)) {
				(unsigned long *)&cmdline_topology)) {
		pr_err("invalid config index override: %s\n", boot_str);
		return;
		goto end;
	}
	display->cmdline_topology = value;

	str = strnstr(boot_str, ":timing", strlen(boot_str));
	if (!str)
		return;
		goto end;

	if (kstrtol(str + strlen(":timing"), INT_BASE_10,
				(unsigned long *)&value)) {
				(unsigned long *)&cmdline_timing)) {
		pr_err("invalid timing index override: %s. resetting both timing and config\n",
			boot_str);
		display->cmdline_topology = NO_OVERRIDE;
		return;
		cmdline_topology = NO_OVERRIDE;
		goto end;
	}
	display->cmdline_timing = value;
	pr_debug("successfully parsed command line topology and timing\n");
end:
	display->cmdline_topology = cmdline_topology;
	display->cmdline_timing = cmdline_timing;
}

/**