]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pinctrl: qcom: correct the ngpios entry for QCS8300
authorLijuan Gao <quic_lijuang@quicinc.com>
Tue, 6 May 2025 06:23:01 +0000 (14:23 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 13 May 2025 12:53:23 +0000 (14:53 +0200)
Correct the ngpios entry to account for the UFS_RESET pin, which is
expected to be wired to the reset pin of the primary UFS memory and is
exported as GPIOs in addition to the real GPIOs, allowing the UFS driver
to toggle it.

Fixes: 0c4cd2cc87c8 ("pinctrl: qcom: add the tlmm driver for QCS8300 platforms")
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Lijuan Gao <quic_lijuang@quicinc.com>
Link: https://lore.kernel.org/20250506-correct_gpio_ranges-v3-4-49a7d292befa@quicinc.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-qcs8300.c

index ba6de944a859a0b637812e5d39c9eab7ea3ef8ed..5f5f7c4ac644c4d80b87b4384b0a40ba90fadf04 100644 (file)
@@ -1204,7 +1204,7 @@ static const struct msm_pinctrl_soc_data qcs8300_pinctrl = {
        .nfunctions = ARRAY_SIZE(qcs8300_functions),
        .groups = qcs8300_groups,
        .ngroups = ARRAY_SIZE(qcs8300_groups),
-       .ngpios = 133,
+       .ngpios = 134,
        .wakeirq_map = qcs8300_pdc_map,
        .nwakeirq_map = ARRAY_SIZE(qcs8300_pdc_map),
        .egpio_func = 11,