Commit 1d812ad2 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

media: imx: imx7-mipi-csis: Remove link setup on source pad

The driver rejects enablement of multiple links on its source pad. This
isn't needed, as the CSIS doesn't care. Drop it.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: default avatarRui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 2c2ae48d
...@@ -254,7 +254,6 @@ struct csi_state { ...@@ -254,7 +254,6 @@ struct csi_state {
struct csis_hw_reset hw_reset; struct csis_hw_reset hw_reset;
struct regulator *mipi_phy_regulator; struct regulator *mipi_phy_regulator;
bool sink_linked;
}; };
struct csis_pix_format { struct csis_pix_format {
...@@ -675,17 +674,7 @@ static int mipi_csis_link_setup(struct media_entity *entity, ...@@ -675,17 +674,7 @@ static int mipi_csis_link_setup(struct media_entity *entity,
mutex_lock(&state->lock); mutex_lock(&state->lock);
if (local_pad->flags & MEDIA_PAD_FL_SOURCE) { if (local_pad->flags & MEDIA_PAD_FL_SINK) {
if (flags & MEDIA_LNK_FL_ENABLED) {
if (state->sink_linked) {
ret = -EBUSY;
goto out;
}
state->sink_linked = true;
} else {
state->sink_linked = false;
}
} else {
if (flags & MEDIA_LNK_FL_ENABLED) { if (flags & MEDIA_LNK_FL_ENABLED) {
if (state->src_sd) { if (state->src_sd) {
ret = -EBUSY; ret = -EBUSY;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment