Re: [PATCH] media: em28xx: Fix missing check in em28xx_capture_start

2021-03-16 Thread Hans Verkuil
Hi Dinghao Liu, Thank you for the patch, but I've decided not to take it. While the patch looks fine, it is not very useful since the return code of the em28xx_capture_start() function is never checked. And I am hesitant to change the behavior here in case it might break something subtle.

[PATCH] media: em28xx: Fix missing check in em28xx_capture_start

2021-03-10 Thread Dinghao Liu
There are several em28xx_write_reg() and em28xx_write_reg_bits() calls that we have caught their return values but lack further handling. Check and return error on failure just like other calls in em28xx_capture_start(). Signed-off-by: Dinghao Liu --- drivers/media/usb/em28xx/em28xx-core.c | 9