Skip to content

mfd: intel_soc_pmic_bxtwc: Fix IRQ domain usage

Andy Shevchenko linux-usb lkml platform-driver-x86 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesApplied
  2. v14 patches 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4mfd: intel_soc_pmic_bxtwc: Use IRQ domain for USB Type-C devicedrivers/mfd/intel_soc_pmic_bxtwc.c drivers/usb/typec/tcpm/wcove.c+40 -211 reply
2/4mfd: intel_soc_pmic_bxtwc: Use IRQ domain for TMU devicedrivers/mfd/intel_soc_pmic_bxtwc.c drivers/platform/x86/intel/bxtwc_tmu.c+23 -300 replies
3/4mfd: intel_soc_pmic_bxtwc: Use IRQ domain for PMIC devicesdrivers/mfd/intel_soc_pmic_bxtwc.c+30 -240 replies
4/4mfd: intel_soc_pmic_bxtwc: Fix IRQ domain names duplicationdrivers/mfd/intel_soc_pmic_bxtwc.c+6 -00 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchZhang NingHans de GoedeGreg Kroah-Hartman
1/4T-b A-b
2/4T-b A-b
3/4T-b
4/4

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.

Read the v2 thread

Cover letter [PATCH v2 0/4] mfd: intel_soc_pmic_bxtwc: Fix IRQ domain usage

It appears that the driver has been developed without proper thinking of what the difference between HW IRQ and Linux IRQ (also known as vIRQ). This misunderstanding led to the 0 being used as vIRQ which is no-no and platform APIs unveil this after the commit a85a6c86c25b ("driver core:
platform: Clarify that IRQ 0 is invalid"). With this the Intel Broxton Whiskey Cove PMIC driver has to be fixed all over the places.

In this series two immediate fixes as reported recently and we have drivers for (patches 1 & 2) followed by the patch that prepares the same fix for the devices that have no in-tree drivers yet. At the end it is a fix for IRQ domain debugging (when enabled), but it requires quite recent patches in IRQ domain and regmap IRQ subsystems, which is reflected in the Depends-on tag (I can't use Fixes, as this doesn't fix anything related to that).

The series touches a couple of subsystems as the respective drivers has to be fixed simultaneously. The idea is to proceed the series via MFD tree to where the main driver belongs.

I have tested this on Intel Joule SoM (Apollo Lake SoC).

In v2:
- added tags (Hans, Zhang)
- fixed typo in the commit messages

Andy Shevchenko (4):
mfd: intel_soc_pmic_bxtwc: Use IRQ domain for USB Type-C device
mfd: intel_soc_pmic_bxtwc: Use IRQ domain for TMU device
mfd: intel_soc_pmic_bxtwc: Use IRQ domain for PMIC devices
mfd: intel_soc_pmic_bxtwc: Fix IRQ domain names duplication

 drivers/mfd/intel_soc_pmic_bxtwc.c     | 144 ++++++++++++++++---------
 drivers/platform/x86/intel/bxtwc_tmu.c |  22 ++--
 drivers/usb/typec/tcpm/wcove.c         |   4 -
 3 files changed, 97 insertions(+), 73 deletions(-)
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac