Skip to content

gpio: kill dev-sync-probe

Bartosz Golaszewski linux-gpio lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am 20260327-gpio-kill-dev-sync-probe-v1-0-efac254f1a1d@oss.qualcomm.com change-id 20260327-gpio-kill-dev-sync-probe-4027fab0c0a6

Versions newest first

  1. v1 Latest4 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4gpio: sim: stop using dev-sync-probedrivers/gpio/Kconfig drivers/gpio/gpio-sim.c+29 -210 replies
2/4gpio: aggregator: stop using dev-sync-probedrivers/gpio/Kconfig drivers/gpio/gpio-aggregator.c+21 -181 reply
3/4gpio: virtuser: stop using dev-sync-probedrivers/gpio/Kconfig drivers/gpio/gpio-virtuser.c+20 -110 replies
4/4gpio: remove dev-sync-probedrivers/gpio/Kconfig drivers/gpio/Makefile drivers/gpio/dev-sync-probe.c +1 more+0 -1280 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLinus Walleij
SeriesR-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] gpio: kill dev-sync-probe

I came up with this elaborate mechanism to synchronously wait for the platform devices activated over configs to probe, involving notifiers and completions (which was later factored out into what is today the dev-sync-probe module) because I didn't know any better. It turns out there's an idiomatic way of achieving the same goal with much less LOC. Port the three drivers to using a combination of wait_for_probe() and device_is_bound() and remove the dev-sync-probe module.

---
Bartosz Golaszewski (4):
gpio: sim: stop using dev-sync-probe
gpio: aggregator: stop using dev-sync-probe
gpio: virtuser: stop using dev-sync-probe
gpio: remove dev-sync-probe

 drivers/gpio/Kconfig           |  6 ---
 drivers/gpio/Makefile          |  3 --
 drivers/gpio/dev-sync-probe.c  | 97 ------------------------------------------
 drivers/gpio/dev-sync-probe.h  | 25 -----------
 drivers/gpio/gpio-aggregator.c | 38 +++++++++--------
 drivers/gpio/gpio-sim.c        | 49 ++++++++++++---------
 drivers/gpio/gpio-virtuser.c   | 30 ++++++++-----
 7 files changed, 70 insertions(+), 178 deletions(-)

---
base-commit: e77a5a5cfe43b4c25bd44a3818e487033287517f
change-id: 20260327-gpio-kill-dev-sync-probe-4027fab0c0a6

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>