dabusb: use request_firmware()
PATCH 1/1 dabusb: use request_firmware()
--- drivers/media/Kconfig | 9 + drivers/media/video/dabfirmware.h | 1415 ------------------------------------ drivers/media/video/dabusb.c | 43 +- firmware/Makefile | 2 + firmware/WHENCE | 16 + firmware/dabusb/bitstream.bin.ihex | 761 +++++++++++++++++++ firmware/dabusb/firmware.HEX | 649 +++++++++++++++++ 7 files changed, 1468 insertions(+), 1427 deletions(-) delete mode 100644 drivers/media/video/dabfirmware.h create mode 100644 firmware/dabusb/bitstream.bin.ihex create mode 100644 firmware/dabusb/firmware.HEX
drivers/media/Kconfig +9 -0
@@ -125,6 +125,7 @@ if DAB config USB_DABUSB tristate "DABUSB driver" depends on USB + select FW_LOADER ---help--- A Digital Audio Broadcasting (DAB) Receiver for USB and Linux brought to you by the DAB-Team
@@ -135,6 +136,14 @@ config USB_DABUSB To compile this driver as a module, choose M here: the module will be called dabusb. + +config USB_DABUSB_FIRMWARE + bool "Include firmware images for DABUSB driver" + depends on USB_DABUSB + ---help--- + Include the firmware for the DABUSB device in the kernel image. + Say 'N' and let it get loaded from userspace. + endif # DAB endmenu
drivers/media/video/dabfirmware.h deleted +0 -1415
1,415 lines not on this page · raw message
drivers/media/video/dabusb.c +31 -12
103 lines not on this page · raw message
firmware/Makefile +2 -0
@@ -25,6 +25,8 @@ fw-shipped-$(CONFIG_ACENIC_TG1_FIRMWARE) += acenic/tg1.bin fw-shipped-$(CONFIG_ACENIC_TG2_FIRMWARE) += acenic/tg2.bin fw-shipped-$(CONFIG_TIGON3_FIRMWARE) += tigon/tg3.bin tigon/tg3_tso.bin \ tigon/tg3_tso5.bin +fw-shipped-$(CONFIG_USB_DABUSB_FIRMWARE) += dabusb/firmware.fw \ + dabusb/bitstream.bin fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_MPR) += keyspan/mpr.fw fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA18X) += keyspan/usa18x.fw fw-shipped-$(CONFIG_USB_SERIAL_KEYSPAN_USA19) += keyspan/usa19.fw
firmware/WHENCE +16 -0
@@ -302,3 +302,19 @@ Licence: Allegedly GPLv2+, but no source visible. Marked: Found in hex form in kernel source. -------------------------------------------------------------------------- + +Driver: DABUSB -- Digital Audio Broadcasting (DAB) Receiver for USB and Linux + +File: dabusb/firmware.HEX +File: dabusb/bitstream.bin + +Licence: Distributable + + * Copyright (C) 1999 BayCom GmbH + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that redistributions of source + * code retain the above copyright notice and this comment without + * modification. + +--------------------------------------------------------------------------
firmware/dabusb/bitstream.bin.ihex new file +761 -0
761 lines not on this page · raw message
firmware/dabusb/firmware.HEX new file +649 -0
649 lines not on this page · raw message
Signature · 5 lines
1.5.5.1 -- dwmw2
drivers/media/Kconfig config USB_DABUSB · line 145
Quoted 6 lines
drivers/media/Kconfig +6
-0+config USB_DABUSB_FIRMWARE + bool "Include firmware images for DABUSB driver" + depends on USB_DABUSB + ---help--- + Include the firmware for the DABUSB device in the kernel image. + Say 'N' and let it get loaded from userspace.
Sorry if I missed a discussion on it in the intial firmware threads, but what is the point of all these FOO_FIRMWARE options? I think we should include all firmware that we have a driver for if people want firmware built-in and non if not.
That is instead of all these FOO_FIRMWARE options just have one user-visible BUILTIN_FIRMWARE option. Also makes it much less likely for mingo to accidentally build a kernel image that doesn't actually boot :)
Quoted 11 lines · Christoph Hellwig
Review
Quoted 6 lines
(quoted diff) +6
-0+config USB_DABUSB_FIRMWARE + bool "Include firmware images for DABUSB driver" + depends on USB_DABUSB + ---help--- + Include the firmware for the DABUSB device in the kernel image. + Say 'N' and let it get loaded from userspace.Sorry if I missed a discussion on it in the intial firmware threads, but what is the point of all these
FOO_FIRMWAREoptions? I think we should include all firmware that we have a driver for if people want firmware built-in and non if not.
That makes a certain amount of sense, I suppose, and would certainly reduce the litter of new _FIRMWARE options, as well as the pointless whining that some people like to repeat at _each_ patch when we default them to 'N'. I could do it something like below...
What was the final conclusion on the need to add 'select FW_LOADER'? Is that going to go away, too?
firmware/Makefile +9 -6
@@ -48,10 +48,13 @@ -fw-shipped-$(CONFIG_USB_TI_3410_FIRMWARE) += ti_3410.fw -fw-shipped-$(CONFIG_USB_TI_5052_FIRMWARE) += ti_5052.fw +fw-shipped-$(CONFIG_USB_TI) += ti_3410.fw ti_5052.fw -fw-shipped-$(CONFIG_USB_SERIAL_WHITEHEAT_FIRMWARE) += whiteheat_loader.fw \ +fw-shipped-$(CONFIG_USB_SERIAL_WHITEHEAT) += whiteheat_loader.fw \ whiteheat.fw # whiteheat_loader_debug.fw -fw-shipped-$(CONFIG_ATM_AMBASSADOR_FIRMWARE) += atmsar11.fw +fw-shipped-$(CONFIG_ATM_AMBASSADOR) += atmsar11.fw -fw-shipped-$(CONFIG_COMPUTONE_FIRMWARE) += intelliport2.bin +fw-shipped-$(CONFIG_COMPUTONE) += intelliport2.bin -fw-shipped-$(CONFIG_VIDEO_CPIA2_FIRMWARE) += cpia2/stv0672_vp4.bin +fw-shipped-$(CONFIG_VIDEO_CPIA2) += cpia2/stv0672_vp4.bin + +ifeq ($(CONFIG_INCLUDE_FIRMWARE),n) +fw-shipped-y := +endif firmware-y := $(fw-external-y) $(fw-shipped-y) firmware-dirs := $(sort $(patsubst %,$(objtree)/$(obj)/%/,$(dir $(firmware-y))))
Signature · 1 line
dwmw2
Quoted 4 lines · David Woodhouse
That makes a certain amount of sense, I suppose, and would certainly reduce the litter of new
_FIRMWAREoptions, as well as the pointless whining that some people like to repeat at _each_ patch when we default them to 'N'. I could do it something like below...
I've reworked the git tree to do it that way.
Signature · 1 line
dwmw2
Quoted 4 lines · David Woodhouse
...
What was the final conclusion on the need to add 'selectFW_LOADER'? Is that going to go away, too?
...
Greg, you have my "always enable FW_LOADER unless EMBEDDED=y" patch queued for 2.6.27?
Quoted 1 line
dwmw2
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 8 lines · Adrian Bunk
Quoted 4 lines · David Woodhouse
...
What was the final conclusion on the need to add 'selectFW_LOADER'? Is that going to go away, too?
...Greg, you have my "always enable
FW_LOADERunless EMBEDDED=y" patch queued for 2.6.27?
Yes, it is in my to-apply queue, I hope to get through it tomorrow, it is planned to go into 2.6.27.
thanks,
greg k-h
Quoted 7 lines · Greg KH
Quoted 6 lines · Adrian Bunk
Quoted 4 lines · David Woodhouse
...
What was the final conclusion on the need to add 'selectFW_LOADER'? Is that going to go away, too?
...
Quoted 5 lines
Quoted 2 lines
Greg, you have my "always enable
FW_LOADERunless EMBEDDED=y" patch queued for 2.6.27?Yes, it is in my to-apply queue, I hope to get through it tomorrow, it is planned to go into 2.6.27.
Thanks.
David, you do not have to add the select's.
Quoted 3 lines
thanks,
greg k-h
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed