platform/x86: Rework intel_scu_ipc and intel_pmc_ipc drivers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v9 Latest20 patches 4 repliesIn review
- v819 patches 8 repliesSuperseded
- v719 patches 8 repliesSuperseded
Earlier versions · 6
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v6 | 19 patches | 10 replies | Superseded | |
| v5 | 18 patches | 18 replies | Superseded | |
| v4 | 38 patches | 30 replies | Superseded | |
| v3 | 36 patches | 16 replies | Superseded | |
| v2 | 36 patches | 44 replies | Superseded | |
| v1 | 37 patches | 9 replies | Superseded |
Changes in v9 from the cover letter
* Rebased on top of v5.7-rc1.
* Added Lee's Acked-for-MFD-by to patch 1.
* There is a new patch (14/20) from Heikki to convert the newly introduced Intel PMC Mux driver over to this new SCU IPC API.
* Call PMC API directly from iTCO_wdt and drop the ->update_no_reboot_bit
Patches in v9 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | platform/x86: intel_scu_ipc: Split out SCU IPC functionality from the SCU driverarch/ arch/ drivers/ +4 more | +208 | 0 replies | |
| 2/20 | platform/x86: intel_scu_ipc: Log more information if SCU IPC command failsdrivers/ | +11 | 0 replies | |
| 3/20 | platform/x86: intel_scu_ipc: Move legacy SCU IPC API to a separate headerarch/ arch/ | +63 | 0 replies | |
| 4/20 | platform/x86: intel_scu_ipc: Introduce new SCU IPC APIarch/ arch/ drivers/ | +252 | 0 replies | |
| 5/20 | platform/x86: intel_mid_powerbtn: Convert to use new SCU IPC APIdrivers/ | +11 | 0 replies | |
| 6/20 | watchdog: intel-mid_wdt: Convert to use new SCU IPC APIdrivers/ | +37 | 0 replies | |
| 7/20 | platform/x86: intel_scu_ipcutil: Convert to use new SCU IPC APIdrivers/ | +39 | 0 replies | |
| 8/20 | platform/x86: intel_scu_ipc: Add managed function to register SCU IPCarch/ drivers/ | +72 | 0 replies | |
| 9/20 | platform/x86: intel_pmc_ipc: Start using SCU IPCdrivers/ drivers/ | +40 | 0 replies | |
| 10/20 | mfd: intel_soc_pmic: Add SCU IPC member to struct intel_soc_pmicinclude/ | +15 | 0 replies | |
| 11/20 | mfd: intel_soc_pmic_bxtwc: Convert to use new SCU IPC APIarch/ drivers/ | +17 | 0 replies | |
| 12/20 | mfd: intel_soc_pmic_mrfld: Convert to use new SCU IPC APIdrivers/ | +8 | 0 replies | |
| 13/20 | platform/x86: intel_telemetry: Convert to use new SCU IPC APIarch/ arch/ drivers/ | +49 | 0 replies | |
| 14/20 | usb: typec: mux: Convert the Intel PMC Mux driver to use new SCU IPC APIdrivers/ drivers/ | +9 | 0 replies | |
| 15/20 | platform/x86: intel_pmc_ipc: Drop intel_pmc_ipc_command()arch/ drivers/ | +0 | 0 replies | |
| 16/20 | x86/platform/intel-mid: Add empty stubs for intel_scu_devices_[create|destroy]()arch/ | +6 | 0 replies | |
| 17/20 | platform/x86: intel_pmc_ipc: Move PCI IDs to intel_scu_pcidrv.cdrivers/ drivers/ drivers/ | +27 | 0 replies | |
| 18/20 | platform/x86: intel_telemetry: Add telemetry_get_pltdata()arch/ drivers/ drivers/ | +8 | 0 replies | |
| 19/20 | platform/x86: intel_pmc_ipc: Convert to MFDDocumentation/ arch/ arch/ +12 more | +602 | 3 replies | |
| 20/20 | MAINTAINERS: Update entry for Intel Broxton PMC driverMAINTAINERS | +14 | 0 replies |
Reviews trailers per patch
19 of 20 patches have a Reviewed-by or Acked-by.
| Patch | Andy Shevchenko | Lee Jones | Guenter Roeck |
|---|---|---|---|
| 1/20 | R-b | Acked-for-MFD-by | |
| 2/20 | R-b | ||
| 3/20 | R-b | ||
| 4/20 | R-b | ||
| 5/20 | R-b | ||
| 6/20 | R-b | A-b | |
| 7/20 | R-b | ||
| 8/20 | R-b | ||
| 9/20 | R-b | ||
| 10/20 | R-b | Acked-for-MFD-by | |
| 11/20 | R-b | Acked-for-MFD-by | |
| 12/20 | R-b | Acked-for-MFD-by | |
| 13/20 | R-b | ||
| 14/20 | |||
| 15/20 | R-b | ||
| 16/20 | R-b | ||
| 17/20 | R-b | ||
| 18/20 | R-b | ||
| 19/20 | R-b | Acked-for-MFD-by | |
| 20/20 | R-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 3 reviewers.
Cover letter [PATCH v9 00/20] platform/x86: Rework intel_scu_ipc and intel_pmc_ipc drivers
Hi all,
Currently both intel_scu_ipc.c and intel_pmc_ipc.c implement the same SCU IPC communications with minor differences. This duplication does not make much sense so this series reworks the two drivers so that there is only a single implementation of the SCU IPC. In addition to that the API will be updated to take SCU instance pointer as an argument, and most of the callers will be converted to this new API. The old API is left there but the plan is to get rid the callers and then the old API as well.
The intel_pmc_ipc.c is then moved under MFD which suits better for this kind of a driver that pretty much sets up the SCU IPC and then creates a bunch of platform devices for the things sitting behind the PMC. The driver is renamed to intel_pmc_bxt.c which should follow the existing conventions under drivers/mfd (and it is only meant for Intel Broxton derivatives).
Changes from v8:
* Rebased on top of v5.7-rc1.
* Added Lee's Acked-for-MFD-by to patch 1.
* There is a new patch (14/20) from Heikki to convert the newly introduced Intel PMC Mux driver over to this new SCU IPC API.
* Call PMC API directly from iTCO_wdt and drop the ->update_no_reboot_bit
callback and the ->no_reboot_priv from the iTCO_wdt platform data
* Fill the MFD cells directly, do not take copies.
Changes from v7:
* Added Lee's Acked-for-MFD-by to patches 10, 11 and 12.
* In patch 18 use same four-digit value for SMI_EN_OFFSET and TCO_BASE_OFFSET to be consistent with others.
* Drop comma after PMC_DEVICE_MAX in patch 18.
Changes from v6:
* Added Reviewed-by tag from Andy
* Expanded PMC, IPC and IA acronyms
* Drop TCO_DEVICE_NAME, PUNIT_DEVICE_NAME and TELEMETRY_DEVICE_NAME
* Move struct intel_pmc_dev into include/linux/mfd/intel_pmc_bxt.h
* Add PMC_DEVICE_MAX to the enum and use it
* Add kernel-docs for simplecmd_store() and northpeak_store()
* Use if (ret) return ret; over the ternary operator
* Drop "This is index X" from comments
* Use acpi_has_watchdog() to determine whether iTCO_wdt is added or not.
* Rename intel_scu_ipc_pdata -> intel_scu_ipc_data to make it less confusing wrt. platform data for platform drivers.
Previous versions can be found:
v8: https://www.spinics.net/lists/platform-driver-x86/msg21062.html
v7: https://www.spinics.net/lists/platform-driver-x86/msg21020.html
v6: https://www.spinics.net/lists/platform-driver-x86/msg20896.html
v5: https://www.spinics.net/lists/platform-driver-x86/msg20841.html
v4: https://www.spinics.net/lists/platform-driver-x86/msg20658.html
v3: https://www.spinics.net/lists/platform-driver-x86/msg20583.html
v2: https://www.spinics.net/lists/platform-driver-x86/msg20446.html
v1: https://www.spinics.net/lists/platform-driver-x86/msg20359.html
Heikki Krogerus (1):
usb: typec: mux: Convert the Intel PMC Mux driver to use new SCU IPC API
Mika Westerberg (19):
platform/x86: intel_scu_ipc: Split out SCU IPC functionality from the SCU driver platform/x86: intel_scu_ipc: Log more information if SCU IPC command fails platform/x86: intel_scu_ipc: Move legacy SCU IPC API to a separate header platform/x86: intel_scu_ipc: Introduce new SCU IPC API platform/x86: intel_mid_powerbtn: Convert to use new SCU IPC API
watchdog: intel-mid_wdt: Convert to use new SCU IPC API platform/x86: intel_scu_ipcutil: Convert to use new SCU IPC API platform/x86: intel_scu_ipc: Add managed function to register SCU IPC platform/x86: intel_pmc_ipc: Start using SCU IPC
mfd: intel_soc_pmic: Add SCU IPC member to struct intel_soc_pmic
mfd: intel_soc_pmic_bxtwc: Convert to use new SCU IPC API
mfd: intel_soc_pmic_mrfld: Convert to use new SCU IPC API platform/x86: intel_telemetry: Convert to use new SCU IPC API platform/x86: intel_pmc_ipc: Drop intel_pmc_ipc_command() x86/platform/intel-mid: Add empty stubs for intel_scu_devices_[create|destroy]() platform/x86: intel_pmc_ipc: Move PCI IDs to intel_scu_pcidrv.c platform/x86: intel_telemetry: Add telemetry_get_pltdata() platform/x86: intel_pmc_ipc: Convert to MFD
MAINTAINERS: Update entry for Intel Broxton PMC driver
.../ABI/obsolete/sysfs-driver-intel_pmc_bxt | 22 + MAINTAINERS | 23 +- arch/x86/Kconfig | 2 +- arch/x86/include/asm/intel-mid.h | 9 +- arch/x86/include/asm/intel_pmc_ipc.h | 59 -- arch/x86/include/asm/intel_scu_ipc.h | 114 ++- arch/x86/include/asm/intel_scu_ipc_legacy.h | 91 ++ arch/x86/include/asm/intel_telemetry.h | 6 +- drivers/mfd/Kconfig | 20 +- drivers/mfd/Makefile | 1 + drivers/mfd/intel_pmc_bxt.c | 468 +++++++++ drivers/mfd/intel_soc_pmic_bxtwc.c | 34 +- drivers/mfd/intel_soc_pmic_mrfld.c | 10 +- drivers/platform/x86/Kconfig | 46 +- drivers/platform/x86/Makefile | 2 +- drivers/platform/x86/intel_mid_powerbtn.c | 15 +- drivers/platform/x86/intel_pmc_ipc.c | 949 ------------------ drivers/platform/x86/intel_scu_ipc.c | 447 +++++++-- drivers/platform/x86/intel_scu_ipcutil.c | 43 +- drivers/platform/x86/intel_scu_pcidrv.c | 68 ++ drivers/platform/x86/intel_telemetry_core.c | 17 +- .../platform/x86/intel_telemetry_debugfs.c | 15 +- drivers/platform/x86/intel_telemetry_pltdrv.c | 97 +- drivers/usb/typec/mux/Kconfig | 2 +- drivers/usb/typec/mux/intel_pmc_mux.c | 12 +- drivers/usb/typec/tcpm/Kconfig | 2 +- drivers/watchdog/iTCO_wdt.c | 25 +- drivers/watchdog/intel-mid_wdt.c | 53 +- include/linux/mfd/intel_pmc_bxt.h | 53 + include/linux/mfd/intel_soc_pmic.h | 15 + include/linux/platform_data/itco_wdt.h | 11 +- 31 files changed, 1411 insertions(+), 1320 deletions(-) create mode 100644 Documentation/ABI/obsolete/sysfs-driver-intel_pmc_bxt delete mode 100644 arch/x86/include/asm/intel_pmc_ipc.h create mode 100644 arch/x86/include/asm/intel_scu_ipc_legacy.h create mode 100644 drivers/mfd/intel_pmc_bxt.c delete mode 100644 drivers/platform/x86/intel_pmc_ipc.c create mode 100644 drivers/platform/x86/intel_scu_pcidrv.c create mode 100644 include/linux/mfd/intel_pmc_bxt.h
Signature · 1 line
2.25.1