mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/4] irqchip/qcom-pdc: Misc. changes
@ 2026-05-27  9:54 Mukesh Ojha
  2026-05-27  9:54 ` [PATCH v2 1/4] irqchip/qcom-pdc: Split __pdc_enable_intr() into per-version helpers Mukesh Ojha
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Mukesh Ojha @ 2026-05-27  9:54 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: linux-arm-msm, linux-kernel, Mukesh Ojha

The Qualcomm PDC (Power Domain Controller) hardware exposes multiple DRV
(Driver) regions, each 0x10000 bytes in size, where each region serves a
specific client like HLOS(High Level OS), TZ, HYP etc., in the system .
Linux only needs access to the OS DRV region.

Despite this, the driver was mapping up to 0x30000 bytes (three DRV
regions) via a QCOM_PDC_SIZE clamp introduced as a workaround for old
sm8150 DTs that described a too-small register window. Correspondingly,
most platform DTS files described the PDC reg as 0x30000 in size.

This series cleans up and refactors the PDC driver, motivated by the above.

2/4 has a dependency on https://lore.kernel.org/lkml/20260527094333.2311731-1-mukesh.ojha@oss.qualcomm.com/
for a warning fix, otherwise "OF: invalid reg size, please fix DT" will be seen, however there is no
functional dependency.

Changes in v2: https://lore.kernel.org/lkml/20260410184124.1068210-1-mukesh.ojha@oss.qualcomm.com/
 - Split the series into two: one for driver changes and the other for DTS corrections.
   DTS is sent here https://lore.kernel.org/lkml/20260527094333.2311731-1-mukesh.ojha@oss.qualcomm.com/
 - Dropped the 4/35 from the series as current code looks more clean.
 - Added R-b tag and rebased the series.

Mukesh Ojha (4):
  irqchip/qcom-pdc: Split __pdc_enable_intr() into per-version helpers
  irqchip/qcom-pdc: Tighten ioremap clamp to single DRV region size
  irqchip/qcom-pdc: Add PDC_VERSION() macro to describe version register
    fields
  irqchip/qcom-pdc: Use FIELD_GET() to extract bank index and bit
    position

 drivers/irqchip/qcom-pdc.c | 61 +++++++++++++++++++++++++-------------
 1 file changed, 40 insertions(+), 21 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-06-11 10:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-27  9:54 [PATCH v2 0/4] irqchip/qcom-pdc: Misc. changes Mukesh Ojha
2026-05-27  9:54 ` [PATCH v2 1/4] irqchip/qcom-pdc: Split __pdc_enable_intr() into per-version helpers Mukesh Ojha
2026-06-03 16:29   ` [tip: irq/drivers] " tip-bot2 for Mukesh Ojha
2026-05-27  9:54 ` [PATCH v2 2/4] irqchip/qcom-pdc: Tighten ioremap clamp to single DRV region size Mukesh Ojha
2026-06-03 16:29   ` [tip: irq/drivers] " tip-bot2 for Mukesh Ojha
2026-06-11 10:40   ` [PATCH v2 2/4] " Konrad Dybcio
2026-05-27  9:54 ` [PATCH v2 3/4] irqchip/qcom-pdc: Add PDC_VERSION() macro to describe version register fields Mukesh Ojha
2026-06-03 16:29   ` [tip: irq/drivers] " tip-bot2 for Mukesh Ojha
2026-05-27  9:54 ` [PATCH v2 4/4] irqchip/qcom-pdc: Use FIELD_GET() to extract bank index and bit position Mukesh Ojha
2026-06-03 16:29   ` [tip: irq/drivers] " tip-bot2 for Mukesh Ojha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®