Patch "phy: ti: tusb1210: Don't check for write errors when powering on" 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

    phy: ti: tusb1210: Don't check for write errors when powering on

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:
     phy-ti-tusb1210-don-t-check-for-write-errors-when-po.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 7bf39e9cbcacbd69756d6a37b77c283962624689
Author: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Date:   Mon Jun 13 19:08:48 2022 +0300

    phy: ti: tusb1210: Don't check for write errors when powering on
    
    [ Upstream commit d4a0a189b72a7c98e4256292b18b67c69fbc9343 ]
    
    On some platforms, like Intel Merrifield, the writing values during power on
    may timeout:
    
       tusb1210 dwc3.0.auto.ulpi: error -110 writing val 0x41 to reg 0x80
       phy phy-dwc3.0.auto.ulpi.0: phy poweron failed --> -110
       dwc3 dwc3.0.auto: error -ETIMEDOUT: failed to initialize core
       dwc3: probe of dwc3.0.auto failed with error -110
    
    which effectively fails the probe of the USB controller.
    Drop the check as it was before the culprit commit (see Fixes tag).
    
    Fixes: 09a3512681b3 ("phy: ti: tusb1210: Improve ulpi_read()/_write() error checking")
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
    Acked-by: Hans de Goede <hdegoede@xxxxxxxxxx>
    Tested-by: Ferry Toth <fntoth@xxxxxxxxx>
    Link: https://lore.kernel.org/r/20220613160848.82746-1-andriy.shevchenko@xxxxxxxxxxxxxxx
    Signed-off-by: Vinod Koul <vkoul@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/phy/ti/phy-tusb1210.c b/drivers/phy/ti/phy-tusb1210.c
index c3ab4b69ea68..669c13d6e402 100644
--- a/drivers/phy/ti/phy-tusb1210.c
+++ b/drivers/phy/ti/phy-tusb1210.c
@@ -105,8 +105,9 @@ static int tusb1210_power_on(struct phy *phy)
 	msleep(TUSB1210_RESET_TIME_MS);
 
 	/* Restore the optional eye diagram optimization value */
-	return tusb1210_ulpi_write(tusb, TUSB1210_VENDOR_SPECIFIC2,
-				   tusb->vendor_specific2);
+	tusb1210_ulpi_write(tusb, TUSB1210_VENDOR_SPECIFIC2, tusb->vendor_specific2);
+
+	return 0;
 }
 
 static int tusb1210_power_off(struct phy *phy)



[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