[media] ad9389b: trigger edid re-read by power-cycle chip
Signed-off-by: Martin Bugge <marbugge@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
7be4f88811
commit
15edc1ccdb
|
@ -855,8 +855,10 @@ static void ad9389b_edid_handler(struct work_struct *work)
|
||||||
* (DVI connectors are particularly prone to this problem). */
|
* (DVI connectors are particularly prone to this problem). */
|
||||||
if (state->edid.read_retries) {
|
if (state->edid.read_retries) {
|
||||||
state->edid.read_retries--;
|
state->edid.read_retries--;
|
||||||
/* EDID read failed, trigger a retry */
|
v4l2_dbg(1, debug, sd, "%s: edid read failed\n", __func__);
|
||||||
ad9389b_wr(sd, 0xc9, 0xf);
|
state->have_monitor = false;
|
||||||
|
ad9389b_s_power(sd, false);
|
||||||
|
ad9389b_s_power(sd, true);
|
||||||
queue_delayed_work(state->work_queue,
|
queue_delayed_work(state->work_queue,
|
||||||
&state->edid_handler, EDID_DELAY);
|
&state->edid_handler, EDID_DELAY);
|
||||||
return;
|
return;
|
||||||
|
@ -1019,7 +1021,6 @@ static bool ad9389b_check_edid_status(struct v4l2_subdev *sd)
|
||||||
segment = ad9389b_rd(sd, 0xc4);
|
segment = ad9389b_rd(sd, 0xc4);
|
||||||
if (segment >= EDID_MAX_SEGM) {
|
if (segment >= EDID_MAX_SEGM) {
|
||||||
v4l2_err(sd, "edid segment number too big\n");
|
v4l2_err(sd, "edid segment number too big\n");
|
||||||
state->have_monitor = false;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
v4l2_dbg(1, debug, sd, "%s: got segment %d\n", __func__, segment);
|
v4l2_dbg(1, debug, sd, "%s: got segment %d\n", __func__, segment);
|
||||||
|
|
Loading…
Reference in New Issue