On Fri, Jan 08, 2021 at 03:11:38PM +0200, Mika Westerberg wrote: > On Fri, Jan 08, 2021 at 02:51:09PM +0200, Andy Shevchenko wrote: > > On Fri, Jan 8, 2021 at 2:46 PM Mika Westerberg > > <mika.westerberg@xxxxxxxxxxxxxxx> wrote: ... > > What about solving the issue when it comes? > > Up to you :) I have sent v2 with dropped patch 3 and added your tag for patches 1 and 2. Please, review the patch 3 which is basically kept unchanged. Thanks! > > > IMHO it is always good idea to avoid possible infinite loops > > > especially in the kernel space. > > > > But do PCI / xHCI (the first two that came to my mind) have something like this? > > Yes they do, at least PCI. I would expect xHCI to have it too as the > hardware can be hot removed in the middle of a capability list walk > returning 1's on subsequent reads. Good to know. -- With Best Regards, Andy Shevchenko