Qualcomm: cleanup OF_LIVE fixup and fix RB1/2
Get series with b4
b4 am [email protected] change-id 20250409-livetree-fixup-0d7451cc3af3Versions newest first
Changes in v2 from the cover letter
- Rename EVT_OF_LIVE_INIT to EVT_OF_LIVE_BUILT
- Pass the root node through as event data in EVT_OF_LIVE_BUILT
- Handle errors from event_notify()
- Additional minor fixes to mach-snapdragon/of_fixup.c
- Link to v1: https://lore.kernel.org/r/[email protected]
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | event: signal when livetree has been builtcommon/ include/ lib/ | +32 | 4 replies | |
| 2/8 | mach-snapdragon: use EVT_OF_LIVE_INIT to apply DT fixupsarch/ arch/ arch/ | +16 | 1 reply | |
| 3/8 | mach-snapdragon: of_fixup: skip disabled USB nodesarch/ | +3 | 0 replies | |
| 4/8 | mach-snapdragon: of_fixup: remove confusing log messagearch/ | +5 | 1 reply | |
| 5/8 | mach-snapdragon: of_fixup: update commentarch/ | +1 | 1 reply | |
| 6/8 | mach-snapdragon: of_fixup: set dr_mode for RB1/2 boardsarch/ arch/ | +14 | 0 replies | |
| 7/8 | clk/qcom: qcm2290: show clock name in set_rate()drivers/ | +1 | 0 replies | |
| 8/8 | pinctrl: qcom: qcm2290: fix off by 1 in pin_countdrivers/ | +1 | 1 reply |
Reviews trailers per patch
6 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Sumit Garg | Neil Armstrong |
|---|---|---|
| 1/8 | ||
| 2/8 | ||
| 3/8 | R-b T-b | R-b |
| 4/8 | R-b | |
| 5/8 | R-b | |
| 6/8 | R-b T-b | R-b |
| 7/8 | R-b T-b | R-b |
| 8/8 | R-b T-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/8] Qualcomm: cleanup OF_LIVE fixup and fix RB1/2
Introduce a new event to signal that the live tree has been built, allowing boards to perform fixups on the tree before devices are bound. Crucially this allows for devices to be enabled or disabled, but also allows for properties that are parsed during the bind stage to be modified (such as dr_mode for dwc3).
With this in place, mach-snapdragon is switched over to use the event and some hacky U-Boot specific DT overrides (which had to be undone prior to booting an image) are removed in favour of fixing up the livetree (which is not passed on to further boot stages).
Finally, some minor fixes are made for the QCM2290 RB1 board, the sdcard is enabled and it now uses USB host mode in U-Boot like it's bigger sibling the RB2.
---
Changes in v2:
- Rename EVT_OF_LIVE_INIT to EVT_OF_LIVE_BUILT
- Pass the root node through as event data in EVT_OF_LIVE_BUILT
- Handle errors from event_notify()
- Additional minor fixes to mach-snapdragon/of_fixup.c
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Caleb Connolly (8):
event: signal when livetree has been built
mach-snapdragon: use EVT_OF_LIVE_INIT to apply DT fixups
mach-snapdragon: of_fixup: skip disabled USB nodes
mach-snapdragon: of_fixup: remove confusing log message
mach-snapdragon: of_fixup: update comment
mach-snapdragon: of_fixup: set dr_mode for RB1/2 boards clk/qcom: qcm2290: show clock name in set_rate()
pinctrl: qcom: qcm2290: fix off by 1 in pin_count
arch/arm/dts/qrb4210-rb2-u-boot.dtsi | 6 --- arch/arm/mach-snapdragon/board.c | 1 - arch/arm/mach-snapdragon/of_fixup.c | 71 +++++++++++++++++++--------------- arch/arm/mach-snapdragon/qcom-priv.h | 14 ------- common/event.c | 3 ++ drivers/clk/qcom/clock-qcm2290.c | 2 +- drivers/pinctrl/qcom/pinctrl-qcm2290.c | 2 +- include/event.h | 18 +++++++++ lib/of_live.c | 11 ++++++ 9 files changed, 74 insertions(+), 54 deletions(-)
---
base-commit: 45acd9d2d4ec84775d09c73aab75a4fd989beb41
change-id: 20250409-livetree-fixup-0d7451cc3af3
Caleb Connolly <[email protected]>