kernel: bump 4.9 to 4.9.144
[openwrt/staging/jow.git] / target / linux / ramips / patches-4.14 / 0008-MIPS-ralink-Fix-mt7620-nd_sd-pinmux.patch
1 From d41237229464ae03fe116b591e8a2fda4ffea48e Mon Sep 17 00:00:00 2001
2 From: Mathias Kresin <dev@kresin.me>
3 Date: Sun, 28 Oct 2018 12:46:55 +0100
4 Subject: [PATCH] MIPS: ralink: Fix mt7620 nd_sd pinmux
5
6 In case the nd_sd group is set to the sd-card function, Pins 45 + 46 are
7 configured as GPIOs. If they are blocked by the sd function, they can't
8 be used as GPIOs.
9
10 Signed-off-by: Mathias Kresin <dev@kresin.me>
11 Reported-by: Kristian Evensen <kristian.evensen@gmail.com>
12 Fixes: f576fb6a0700 ("MIPS: ralink: cleanup the soc specific pinmux
13 data")
14 Cc: stable@vger.kernel.org # v3.18+
15 ---
16 arch/mips/ralink/mt7620.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 --- a/arch/mips/ralink/mt7620.c
20 +++ b/arch/mips/ralink/mt7620.c
21 @@ -84,7 +84,7 @@ static struct rt2880_pmx_func pcie_rst_g
22 };
23 static struct rt2880_pmx_func nd_sd_grp[] = {
24 FUNC("nand", MT7620_GPIO_MODE_NAND, 45, 15),
25 - FUNC("sd", MT7620_GPIO_MODE_SD, 45, 15)
26 + FUNC("sd", MT7620_GPIO_MODE_SD, 47, 13)
27 };
28
29 static struct rt2880_pmx_group mt7620a_pinmux_data[] = {