Re: [PATCH 06/14] extcon: arizona: Fix various races on driver unbind

2020-12-29 Thread Charles Keepax
On Sun, Dec 27, 2020 at 10:12:24PM +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 06/14] extcon: arizona: Fix various races on driver unbind

2020-12-27 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