2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 19:53:59 +08:00
linux-next/arch/mips/txx9/rbtx4938
Geert Uytterhoeven 5ac676ade1 MIPS: TXx9: tx49xx: Move GPIO setup from .mem_setup() to .arch_init()
txx9_gpio_init() calls gpiochip_add_data(), which fails with -ENOMEM as
it is called too early in the boot process. This causes all subsequent
GPIO operations to fail silently (before commit 54d77198fd ("gpio:
bail out silently on NULL descriptors") it printed the error message
"gpiod_direction_output_raw: invalid GPIO" on RBTX49[23]7).

Postpone all GPIO setup to .arch_init() time to fix this.

Suggested-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-mips@linux-mips.org
Cc: linux-gpio@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14237/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2016-10-04 16:13:57 +02:00
..
irq.c MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
Makefile MIPS: TXx9: Migrate to new platform makefile style. 2010-08-05 13:25:55 +01:00
prom.c MIPS: TXx9: Improve handling of built-in and command-line args 2008-10-11 16:18:41 +01:00
setup.c MIPS: TXx9: tx49xx: Move GPIO setup from .mem_setup() to .arch_init() 2016-10-04 16:13:57 +02:00