]> git.hungrycats.org Git - linux/commit
[media] adv7604: fix tx 5v detect regression
authorHans Verkuil <hansverk@cisco.com>
Wed, 10 Feb 2016 10:09:10 +0000 (08:09 -0200)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 7 Mar 2016 17:27:13 +0000 (12:27 -0500)
commitf0b73a580df467705a7a316daf03a0ecdac1ec8c
tree5c7c9d184653a174e9c4cc30d3e0cc70c1e8fe3b
parent9a30ae51a5bb55570004afba8016611cff882cb2
[media] adv7604: fix tx 5v detect regression

[ Upstream commit 0ba4581c84cfb39fd527f6b3457f1c97f6356c04 ]

The 5 volt detect functionality broke in 3.14: the code reads IO register 0x70
again after it has already been cleared. Instead it should use the cached
irq_reg_0x70 value and the io_write to 0x71 to clear 0x70 can be dropped since
this has already been done.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: <stable@vger.kernel.org> # for v3.14 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/media/i2c/adv7604.c