]> git.baikalelectronics.ru Git - kernel.git/commit
[media] tuner-xc2028: use request_firmware_nowait()
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 30 Jun 2012 12:08:54 +0000 (09:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 30 Jun 2012 17:26:06 +0000 (14:26 -0300)
commit936a20b3429e348f528f5fe49f2bb772b8472b83
tree16eb4f6fbf3d2d65074d08d71d9d22e90e57a826
parent847a0d08153fde5405c8daf74f063329c97bd0a5
[media] tuner-xc2028: use request_firmware_nowait()

Change the firmware logic to use request_firmware_nowait(), and
to preserve the loaded firmwares in memory, to reduce the risk
of troubles with buggy userspace apps.

With this change, while the firmware is being loaded, the driver
will return -EAGAIN to any calls. If, for some reason, firmware
failed to be loaded from userspace, it will return -ENODEV.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tuner-xc2028.c