we can not know beforehand whether we have to access that firmware file during resume. We just request the caching so we don't run into any problems later Signed-off-by: Lukas Middendorf <kernel@xxxxxxxxxxx> --- drivers/media/dvb-frontends/si2168.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c index ea4b2d91697e..f2dd1deb75ff 100644 --- a/drivers/media/dvb-frontends/si2168.c +++ b/drivers/media/dvb-frontends/si2168.c @@ -768,6 +768,19 @@ static int si2168_probe(struct i2c_client *client, dev->firmware_name); } + /* also request caching of fw for Si2168 B40 under its old file name. + * Since we can't know now whether we might have to access that file, + * we just make sure we have that covered + */ + if (dev->chip_id == SI2168_CHIP_ID_B40) { + ret = firmware_request_cache(&client->dev, SI2168_B40_FIRMWARE_FALLBACK); + if (ret) { + dev_err(&client->dev, + "firmware caching for '%s' failed\n", + SI2168_B40_FIRMWARE_FALLBACK); + } + } + return 0; err_kfree: kfree(dev); -- 2.26.2