Skip to content

Commit f67499f

Browse files
thierryredinglinusw
authored andcommitted
pinctrl: tegra: Do not add default pin range on Tegra194
On Tegra194, almost all of the pin control programming happens in early boot firmware, so there is no use in having a pin range defined for all the pins. Signed-off-by: Thierry Reding <[email protected]> Link: https://lore.kernel.org/r/[email protected] Tested-by: Vidya Sagar <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 6e01e0c commit f67499f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/pinctrl/tegra/pinctrl-tegra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ int tegra_pinctrl_probe(struct platform_device *pdev,
794794

795795
tegra_pinctrl_clear_parked_bits(pmx);
796796

797-
if (!tegra_pinctrl_gpio_node_has_range(pmx))
797+
if (pmx->soc->ngpios > 0 && !tegra_pinctrl_gpio_node_has_range(pmx))
798798
pinctrl_add_gpio_range(pmx->pctl, &tegra_pinctrl_gpio_range);
799799

800800
platform_set_drvdata(pdev, pmx);

drivers/pinctrl/tegra/pinctrl-tegra194.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ static const struct tegra_pingroup tegra194_groups[] = {
134134
};
135135

136136
static const struct tegra_pinctrl_soc_data tegra194_pinctrl = {
137-
.ngpios = TEGRA_PIN_NUM_GPIOS,
138137
.pins = tegra194_pins,
139138
.npins = ARRAY_SIZE(tegra194_pins),
140139
.functions = tegra194_functions,

0 commit comments

Comments
 (0)