em28xx: move more v4l/dvb specific code to the extension modules and fix the resources handling
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | em28xx-v4l: fix device initialization in em28xx_v4l2_open() for radio and VBI modedrivers/ | +11 | 0 replies | |
| 2/8 | em28xx: move usb buffer pre-allocation and transfer uninit from the core to the dvb extensiondrivers/ drivers/ | +23 | 0 replies | |
| 3/8 | em28xx: move usb transfer uninit on device disconnect from the core to the v4l-extensiondrivers/ drivers/ | +3 | 0 replies | |
| 4/8 | em28xx: move v4l2_device_disconnect() call from the core to the v4l extensiondrivers/ drivers/ | +5 | 0 replies | |
| 5/8 | em28xx-v4l: move v4l2_ctrl_handler freeing and v4l2_device unregistration to em28xx_v4l2_finidrivers/ | +4 | 0 replies | |
| 6/8 | em28xx: move v4l2 dummy clock deregistration from the core to the v4l extensiondrivers/ drivers/ | +6 | 0 replies | |
| 7/8 | em28xx: always call em28xx_release_resources() in the usb disconnect handlerdrivers/ drivers/ | +5 | 0 replies | |
| 8/8 | em28xx-v4l: fix the freeing of the video devices memorydrivers/ | +30 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFT/RFC PATCH 0/8] em28xx: move more v4l/dvb specific code to the extension modules and fix the resources handling
Patch 1 is fix for the analog device initialization on the first open() call. Patches 2-7 move some dvb and v4l specific code from the core module to the extension modules and fix the resources releasing logic/order in the core and the v4l2 module. This will also fix the various sysfs group remove warnings which we can see since kernel 3.13.
Patch 8 finally removes some dead code lines and fixes leaking the memory of video, vbi and radio video_device structs.
I've tested all patches carefully with the devices I have, but because this is really critical stuff, they should be reviewed and tested by others, too.
Frank Schäfer (8):
em28xx-v4l: fix device initialization in em28xx_v4l2_open() for radio
and VBI mode
em28xx: move usb buffer pre-allocation and transfer uninit from the
core to the dvb extension
em28xx: move usb transfer uninit on device disconnect from the core to
the v4l-extension
em28xx: move v4l2_device_disconnect() call from the core to the v4l
extension
em28xx-v4l: move v4l2_ctrl_handler freeing and v4l2_device
unregistration to em28xx_v4l2_fini
em28xx: move v4l2 dummy clock deregistration from the core to the v4l
extension
em28xx: always call em28xx_release_resources() in the usb disconnect
handler
em28xx-v4l: fix the freeing of the video devices memory
drivers/media/usb/em28xx/em28xx-cards.c | 48 ++-------------- drivers/media/usb/em28xx/em28xx-dvb.c | 23 ++++++++ drivers/media/usb/em28xx/em28xx-video.c | 91 +++++++++++++++++++------------
3 Dateien geändert, 85 Zeilen hinzugefügt(+), 77 Zeilen entfernt(-)
Signature · 1 line
1.7.10.4