drm/i2c: tda998x: handle all outstanding interrupts
commitec5d3e83d332ac5dfde8e0a1f57393fc91d55030
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 6 Jun 2015 20:41:10 +0000 (6 21:41 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 15 Sep 2015 15:19:49 +0000 (15 16:19 +0100)
tree16c4f6055e238df4450e6e514b2a05a3a0070492
parente66e03abf80f701da60ae085cbb913e67ce6741d
drm/i2c: tda998x: handle all outstanding interrupts

As reading the interrupt registers clears the outstanding interrupts, we
must process all received interrupts to avoid dropping any.  Rearrange
the code to achieve this, and properly check for a HPD interrupt from
the CEC_RXSHPDINT register.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c