From: Steven Toth Date: Thu, 10 Jan 2008 05:09:27 +0000 (-0300) Subject: V4L/DVB (7004): cx23885: Ensure HVR1800 TDA8295A is reset fully on module load X-Git-Tag: v2.6.25-rc1~1235^2~59 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5206d6ec36e2c66090c3c02c95b8d70c356a9ad3;p=karo-tx-linux.git V4L/DVB (7004): cx23885: Ensure HVR1800 TDA8295A is reset fully on module load Failure to do this means that a full system reboot is required if the part hangs. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx23885/cx23885-cards.c b/drivers/media/video/cx23885/cx23885-cards.c index aa0ddf2ea224..901bebcca7c3 100644 --- a/drivers/media/video/cx23885/cx23885-cards.c +++ b/drivers/media/video/cx23885/cx23885-cards.c @@ -268,7 +268,13 @@ void cx23885_gpio_setup(struct cx23885_dev *dev) /* GPIO-15-18 cx23417 READY, CS, RD, WR */ /* GPIO-19 IR_RX */ - cx_set(GP0_IO, 0x00040004); /* Bring the tuner out of reset */ + /* Force the TDA8295A into reset and back */ + cx_set(GP0_IO, 0x00040004); + mdelay(20); + cx_clear(GP0_IO, 0x00000004); + mdelay(20); + cx_set(GP0_IO, 0x00040004); + mdelay(20); break; } }