Re: [PATCH v3 1/2] irqchip/qcom-pdc: Add support for v3.2 HW

From: Maulik Shah (mkshah)
Date: Tue Aug 29 2023 - 05:51:54 EST


Hi,

On 8/29/2023 2:51 PM, Dmitry Baryshkov wrote:
From: Neil Armstrong <neil.armstrong@xxxxxxxxxx>

Starting from HW version 3.2 the IRQ_ENABLE bit has moved to the
IRQ_i_CFG register and requires a change of the driver to avoid
writing into an undefined register address.

Get the HW version from registers and set the IRQ_ENABLE bit to the
correct register depending on the HW version.

Signed-off-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
[DB: fix crash on sm8150 DTs which listed short PDC region]
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>
---
drivers/irqchip/qcom-pdc.c | 73 ++++++++++++++++++++++++++++++--------
1 file changed, 59 insertions(+), 14 deletions(-)

Reviewed-by: Maulik Shah <quic_mkshah@xxxxxxxxxxx>

Thanks,
Maulik