[media] si2157: print firmware version
authorAntti Palosaari <crope@iki.fi>
Sat, 6 Dec 2014 20:25:24 +0000 (17:25 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 29 Jan 2015 20:49:45 +0000 (18:49 -0200)
Firmware version could be printed similarly than si2168 driver does.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/tuners/si2157.c

index 3f9aa7ae1613587064772b30b69ad76349ad30b1..6ae76204ddd48e575a8e3b779db74cbd81ee90e4 100644 (file)
@@ -184,6 +184,17 @@ skip_fw_download:
        if (ret)
                goto err;
 
+       /* query firmware version */
+       memcpy(cmd.args, "\x11", 1);
+       cmd.wlen = 1;
+       cmd.rlen = 10;
+       ret = si2157_cmd_execute(client, &cmd);
+       if (ret)
+               goto err;
+
+       dev_info(&client->dev, "firmware version: %c.%c.%d\n",
+                       cmd.args[6], cmd.args[7], cmd.args[8]);
+
        dev->fw_loaded = true;
 
 warm: