Skip to content

Commit

Permalink
fix(media:mipi) Fix the problem that the dual camera fails to start
Browse files Browse the repository at this point in the history
Summary:
	The following bugs were fixed
		vps mipi_host0: port2 busy error
		vps mipi_host0: require 2lane error!!!

Signed-off-by: luojiale <[email protected]>
  • Loading branch information
joeiilua committed May 25, 2023
1 parent 9deb261 commit 42d39e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/platform/hobot/mipi/hobot_mipi_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,8 +899,9 @@ static int32_t mipi_host_configure_lanemode(mipi_hdev_t *hdev, int lane)
mipierr("port%d not support %dlane",
hdev->port, lane);
return -1;
} else if ((target_mode == hdev->lane_mode) && (target_mode == 0)) {
goto match_ex_hdev;
}

mipiinfo("change group%d lane_mode to %d for %dlane",
group, target_mode, lane);
if (host->state != MIPI_STATE_DEFAULT) {
Expand All @@ -923,6 +924,7 @@ static int32_t mipi_host_configure_lanemode(mipi_hdev_t *hdev, int lane)
if (poth < MIPI_HOST_MAX_NUM && g_hdev[poth])
g_hdev[poth]->lane_mode = target_mode;

match_ex_hdev:
if (target_mode) {
if (poth < MIPI_HOST_MAX_NUM && g_hdev[poth] &&
g_hdev[poth]->host.state == MIPI_STATE_DEFAULT) {
Expand Down

0 comments on commit 42d39e3

Please sign in to comment.