Patch "usb: dwc3: remove generic PHY calibrate() calls" has been added to the 4.19-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

    usb: dwc3: remove generic PHY calibrate() calls

to the 4.19-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:
     usb-dwc3-remove-generic-phy-calibrate-calls.patch
and it can be found in the queue-4.19 subdirectory.

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



commit 6fa849fa574a91dcf93d688d491d016363088b7f
Author: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
Date:   Thu Aug 29 07:30:28 2019 +0200

    usb: dwc3: remove generic PHY calibrate() calls
    
    [ Upstream commit a0a465569b45e3690be155c96fb54603d6904f41 ]
    
    Calls to USB2 generic PHY calibrate() method has been moved to HCD core,
    which now successfully handles generic PHYs and their calibration after
    every HCD reset. This fixes all the timing issues related to PHY
    calibration done directly from DWC3 driver: incorrect operation after
    system suspend/resume or USB3.0 detection failure when XHCI-plat driver
    compiled as separate module.
    
    Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
    Tested-by: Anand Moon <linux.amoon@xxxxxxxxx>
    Tested-by: Jochen Sprickerhof <jochen@xxxxxxxxxxxxxx>
    Acked-by: Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20190829053028.32438-3-m.szyprowski@xxxxxxxxxxx
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Stable-dep-of: 0d410e8913f5 ("usb: dwc3: core: Stop processing of pending events if controller is halted")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 4002c6790be6e..259eeb2f6ad53 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -167,7 +167,6 @@ static void __dwc3_set_mode(struct work_struct *work)
 				otg_set_vbus(dwc->usb2_phy->otg, true);
 			phy_set_mode(dwc->usb2_generic_phy, PHY_MODE_USB_HOST);
 			phy_set_mode(dwc->usb3_generic_phy, PHY_MODE_USB_HOST);
-			phy_calibrate(dwc->usb2_generic_phy);
 		}
 		break;
 	case DWC3_GCTL_PRTCAP_DEVICE:
@@ -1178,7 +1177,6 @@ static int dwc3_core_init_mode(struct dwc3 *dwc)
 				dev_err(dev, "failed to initialize host\n");
 			return ret;
 		}
-		phy_calibrate(dwc->usb2_generic_phy);
 		break;
 	case USB_DR_MODE_OTG:
 		INIT_WORK(&dwc->drd_work, __dwc3_set_mode);




[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