Re: [PATCH v2 2/9] i2c: i801: make p2sb_spinlock a mutex
From: Andy Shevchenko <hidden>
Date: 2021-08-11 15:43:54
From: Andy Shevchenko <hidden>
Date: 2021-08-11 15:43:54
On Fri, Aug 06, 2021 at 11:13:29PM +0200, Heiner Kallweit wrote:
p2sb_spinlock is used in i801_add_tco_spt() only, and in process context only. Therefore a mutex is sufficient, and we can make the definition local to i801_add_tco_spt().
The problem with either AFAICT is that it should actually hold PCI rescan lock. See the discussion with Message-ID 20210308122020.57071-1-andriy.shevchenko@linux.intel.com for the details. -- With Best Regards, Andy Shevchenko