Re: [PATCH 2/3] usb: typec: ucsi: Move unregister out of atomic section

Johan Hovold
2024-08-19T15:33:34Z

On Sun, Aug 18, 2024 at 04:17:38PM -0700, Bjorn Andersson wrote:

> @@ -68,6 +68,9 @@ struct pmic_glink_ucsi {
>
> struct work_struct notify_work;
> struct work_struct register_work;
> + spinlock_t state_lock;

You also never initialise this lock...

Lockdep would have let you know with a big splat.

Johan