kernel: Backport mv88e6xxx patch to keep pvid at 0 if VLAN-unaware and remove hack
[openwrt/openwrt.git] / target / linux / generic / backport-5.10 / 830-v5.14-leds-lp55xx-Initialize-enable-GPIO-direction-to-outp.patch
1 From a5d3d1adc95f4ac5968b7a77ee95a3abbbb96f49 Mon Sep 17 00:00:00 2001
2 From: Doug Zobel <dougdev334@gmail.com>
3 Date: Mon, 10 May 2021 15:40:00 -0500
4 Subject: [PATCH] leds: lp55xx: Initialize enable GPIO direction to output
5
6 The "Convert to use GPIO descriptors" commit changed the
7 initialization of the enable GPIO from GPIOF_DIR_OUT to
8 GPIOD_ASIS. This breaks systems where the GPIO does not
9 default to output. Changing the enable initialization
10 to GPIOD_OUT_LOW.
11
12 Signed-off-by: Doug Zobel <dougdev334@gmail.com>
13 Signed-off-by: Pavel Machek <pavel@ucw.cz>
14 ---
15 drivers/leds/leds-lp55xx-common.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/drivers/leds/leds-lp55xx-common.c
19 +++ b/drivers/leds/leds-lp55xx-common.c
20 @@ -694,7 +694,7 @@ struct lp55xx_platform_data *lp55xx_of_p
21 of_property_read_u8(np, "clock-mode", &pdata->clock_mode);
22
23 pdata->enable_gpiod = devm_gpiod_get_optional(dev, "enable",
24 - GPIOD_ASIS);
25 + GPIOD_OUT_LOW);
26 if (IS_ERR(pdata->enable_gpiod))
27 return ERR_CAST(pdata->enable_gpiod);
28