From: Antti Palosaari Date: Mon, 2 Jul 2012 07:45:53 +0000 (-0300) Subject: [media] a8293: fix register 00 init value X-Git-Tag: firefly_0821_release~3680^2~275^2~1973 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f3e16df60bbad0a5447cee55c5def2550714af84;p=firefly-linux-kernel-4.4.55.git [media] a8293: fix register 00 init value Value 0x00 was written instead of 0x10 which was aim. Bit4 is overcurrent disable timer - ODT. According to datasheet ODT functions are always enabled but setting it 1 is still recommended. Thanks to Aubin Constans to pointing that bug. Reported-by: Aubin Constans Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/a8293.c b/drivers/media/dvb/frontends/a8293.c index bb56497e940a..711bd33f1f5c 100644 --- a/drivers/media/dvb/frontends/a8293.c +++ b/drivers/media/dvb/frontends/a8293.c @@ -154,7 +154,7 @@ struct dvb_frontend *a8293_attach(struct dvb_frontend *fe, /* ENB=0 */ priv->reg[0] = 0x10; - ret = a8293_wr(priv, &priv->reg[1], 1); + ret = a8293_wr(priv, &priv->reg[0], 1); if (ret) goto err;