(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

pinctrl: apple: Add t8140-pinctrl support

Ensure the regmap does not attempt to read REG_GPIOx of any of the pins marked with gpio-reserved-ranges. For this purpose, move the regmap_init just before the first regmap_read, at which point the valid_mask has been populated from the gpio-reserved-ranges device tree property. With this, make the driver accept the new t8140 base compatible as with this modifications the driver can now be loaded on this SoC without crashing. Signed-off-by: Yureka Lilian <yureka@cyberchaos.dev> Signed-off-by: Linus Walleij <linusw@kernel.org>


Author Yureka Lilian Committer Linus Walleij Date Commit Parent 3fb206b9
+16 -5
1 changed file
+16 -5
1 changed file