]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[media] si2168: debug printout for firmware version
authorOlli Salonen <olli.salonen@iki.fi>
Thu, 27 Nov 2014 19:42:22 +0000 (16:42 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 4 Dec 2014 15:59:04 +0000 (13:59 -0200)
A debug printout for firmware version.

Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/si2168.c

index bec3aa5ed0a07cefe55cb805acca334ddf5213dd..6da38e859cbceac9439565b55bae97a75d9ab8bc 100644 (file)
@@ -489,6 +489,17 @@ static int si2168_init(struct dvb_frontend *fe)
        if (ret)
                goto err;
 
+       /* query firmware version */
+       memcpy(cmd.args, "\x11", 1);
+       cmd.wlen = 1;
+       cmd.rlen = 10;
+       ret = si2168_cmd_execute(s, &cmd);
+       if (ret)
+               goto err;
+
+       dev_dbg(&s->client->dev, "firmware version: %c.%c.%d\n",
+                       cmd.args[6], cmd.args[7], cmd.args[8]);
+
        /* set ts mode */
        memcpy(cmd.args, "\x14\x00\x01\x10\x10\x00", 6);
        cmd.args[4] |= s->ts_mode;