From: Antti Palosaari Date: Sat, 6 Dec 2014 20:25:24 +0000 (-0300) Subject: [media] si2157: print firmware version X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c7011845ca72b52c0cac133a8cb5ffb602431705;p=openwrt%2Fstaging%2Fblogic.git [media] si2157: print firmware version Firmware version could be printed similarly than si2168 driver does. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index 3f9aa7ae1613..6ae76204ddd4 100644 --- a/drivers/media/tuners/si2157.c +++ b/drivers/media/tuners/si2157.c @@ -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: