aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2015-02-18 08:19:33 -0500
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2015-03-19 06:28:55 -0400
commita5241289c4139f0521b89e34a70f5f998463ae15 (patch)
tree7b5e84d23a3f4c544c9a5c740ccdb299c719bcc7 /samples
parent2e96206c4f952295e11c311fbb2a7aa2105024af (diff)
drm: adv7511: Fix nested sleep when reading EDID
The EDID read code waits for the read completion interrupt to occur using wait_event_interruptible(). The condition passed to the macro reads I2C registers. This results in sleeping with the task state set to TASK_INTERRUPTIBLE, triggering a WARN_ON() introduced in commit 8eb23b9f35aae ("sched: Debug nested sleeps"). Fix this by reworking the EDID read code. Instead of checking whether the read is complete through I2C reads, handle the interrupt registers in the interrupt handler and update a new edid_read flag accordingly. As a side effect both the IRQ and polling code paths now process the interrupt sources through the same code path, simplifying the code. Cc: stable@vger.kernel.org Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions