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

MIPS: BCM63xx: Initialize gpio_out_low & out_high to current value at boot.

To avoid a glitch during GPIO initialisation read GPIO output register
values left by the firmware.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/903/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Maxime Bizon and committed by
Ralf Baechle
9538ca63 e23a90eb

+2
+2
arch/mips/bcm63xx/gpio.c
··· 125 125 126 126 int __init bcm63xx_gpio_init(void) 127 127 { 128 + gpio_out_low = bcm_gpio_readl(GPIO_DATA_LO_REG); 129 + gpio_out_high = bcm_gpio_readl(GPIO_DATA_HI_REG); 128 130 bcm63xx_gpio_chip.ngpio = bcm63xx_gpio_count(); 129 131 pr_info("registering %d GPIOs\n", bcm63xx_gpio_chip.ngpio); 130 132