Cleanup and Refactor TI-SCI driver
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest22 patches 2 repliesIn review
- v222 patches 5 repliesSuperseded
- v122 patches 2 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/22 | firmware: ti_sci: Move error message handling into ti_sci_get_one_xfer()drivers/ | +106 | 0 replies | |
| 2/22 | firmware: ti_sci: Move error message handling into ti_sci_do_xfer()drivers/ | +37 | 0 replies | |
| 3/22 | firmware: ti_sci: Move check for ACK into ti_sci_do_xfer()drivers/ | +60 | 0 replies | |
| 4/22 | firmware: ti_sci: Remove out of place RM debug messagesdrivers/ | +4 | 0 replies | |
| 5/22 | firmware: ti_sci: Name response variable resp for consistencydrivers/ | +8 | 0 replies | |
| 6/22 | firmware: ti_sci: Handle xfer cleanup inside ti_sci_do_xfer()drivers/ | +179 | 0 replies | |
| 7/22 | firmware: ti_sci: Pass request struct into ti_sci_do_xfer()drivers/ | +266 | 0 replies | |
| 8/22 | firmware: ti_sci: Combine xfer allocation and transfer functionsdrivers/ | +170 | 0 replies | |
| 9/22 | firmware: ti_sci: Fetch info struct from handle inside ti_sci_do_xfer()drivers/ | +60 | 0 replies | |
| 10/22 | firmware: ti_sci: Use tx_message as message buffer directlydrivers/ | +2 | 0 replies | |
| 11/22 | firmware: ti_sci: Use rx_message as message receive bufferdrivers/ | +5 | 0 replies | |
| 12/22 | firmware: ti_sci: Fix some kernel-doc references in structsdrivers/ | +63 | 0 replies | |
| 13/22 | soc: ti: ti_sci_protocol.h: Add missing documentation for structsinclude/ | +363 | 0 replies | |
| 14/22 | firmware: ti_sci: Do not export reboot controldrivers/ include/ | +0 | 0 replies | |
| 15/22 | firmware: ti_sci: Use pmops fxn pointers in suspend/resume hooksdrivers/ | +13 | 0 replies | |
| 16/22 | firmware: ti_sci: Move the huge ti_sci file into its own directoryMAINTAINERS drivers/ drivers/ +4 more | +24 | 1 reply | |
| 17/22 | firmware: ti: ti_sci: Add missing includes for self-contained headersdrivers/ include/ | +8 | 0 replies | |
| 18/22 | firmware: ti: ti_sci_device: Move device ops into its own filedrivers/ drivers/ drivers/ +1 more | +401 | 1 reply | |
| 19/22 | firmware: ti: ti_sci_clock: Move clock ops into its own filedrivers/ drivers/ drivers/ +1 more | +556 | 0 replies | |
| 20/22 | firmware: ti: ti_sci_pm: Move pm ops into its own filedrivers/ drivers/ drivers/ +1 more | +247 | 0 replies | |
| 21/22 | firmware: ti: ti_sci_rm: Move rm ops into its own filedrivers/ drivers/ drivers/ +1 more | +936 | 0 replies | |
| 22/22 | firmware: ti: ti_sci_proc: Move processor ops into its own filedrivers/ drivers/ drivers/ +1 more | +217 | 0 replies |
Reviews trailers per patch
1 of 22 patches has a Reviewed-by or Acked-by.
| Patch | Kendall Willis |
|---|---|
| 1/22 | |
| 2/22 | |
| 3/22 | |
| 4/22 | |
| 5/22 | |
| 6/22 | |
| 7/22 | |
| 8/22 | |
| 9/22 | |
| 10/22 | |
| 11/22 | |
| 12/22 | |
| 13/22 | |
| 14/22 | |
| 15/22 | R-b |
| 16/22 | |
| 17/22 | |
| 18/22 | |
| 19/22 | |
| 20/22 | |
| 21/22 | |
| 22/22 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/22] Cleanup and Refactor TI-SCI driver
This series does a lot of cleanups and refactoring of the TI-SCI driver.
Patches 01-11:
The first part of the series refactors a lot of common code from each of the TI-SCI message functions into a single place (get_one_xfer() and do_xfer()). Result is removal of net ~740 lines (~20% of the whole driver
size) without changing functionality.
Patches 12-15:
The second part of the series does some preparatory work for being able to break down the single large TI-SCI file into smaller files.
Patches 16-22:
The third and final part of the series breaks down the single large ti_sci.c file into smaller logical files: ti_sci core, device, clock, pm, rm, and proc. This allows for better readability and maintenance.
Note:
All dependencies for this patch series have now been merged.
v3: Changelog:
1. Carry Kendall's R/B in [PATCH v3 15/22].
2. Correct API name in dev_err() string in [PATCH v3 20/22]. (Kendall)
3. Rename ti_sci.c to ti_sci_core.c earlier in the patch series in [PATCH v3 16/22]. (Andrew)
Link to v2:
https://lore.kernel.org/all/[email protected]/
v2: Changelog:
1. Fix build for arm32 platforms like keystone by including appropriate headers in ti_sci_rm.c in [PATCH v2 21/22].
Link to v1:
https://lore.kernel.org/all/[email protected]/
Testing Done:
- Boot tested on all TI K3 SoCs.
- Boot tested on Keystone platforms like K2G-EVM, K2G-ICE, K2HK-EVM.
- Tested some of the Core, Device, Clock, and Proc ops with remoteproc
- Tested each patch for no new warnings or errors.
Logs:
https://gist.github.com/3V3RYONE/b8ef9d63eaa45db251dc84306b1451e0
Andrew Davis (18):
firmware: ti_sci: Move error message handling into
ti_sci_get_one_xfer()
firmware: ti_sci: Move error message handling into ti_sci_do_xfer()
firmware: ti_sci: Move check for ACK into ti_sci_do_xfer()
firmware: ti_sci: Remove out of place RM debug messages
firmware: ti_sci: Name response variable resp for consistency
firmware: ti_sci: Handle xfer cleanup inside ti_sci_do_xfer()
firmware: ti_sci: Pass request struct into ti_sci_do_xfer()
firmware: ti_sci: Combine xfer allocation and transfer functions
firmware: ti_sci: Fetch info struct from handle inside
ti_sci_do_xfer() firmware: ti_sci: Use tx_message as message buffer directly
firmware: ti_sci: Use rx_message as message receive buffer
firmware: ti_sci: Do not export reboot control
firmware: ti_sci: Move the huge ti_sci file into its own directory
firmware: ti: ti_sci: Add missing includes for self-contained headers
firmware: ti: ti_sci_device: Move device ops into its own file
firmware: ti: ti_sci_clock: Move clock ops into its own file
firmware: ti: ti_sci_pm: Move pm ops into its own file
firmware: ti: ti_sci_rm: Move rm ops into its own file
Beleswar Padhi (4):
firmware: ti_sci: Fix some kernel-doc references in structs
soc: ti: ti_sci_protocol.h: Add missing documentation for structs
firmware: ti_sci: Use pmops fxn pointers in suspend/resume hooks
firmware: ti: ti_sci_proc: Move processor ops into its own file
MAINTAINERS | 2 +-
drivers/firmware/Kconfig | 17 +-
drivers/firmware/Makefile | 2 +-
drivers/firmware/ti/Kconfig | 17 +
drivers/firmware/ti/Makefile | 9 +
drivers/firmware/{ => ti}/ti_sci.h | 258 +-
drivers/firmware/ti/ti_sci_clock.c | 553 +++
drivers/firmware/ti/ti_sci_core.c | 1320 ++++++++
drivers/firmware/ti/ti_sci_device.c | 388 +++
drivers/firmware/ti/ti_sci_pm.c | 145 +
drivers/firmware/ti/ti_sci_proc.c | 214 ++
drivers/firmware/ti/ti_sci_rm.c | 910 +++++
drivers/firmware/ti_sci.c | 4259 ------------------------
include/linux/soc/ti/ti_sci_protocol.h | 389 ++-
14 files changed, 4121 insertions(+), 4362 deletions(-)
create mode 100644 drivers/firmware/ti/Kconfig
create mode 100644 drivers/firmware/ti/Makefile
rename drivers/firmware/{ => ti}/ti_sci.h (89%)
create mode 100644 drivers/firmware/ti/ti_sci_clock.c
create mode 100644 drivers/firmware/ti/ti_sci_core.c
create mode 100644 drivers/firmware/ti/ti_sci_device.c
create mode 100644 drivers/firmware/ti/ti_sci_pm.c
create mode 100644 drivers/firmware/ti/ti_sci_proc.c
create mode 100644 drivers/firmware/ti/ti_sci_rm.c
delete mode 100644 drivers/firmware/ti_sci.cSignature · 1 line
2.34.1