Commit 6c372533 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] si2157: print chip version

Print chip version once using log level into when init() is called.
Remove cold/warm state printing as those are not very useful.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent c7011845
...@@ -128,7 +128,8 @@ static int si2157_init(struct dvb_frontend *fe) ...@@ -128,7 +128,8 @@ static int si2157_init(struct dvb_frontend *fe)
case SI2157_A30: case SI2157_A30:
case SI2147_A30: case SI2147_A30:
case SI2146_A10: case SI2146_A10:
goto skip_fw_download; fw_file = NULL;
break;
default: default:
dev_err(&client->dev, "unknown chip version Si21%d-%c%c%c\n", dev_err(&client->dev, "unknown chip version Si21%d-%c%c%c\n",
cmd.args[2], cmd.args[1], cmd.args[2], cmd.args[1],
...@@ -137,9 +138,11 @@ static int si2157_init(struct dvb_frontend *fe) ...@@ -137,9 +138,11 @@ static int si2157_init(struct dvb_frontend *fe)
goto err; goto err;
} }
/* cold state - try to download firmware */ dev_info(&client->dev, "found a 'Silicon Labs Si21%d-%c%c%c'\n",
dev_info(&client->dev, "found a '%s' in cold state\n", cmd.args[2], cmd.args[1], cmd.args[3], cmd.args[4]);
si2157_ops.info.name);
if (fw_file == NULL)
goto skip_fw_download;
/* request the firmware, this will block and timeout */ /* request the firmware, this will block and timeout */
ret = request_firmware(&fw, fw_file, &client->dev); ret = request_firmware(&fw, fw_file, &client->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment