Patch "ARM: dts: stm32: add missing usbh clock and fix clk order on stm32mp15" has been added to the 5.18-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ARM: dts: stm32: add missing usbh clock and fix clk order on stm32mp15

to the 5.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arm-dts-stm32-add-missing-usbh-clock-and-fix-clk-ord.patch
and it can be found in the queue-5.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit b34ac2ca8fba10a875d54f62ffc128613f041cbf
Author: Fabrice Gasnier <fabrice.gasnier@xxxxxxxxxxx>
Date:   Tue Jun 21 10:45:09 2022 +0200

    ARM: dts: stm32: add missing usbh clock and fix clk order on stm32mp15
    
    [ Upstream commit 1d0c1aadf1fd9f3de95d1532b3651e8634546e71 ]
    
    The USBH composed of EHCI and OHCI controllers needs the PHY clock to be
    initialized first, before enabling (gating) them. The reverse is also
    required when going to suspend.
    So, add USBPHY clock as 1st entry in both controllers, so the USBPHY PLL
    gets enabled 1st upon controller init. Upon suspend/resume, this also makes
    the clock to be disabled/re-enabled in the correct order.
    This fixes some IRQ storm conditions seen when going to low-power, due to
    PHY PLL being disabled before all clocks are cleanly gated.
    
    Fixes: 949a0c0dec85 ("ARM: dts: stm32: add USB Host (USBH) support to stm32mp157c")
    Fixes: db7be2cb87ae ("ARM: dts: stm32: use usbphyc ck_usbo_48m as USBH OHCI clock on stm32mp151")
    Signed-off-by: Fabrice Gasnier <fabrice.gasnier@xxxxxxxxxxx>
    Signed-off-by: Alexandre Torgue <alexandre.torgue@xxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
index f9aa9af31efd..9c2bbf115f4c 100644
--- a/arch/arm/boot/dts/stm32mp151.dtsi
+++ b/arch/arm/boot/dts/stm32mp151.dtsi
@@ -1474,7 +1474,7 @@ stmmac_axi_config_0: stmmac-axi-config {
 		usbh_ohci: usb@5800c000 {
 			compatible = "generic-ohci";
 			reg = <0x5800c000 0x1000>;
-			clocks = <&rcc USBH>, <&usbphyc>;
+			clocks = <&usbphyc>, <&rcc USBH>;
 			resets = <&rcc USBH_R>;
 			interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
 			status = "disabled";
@@ -1483,7 +1483,7 @@ usbh_ohci: usb@5800c000 {
 		usbh_ehci: usb@5800d000 {
 			compatible = "generic-ehci";
 			reg = <0x5800d000 0x1000>;
-			clocks = <&rcc USBH>;
+			clocks = <&usbphyc>, <&rcc USBH>;
 			resets = <&rcc USBH_R>;
 			interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
 			companion = <&usbh_ohci>;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux