driver core: Improve and cleanup driver_deferred_probe_check_state()
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest6 patches 12 repliesIn review
- v46 patches 14 repliesSuperseded
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | driver core: Fix driver_deferred_probe_check_state() logicdrivers/ | +10 | 1 reply | |
| 2/6 | driver core: Set deferred_probe_timeout to a longer default if CONFIG_MODULES is setdrivers/ | +9 | 0 replies | |
| 3/6 | pinctrl: Remove use of driver_deferred_probe_check_state_continue()drivers/ | +5 | 2 replies | |
| 4/6 | driver core: Remove driver_deferred_probe_check_state_continue()drivers/ include/ | +8 | 0 replies | |
| 5/6 | driver core: Rename deferred_probe_timeout and make it globaldrivers/ include/ | +10 | 0 replies | |
| 6/6 | regulator: Use driver_deferred_probe_timeout for regulator_init_complete_workdrivers/ | +14 | 1 reply |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Rafael J. Wysocki | Bjorn Andersson | Linus Walleij | Mark Brown |
|---|---|---|---|---|
| 1/6 | R-b | |||
| 2/6 | R-b | R-b | ||
| 3/6 | A-b | |||
| 4/6 | R-b | R-b | ||
| 5/6 | R-b | R-b | ||
| 6/6 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v5 0/6] driver core: Improve and cleanup driver_deferred_probe_check_state()
This series goal is to improve and cleanup the driver_deferred_probe_check_state() code in the driver core.
This series is useful for being able to support modules dependencies which may be loaded by userland, far after late_initcall is done. For instance, this series allows us to successfully use various clk drivers as modules on the db845c board. And without it, those drivers have to be statically built in to work.
Since I first sent out this patch, Saravana suggested an alternative approach which also works for our needs, and is a bit simpler:
https://lore.kernel.org/lkml/[email protected]/T/#u
However, while that patch provides the functionality we need, I still suspect the driver_deferred_probe_check_state() code could benefit from the cleanup in this patch, as the existing logic is somewhat muddy.
New in v5:
* Reworked the driver_deferred_probe_check_state() logic as suggested by Saravana to tie the initcall_done checking with modules being enabled.
* Cleanup some comment wording as suggested by Rafael
* Try to slightly simplify the regulator logic as suggested by Bjorn
Thanks so much to Bjorn, Saravana and Rafael for their reviews and suggestions! Additional review and feedback is always greatly appreciated!
thanks
-john
John Stultz (6):
driver core: Fix driver_deferred_probe_check_state() logic driver core: Set deferred_probe_timeout to a longer default if
CONFIG_MODULES is set
pinctrl: Remove use of driver_deferred_probe_check_state_continue() driver core: Remove driver_deferred_probe_check_state_continue() driver core: Rename deferred_probe_timeout and make it global
regulator: Use driver_deferred_probe_timeout for
regulator_init_complete_work
drivers/base/dd.c | 82 +++++++++++++---------------------- drivers/pinctrl/devicetree.c | 9 ++-- drivers/regulator/core.c | 25 ++++++----- include/linux/device/driver.h | 2 +- 4 files changed, 49 insertions(+), 69 deletions(-)
Signature · 1 line
2.17.1