From: Darron Broad Date: Sat, 11 Oct 2008 14:35:56 +0000 (-0300) Subject: V4L/DVB (9226): MFE: cx88: Reset cx22702 on hvr-3000/4000 X-Git-Tag: v2.6.28-rc1~256^2~64 X-Git-Url: http://pilppa.org/gitweb/?a=commitdiff_plain;h=2f3af9e64de44743a860fd1eee966222a7accc54;p=linux-2.6-omap-h63xx.git V4L/DVB (9226): MFE: cx88: Reset cx22702 on hvr-3000/4000 The cx22702 is now always reset on module load. Prior to this the cx22702 was not found on i2c scan without a full reset. Signed-off-by: Darron Broad Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx88/cx88-cards.c b/drivers/media/video/cx88/cx88-cards.c index 402a5db90e4..3ef49c7a251 100644 --- a/drivers/media/video/cx88/cx88-cards.c +++ b/drivers/media/video/cx88/cx88-cards.c @@ -2664,10 +2664,13 @@ static void cx88_card_setup_pre_i2c(struct cx88_core *core) case CX88_BOARD_HAUPPAUGE_HVR3000: case CX88_BOARD_HAUPPAUGE_HVR4000: - case CX88_BOARD_HAUPPAUGE_HVR4000LITE: /* Init GPIO */ cx_write(MO_GP0_IO, core->board.input[0].gpio0); udelay(1000); + cx_clear(MO_GP0_IO, 0x00000080); + udelay(50); + cx_set(MO_GP0_IO, 0x00000080); /* 702 out of reset */ + udelay(1000); break; } }