ath79: add support for COMFAST CF-E130N v2
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-4.19 / 950-0596-overlays-Correct-gpio-fan-gpio-flags-for-4.19.patch
1 From 21e4c9306bd20ab4e02f90cd452d90bc4e4a0a98 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Wed, 3 Jul 2019 20:37:14 +0100
4 Subject: [PATCH] overlays: Correct gpio-fan gpio flags for 4.19
5
6 The gpio-fan overlay was submitted for the 4.14 kernel where the second
7 value in the Device Tree gpios declaration was ignored (thanks to an
8 old-style driver), allowing the fan-control output to be active-high
9 even though the declaration appears to request it be active-low.
10 The gpio-fan driver in 4.19 uses GPIO descriptors and honours the
11 active-low flag that the overlay (accidentally?) supplies.
12
13 Change/correct the flags field to mark the GPIO as active-high.
14
15 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
16 ---
17 arch/arm/boot/dts/overlays/gpio-fan-overlay.dts | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 --- a/arch/arm/boot/dts/overlays/gpio-fan-overlay.dts
21 +++ b/arch/arm/boot/dts/overlays/gpio-fan-overlay.dts
22 @@ -45,7 +45,7 @@
23 __overlay__ {
24 fan0: gpio-fan@0 {
25 compatible = "gpio-fan";
26 - gpios = <&gpio 12 1>;
27 + gpios = <&gpio 12 0>;
28 gpio-fan,speed-map = <0 0>,
29 <5000 1>;
30 #cooling-cells = <2>;