Re: [PATCH v4 03/13] extcon: arizona: Fix various races on driver unbind

2021-01-30 Thread Charles Keepax
On Sat, Jan 23, 2021 at 01:13:03PM +0100, Hans de Goede wrote: > We must free/disable all interrupts and cancel all pending works > before doing further cleanup. > > Before this commit arizona_extcon_remove() was doing several > register writes to shut things down before disabling the IRQs > and

[PATCH v4 03/13] extcon: arizona: Fix various races on driver unbind

2021-01-23 Thread Hans de Goede
We must free/disable all interrupts and cancel all pending works before doing further cleanup. Before this commit arizona_extcon_remove() was doing several register writes to shut things down before disabling the IRQs and it was cancelling only 1 of the 3 different works used. Move all the