Skip to content

media: si2157: rework firmware load logic

Mauro Carvalho Chehab linux-media lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v24 patches 2 repliesSuperseded
  3. v13 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- Rename some data structs;
- Better handle the cases where the ROM is unknown.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4media: si2157: move firmware load to a separate functiondrivers/media/tuners/si2157.c+56 -420 replies
2/4media: si2157: Add optional firmware downloaddrivers/media/tuners/si2157.c+14 -30 replies
3/4media: si2157: rework the firmware load logicdrivers/media/tuners/si2157.c+18 -130 replies
4/4media: si2157: use a different namespace for firmwaredrivers/media/tuners/si2157.c drivers/media/tuners/si2157_priv.h+132 -790 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] media: si2157: rework firmware load logic

As pointed bt Robert, if there's already a firmware for si2157 at /lib/firmware, it is preferred to use it, instead of the default firmware.

Yet, when this is missed, the driver may still work. That's the case, for instance, of the devices explicitly flagged with dont_load_firmware (currently, Terratec Cinergy TC2).

So, rework the firmware logic in a way that it will emit a warning for devices that are using the eeprom firmware and may not work well with it.

Compile-tested only.

--

v3:
- Rename some data structs;
- Better handle the cases where the ROM is unknown.

v2:
- added a patch to allow supporting different firmwares depending on the device's reported ROM ID.

Mauro Carvalho Chehab (3):
media: si2157: move firmware load to a separate function
media: si2157: rework the firmware load logic
media: si2157: use a different namespace for firmware

Robert Schlabbach (1):
media: si2157: Add optional firmware download

 drivers/media/tuners/si2157.c      | 254 +++++++++++++++++------------
 drivers/media/tuners/si2157_priv.h |  31 ++++
 2 files changed, 184 insertions(+), 101 deletions(-)
Signature · 1 line
2.33.1