From 79e3b85f2ff65621a731a02e009be00613f1111b Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Wed, 21 Dec 2022 19:18:50 +0100 Subject: [PATCH] 6.1-stable patches added patches: mips-dts-ci20-fix-reset-line-polarity-of-the-ethernet-controller.patch series --- ...-polarity-of-the-ethernet-controller.patch | 39 +++++++++++++++++++ queue-6.1/series | 1 + 2 files changed, 40 insertions(+) create mode 100644 queue-6.1/mips-dts-ci20-fix-reset-line-polarity-of-the-ethernet-controller.patch create mode 100644 queue-6.1/series diff --git a/queue-6.1/mips-dts-ci20-fix-reset-line-polarity-of-the-ethernet-controller.patch b/queue-6.1/mips-dts-ci20-fix-reset-line-polarity-of-the-ethernet-controller.patch new file mode 100644 index 00000000000..541bf0ef9a8 --- /dev/null +++ b/queue-6.1/mips-dts-ci20-fix-reset-line-polarity-of-the-ethernet-controller.patch @@ -0,0 +1,39 @@ +From ca637c0ece144ce62ec8ef75dc127bcccd4f442a Mon Sep 17 00:00:00 2001 +From: Dmitry Torokhov +Date: Fri, 18 Nov 2022 08:43:47 -0800 +Subject: MIPS: DTS: CI20: fix reset line polarity of the ethernet controller + +From: Dmitry Torokhov + +commit ca637c0ece144ce62ec8ef75dc127bcccd4f442a upstream. + +The reset line is called PWRST#, annotated as "active low" in the +binding documentation, and is driven low and then high by the driver to +reset the chip. However in device tree for CI20 board it was incorrectly +marked as "active high". Fix it. + +Because (as far as I know) the ci20.dts is always built in the kernel I +elected not to also add a quirk to gpiolib to force the polarity there. + +Fixes: db49ca38579d ("net: davicom: dm9000: switch to using gpiod API") +Reported-by: Paul Cercueil +Signed-off-by: Dmitry Torokhov +Acked-by: Paul Cercueil +Signed-off-by: Thomas Bogendoerfer +Cc: Sudip Mukherjee +Signed-off-by: Greg Kroah-Hartman +--- + arch/mips/boot/dts/ingenic/ci20.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/arch/mips/boot/dts/ingenic/ci20.dts ++++ b/arch/mips/boot/dts/ingenic/ci20.dts +@@ -438,7 +438,7 @@ + ingenic,nemc-tAW = <50>; + ingenic,nemc-tSTRV = <100>; + +- reset-gpios = <&gpf 12 GPIO_ACTIVE_HIGH>; ++ reset-gpios = <&gpf 12 GPIO_ACTIVE_LOW>; + vcc-supply = <ð0_power>; + + interrupt-parent = <&gpe>; diff --git a/queue-6.1/series b/queue-6.1/series new file mode 100644 index 00000000000..75e00c0c0b9 --- /dev/null +++ b/queue-6.1/series @@ -0,0 +1 @@ +mips-dts-ci20-fix-reset-line-polarity-of-the-ethernet-controller.patch -- 2.47.3