linux/drivers/pinctrl/qcom
Alexey Klimov d1cddd6e5e pinctrl: qcom: lpass-lpi: increase MAX_NR_GPIO to 32
Account for more than only 23 GPIOs in LPASS Low Power Island pinctrl
generic driver. The previous value 23 was chosen to satisfy existing
SoC-specific drivers. However SM4250 LPI pinctrl uses more than 23 GPIOs
and its probe routine fails on:

        if (WARN_ON(data->npins > MAX_NR_GPIO))
                return -EINVAL;

with the following message:

[   10.709014] ------------[ cut here ]------------
[   10.719085] WARNING: CPU: 1 PID: 56 at
drivers/pinctrl/qcom/pinctrl-lpass-lpi.c:446
lpi_pinctrl_probe+0x308/0x388 [pinctrl_lpass_lpi]
[   10.719108] Modules linked in: [...]
[   10.719238] CPU: 1 PID: 56 Comm: kworker/u33:0 Not tainted
6.10.0-rc2-00012-ge45ddb1f8d34-dirty #7
[   10.719245] Hardware name: Qualcomm Technologies, Inc. QRB4210 RB2 (DT)
[   10.719250] Workqueue: events_unbound deferred_probe_work_func
[   10.719265] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   10.719271] pc : lpi_pinctrl_probe+0x308/0x388 [pinctrl_lpass_lpi]
[   10.719278] lr : lpi_pinctrl_probe+0x44/0x388 [pinctrl_lpass_lpi]
        ...
[   10.719357] Call trace:
[   10.719361]  lpi_pinctrl_probe+0x308/0x388 [pinctrl_lpass_lpi]
[   10.719369]  platform_probe+0x68/0xc4
[   10.719378]  really_probe+0xbc/0x29c
[   10.719384]  __driver_probe_device+0x78/0x12c
[   10.719390]  driver_probe_device+0xd8/0x15c
[   10.719395]  __device_attach_driver+0xb8/0x134
[   10.719401]  bus_for_each_drv+0x88/0xe8
[   10.719407]  __device_attach+0xa0/0x190
[   10.719412]  device_initial_probe+0x14/0x20
[   10.719418]  bus_probe_device+0xac/0xb0
[   10.719423]  deferred_probe_work_func+0x88/0xc0
[   10.719429]  process_one_work+0x150/0x294
[   10.719439]  worker_thread+0x2f8/0x408
[   10.719445]  kthread+0x110/0x114
[   10.719452]  ret_from_fork+0x10/0x20
[   10.719459] ---[ end trace 0000000000000000 ]---
[   10.719589] qcom-sm4250-lpass-lpi-pinctrl a7c0000.pinctrl: probe
with driver qcom-sm4250-lpass-lpi-pinctrl failed with error -22

Fixes: c2e5a25e8d ("pinctrl: qcom: Introduce SM4250 LPI pinctrl driver")
Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/20240627003654.242870-1-alexey.klimov@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2024-07-03 14:31:09 +02:00
..
Kconfig pinctrl: qcom: Introduce SM4250 LPI pinctrl driver 2024-06-26 12:41:07 +02:00
Kconfig.msm pinctrl: qcom: sm4450: dd SM4450 pinctrl driver 2023-12-20 12:03:03 +01:00
Makefile pinctrl: qcom: Introduce SM4250 LPI pinctrl driver 2024-06-26 12:41:07 +02:00
pinctrl-apq8064.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-apq8084.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq4019.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq5018.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq5332.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq6018.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq8064.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq8074.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq9574.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-lpass-lpi.c pinctrl: qcom: lpass-lpi: increase MAX_NR_GPIO to 32 2024-07-03 14:31:09 +02:00
pinctrl-lpass-lpi.h pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-mdm9607.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-mdm9615.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8x74.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8226.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8660.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8909.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8916.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8953.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8960.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8976.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8994.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8996.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8998.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm.c pinctrl: qcom: fail to retrieve configuration from invalid pin groups 2023-12-04 15:32:42 +01:00
pinctrl-msm.h pinctrl: qcom: handle intr_target_reg wakeup_present/enable bits 2023-11-13 15:01:37 +01:00
pinctrl-qcm2290.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-qcs404.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-qdf2xxx.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-qdu1000.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sa8775p.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc7180.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc7280-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sc7280.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc8180x.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc8280xp-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sc8280xp.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdm660.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdm670.c pinctrl: qcom: sdm670: add pdc wakeirq map 2024-06-17 09:25:45 +02:00
pinctrl-sdm845.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdx55.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdx65.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdx75.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm4250-lpass-lpi.c pinctrl: qcom: Introduce SM4250 LPI pinctrl driver 2024-06-26 12:41:07 +02:00
pinctrl-sm4450.c pinctrl: qcom: sm4450: dd SM4450 pinctrl driver 2023-12-20 12:03:03 +01:00
pinctrl-sm6115-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sm6115.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm6125.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm6350.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm6375.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm7150.c pinctrl: qcom: pinctrl-sm7150: Fix sdc1 and ufs special pins regs 2024-05-03 09:55:04 +02:00
pinctrl-sm8150.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8250-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sm8250.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8350-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sm8350.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8450-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sm8450.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8550-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sm8550.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8650-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sm8650.c pinctrl: qcom: Introduce the SM8650 Top Level Mode Multiplexer driver 2023-11-13 15:05:13 +01:00
pinctrl-spmi-gpio.c pinctrl: qcom: spmi: Add PMC8380 2024-06-17 09:22:41 +02:00
pinctrl-spmi-mpp.c pinctrl: qcom: spmi-mpp: Convert to platform remove callback returning void 2023-10-10 15:43:03 +02:00
pinctrl-ssbi-gpio.c pinctrl: qcom: ssbi-gpio: Convert to platform remove callback returning void 2023-10-10 15:43:31 +02:00
pinctrl-ssbi-mpp.c pinctrl: qcom: ssbi-mpp: Convert to platform remove callback returning void 2023-10-10 15:43:56 +02:00
pinctrl-x1e80100.c pinctrl: qcom: Add X1E80100 pinctrl driver 2023-11-24 11:22:12 +01:00