]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i2c: tda998x: don't read write-only registers
authorJean-Francois Moine <moinejf@free.fr>
Sat, 25 Jan 2014 17:14:42 +0000 (18:14 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 13 Feb 2014 19:41:48 +0000 (19:41 +0000)
commit81b53a166f5cdf4e5bec47fc8884c994de82dc6b
treee368105a435205e09107e7830912c9a0643bfa66
parent73d5e253ac641bf95f5836c064128be78f43cd0b
drm/i2c: tda998x: don't read write-only registers

This patch takes care of the write-only registers of the tda998x.

The registers SOFTRESET, TBG_CNTRL_0 and TBG_CNTRL_1 have all bits
cleared after reset, so, they may be fully re-written.

The register MAT_CONTRL is set to
MAT_CONTRL_MAT_BP | MAT_CONTRL_MAT_SC(1)
after reset, so, it may be fully set again to this value.

Tested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c