Re: [PATCH v5 1/9] i2c: atr: Fix lockdep for nested ATRs

Cosmin Tanislav
2025-05-22T09:31:22Z

On 5/22/25 12:06 PM, Wolfram Sang wrote:
> On Wed, May 07, 2025 at 03:19:07PM +0300, Cosmin Tanislav wrote:
>> From: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
>>
>> When we have an ATR, and another ATR as a subdevice of the first ATR,
>> we get lockdep warnings for the i2c_atr.lock and
>> i2c_atr_chan.orig_addrs_lock. This is because lockdep uses a static key
>> for the locks, and doesn't see the locks of the separate ATR instances
>> as separate.
>>
>> Fix this by generating a dynamic lock key per lock instance.
>>
>> Signed-off-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
>> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
>
> Your SoB is missing. I will add it for you if you confirm here.
>

My bad.

Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com>