summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/frontends/dst.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/dst.c b/linux/drivers/media/dvb/frontends/dst.c
index a82fdc404..ae2a68313 100644
--- a/linux/drivers/media/dvb/frontends/dst.c
+++ b/linux/drivers/media/dvb/frontends/dst.c
@@ -159,21 +159,25 @@ static int dst_gpio_inb(struct dst_data *dst, u8 *result)
}
#define DST_I2C_ENABLE 1
-#define DST_8820 2
+#define DST_8820 4
static int
dst_reset8820(struct dst_data *dst)
{
int retval;
- /* pull 8820 gpio pin low, wait, then release it */
+ /* pull 8820 gpio pin low, wait, high, wait, then low */
// dprintk ("%s: reset 8820\n", __FUNCTION__);
retval = dst_gpio_outb(dst, DST_8820, DST_8820, 0);
if (retval < 0)
return retval;
- udelay(10);
+ dvb_delay(10);
retval = dst_gpio_outb(dst, DST_8820, DST_8820, DST_8820);
if (retval < 0)
return retval;
+ dvb_delay(10);
+ retval = dst_gpio_outb(dst, DST_8820, DST_8820, 0);
+ if (retval < 0)
+ return retval;
return 0;
}