summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2014-03-13 08:44:04 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-23 14:26:24 -0300
commitb2c9472f0559ba23fa0c2cf565577d1cd9421e50 (patch)
tree1663ccfbee12a7d900376a5dcd81120929b508de /drivers/media/usb
parenta3f415abe08552ece58f3ada553482423296c46a (diff)
downloadop-kernel-dev-b2c9472f0559ba23fa0c2cf565577d1cd9421e50.zip
op-kernel-dev-b2c9472f0559ba23fa0c2cf565577d1cd9421e50.tar.gz
[media] v4l: ti-vpe: register video device only when firmware is loaded
vpe fops(vpe_open in particular) should be called only when VPDMA firmware is loaded. File operations on the video device are possible the moment it is registered. Currently, we register the video device for VPE at driver probe, after calling a vpdma helper to initialize VPDMA and load firmware. This function is non-blocking(it calls request_firmware_nowait()), and doesn't ensure that the firmware is actually loaded when it returns. We remove the device registration from vpe probe, and move it to a callback provided by the vpe driver to the vpdma library, through vpdma_create(). The ready field in vpdma_data is no longer needed since we always have firmware loaded before the device is registered. A minor problem with this approach is that if the video_register_device fails(which doesn't really happen), the vpe platform device would be registered. however, there won't be any v4l2 device corresponding to it. Signed-off-by: Archit Taneja <archit@ti.com> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud