firmware: qcom: scm: simplify code by using classes
Get series with b4
b4 am [email protected] change-id 20260701-qcom-scm-code-shrink-c9aff845537dVersions newest first
- v4 Latest4 patches 1 replyIn review
- v34 patches 1 replySuperseded
- v24 patches 4 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 4 patches | 13 replies | Superseded |
Changes in v4 from the cover letter
- Rebased on top of v7.4-rc1, resolved conflicts with recent changes
- Link to v3: https://patch.msgid.link/[email protected]
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | firmware: qcom: tzmem: guard against IS_ERR() in the cleanup handlerinclude/ | +1 | 0 replies | |
| 2/4 | firmware: qcom: scm: use __free(qcom_tzmem) to simplify cleanupdrivers/ | +22 | 0 replies | |
| 3/4 | firmware: qcom: scm: introduce qcom_scm_clk class for clock managementdrivers/ | +34 | 0 replies | |
| 4/4 | firmware: qcom: scm: introduce qcom_scm_bw class for bandwidth managementdrivers/ | +27 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Konrad Dybcio | Mukesh Ojha |
|---|---|---|
| 1/4 | R-b | R-b |
| 2/4 | R-b | R-b |
| 3/4 | R-b | R-b |
| 4/4 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/4] firmware: qcom: scm: simplify code by using classes
There's a pattern of enabling the clocks and/or setting the bandwith limits before performing an SCM call and reverting the above after it's node. In all places it's done unconditionally and can be simplified by providing appropriate classes. There are also a few places where we can use __free() for tzmem pointers.
---
Changes in v4:
- Rebased on top of v7.4-rc1, resolved conflicts with recent changes
- Link to v3: https://patch.msgid.link/[email protected]
Changes in v3:
- Change the naming for clk and bw guards to be more descriptive of
their function
- Link to v2: https://patch.msgid.link/[email protected]
Changes in v2:
- Rabase on top of recent SCM driver changes which introduced conflicts
- Collect tags
- Link to v1: https://patch.msgid.link/[email protected]
---
Bartosz Golaszewski (4):
firmware: qcom: tzmem: guard against IS_ERR() in the cleanup handler
firmware: qcom: scm: use __free(qcom_tzmem) to simplify cleanup
firmware: qcom: scm: introduce qcom_scm_clk class for clock management
firmware: qcom: scm: introduce qcom_scm_bw class for bandwidth management
drivers/firmware/qcom/qcom_scm.c | 193 ++++++++++++------------------- include/linux/firmware/qcom/qcom_tzmem.h | 2 +- 2 files changed, 76 insertions(+), 119 deletions(-)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20260701-qcom-scm-code-shrink-c9aff845537d
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>