serdev: Stop using device_driver callbacks
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | serdev: Provide a bustype shutdown functiondrivers/ include/ | +22 | 1 reply | |
| 2/4 | Bluetooth: hci_aml: Migrate to serdev specific shutdown functiondrivers/ | +8 | 0 replies | |
| 3/4 | Bluetooth: hci_qca: Migrate to serdev specific shutdown functiondrivers/ | +2 | 0 replies | |
| 4/4 | platform/surface: Migrate to serdev specific shutdown functiondrivers/ | +3 | 1 reply |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Ilpo Järvinen |
|---|---|
| 1/4 | |
| 2/4 | |
| 3/4 | |
| 4/4 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v1 0/4] serdev: Stop using device_driver callbacks
Hello,
the serdev subsystem currently doesn't provide a shutdown callback, thus drivers that want being notified on shutdown have to implement the respective callback in struct device_driver. This (and more) functionality can be provided by a bus method as it already done for .probe() and .remove().
The eventual goal is to remove .shutdown() (and .probe() and .remove()) from struct device_driver.
Note that the first patch introduces a warning when the three affected drivers are registered (in driver_register() because drv->bus->shutdown && drv->shutdown). Patches #2 - #4 fix these warnings. So from a user perspective it would be good to get the whole series in during a single merge window---either by creating an immutable branch containing patch #1 that is merged into the respective subsystems before applying the following patches, or merging the complete series via a single tree.
At a later point in time the added check in __serdev_device_driver_register() and the function serdev_legacy_shutdown() can be dropped. I intend to cope for that in the merge window that removes the callbacks from struct device_driver because drivers that I might have missed to convert or that are rebased over that change break silently as long as struct device_driver::shutdown exists.
Best regards
Uwe
Uwe Kleine-König (4):
serdev: Provide a bustype shutdown function
Bluetooth: hci_aml: Migrate to serdev specific shutdown function
Bluetooth: hci_qca: Migrate to serdev specific shutdown function platform/surface: Migrate to serdev specific shutdown function
drivers/bluetooth/hci_aml.c | 16 ++++++++-------- drivers/bluetooth/hci_qca.c | 5 ++--- drivers/platform/surface/aggregator/core.c | 6 +++--- drivers/tty/serdev/core.c | 21 +++++++++++++++++++++ include/linux/serdev.h | 1 + 5 files changed, 35 insertions(+), 14 deletions(-)
base-commit: 7d0a66e4bb9081d75c82ec4957c50034cb0ea449
Signature · 1 line
2.47.3