Em Fri, 16 Aug 2024 10:20:47 +0200 Ricardo Ribalda <ribalda@xxxxxxxxxxxx> escreveu: > Hi Mauro > > On Fri, 16 Aug 2024 at 10:17, Mauro Carvalho Chehab > <mchehab+huawei@xxxxxxxxxx> wrote: > > > > Em Wed, 14 Aug 2024 14:10:23 +0000 > > Ricardo Ribalda <ribalda@xxxxxxxxxxxx> escreveu: > > > > > Split out the wait function, and introduce some new toys: guard and > > > lockdep. > > > > > > This fixes the following cocci warnings: > > > drivers/media/dvb-core/dvb_frontend.c:2897:1-7: preceding lock on line 2776 > > > drivers/media/dvb-core/dvb_frontend.c:2897:1-7: preceding lock on line 2786 > > > drivers/media/dvb-core/dvb_frontend.c:2897:1-7: preceding lock on line 2809 > > > > Hi Ricardo, > > Hi Mauro > > > > > Every time someone tries to fix this lock, we end having regression reports, > > because of the diversity of devices, and the way they registers there. > > > > That's specially true for devices with multiple frontends and custom > > zigzag methods. > > > > On what devices have you tested this patch? > > I do not have access to any device, it is just "compiled tested". > > I think that the patch is mainly a refactor, it does not really change > how the lock is handled. While I liked your approach, in the specific case of this lock, I have to disagree: there were at least 2 or 3 previous attempts to fix issues on it, with patches made by someone and dully tested on some hardware, ended being reverted due to corner cases with some boards. So, I'm not willing to take the risk of accept patches touching dvb frontend locking schema without tests with real hardware covering common and corner cases (multi-frontend, custom zigzag, ...) and/or a formal code verification to proof that the lock works on all circumstances. Regards, Mauro