Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: sunxi: Disable strict mode for H5 driver

All of the H5 boards in the kernel reference the MMC0 CD pin twice in
their DT, so strict mode will make the MMC driver fail to load.
To keep existing DTs working, disable strict mode in the H5 driver.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reported-by: Chris Obbard <obbardc@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Andre Przywara and committed by
Linus Walleij
07c43a38 7c5c2c2d

+4 -2
+4 -2
drivers/pinctrl/sunxi/pinctrl-sun50i-h5.c
··· 535 535 .pins = sun50i_h5_pins, 536 536 .npins = ARRAY_SIZE(sun50i_h5_pins), 537 537 .irq_banks = 2, 538 - .irq_read_needs_mux = true 538 + .irq_read_needs_mux = true, 539 + .disable_strict_mode = true, 539 540 }; 540 541 541 542 static const struct sunxi_pinctrl_desc sun50i_h5_pinctrl_data = { 542 543 .pins = sun50i_h5_pins, 543 544 .npins = ARRAY_SIZE(sun50i_h5_pins), 544 545 .irq_banks = 3, 545 - .irq_read_needs_mux = true 546 + .irq_read_needs_mux = true, 547 + .disable_strict_mode = true, 546 548 }; 547 549 548 550 static int sun50i_h5_pinctrl_probe(struct platform_device *pdev)