Re: [PATCH v3] driver core: platform: don't oops in platform_shutdown() on unbound devices

2020-12-13 Thread Uwe Kleine-König
On Sun, Dec 13, 2020 at 02:55:33AM +0300, Dmitry Baryshkov wrote: > On shutdown the driver core calls the bus' shutdown callback also for > unbound devices. A driver's shutdown callback however is only called for > devices bound to this driver. Commit 9c30921fe799 ("driver core: > platform: use

Re: [PATCH v3] driver core: platform: don't oops in platform_shutdown() on unbound devices

2020-12-12 Thread Guenter Roeck
On Sun, Dec 13, 2020 at 02:55:33AM +0300, Dmitry Baryshkov wrote: > On shutdown the driver core calls the bus' shutdown callback also for > unbound devices. A driver's shutdown callback however is only called for > devices bound to this driver. Commit 9c30921fe799 ("driver core: > platform: use

[PATCH v3] driver core: platform: don't oops in platform_shutdown() on unbound devices

2020-12-12 Thread Dmitry Baryshkov
On shutdown the driver core calls the bus' shutdown callback also for unbound devices. A driver's shutdown callback however is only called for devices bound to this driver. Commit 9c30921fe799 ("driver core: platform: use bus_type functions") changed the platform bus from driver callbacks to bus