Patch "usb: phy: tegra: Correct definition of B_SESS_VLD_WAKEUP_EN bit" has been added to the 5.13-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: phy: tegra: Correct definition of B_SESS_VLD_WAKEUP_EN bit

to the 5.13-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-phy-tegra-correct-definition-of-b_sess_vld_wakeu.patch
and it can be found in the queue-5.13 subdirectory.

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



commit e14dff77ed386849542881b490f28803679d0a9b
Author: Dmitry Osipenko <digetx@xxxxxxxxx>
Date:   Sun Jun 13 17:59:36 2021 +0300

    usb: phy: tegra: Correct definition of B_SESS_VLD_WAKEUP_EN bit
    
    [ Upstream commit 7917e90667bc8dce02daa3c2e6df47f6fc9481f7 ]
    
    The B_SESS_VLD_WAKEUP_EN bit 6 was added by a mistake in a previous
    commit. This bit corresponds to B_SESS_END_WAKEUP_EN, which we don't use.
    The B_VBUS_VLD_WAKEUP_EN doesn't exist at all and B_SESS_VLD_WAKEUP_EN
    needs to be in place of it. We don't utilize B-sensors in the driver,
    so it never was a problem, nevertheless let's correct the definition of
    the bits.
    
    Fixes: 35192007d28d ("usb: phy: tegra: Support waking up from a low power mode")
    Signed-off-by: Dmitry Osipenko <digetx@xxxxxxxxx>
    Link: https://lore.kernel.org/r/20210613145936.9902-2-digetx@xxxxxxxxx
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/usb/phy/phy-tegra-usb.c b/drivers/usb/phy/phy-tegra-usb.c
index 10fafcf9801b..c0f432d509aa 100644
--- a/drivers/usb/phy/phy-tegra-usb.c
+++ b/drivers/usb/phy/phy-tegra-usb.c
@@ -58,8 +58,7 @@
 #define   USB_WAKEUP_DEBOUNCE_COUNT(x)		(((x) & 0x7) << 16)
 
 #define USB_PHY_VBUS_SENSORS			0x404
-#define   B_SESS_VLD_WAKEUP_EN			BIT(6)
-#define   B_VBUS_VLD_WAKEUP_EN			BIT(14)
+#define   B_SESS_VLD_WAKEUP_EN			BIT(14)
 #define   A_SESS_VLD_WAKEUP_EN			BIT(22)
 #define   A_VBUS_VLD_WAKEUP_EN			BIT(30)
 
@@ -545,7 +544,7 @@ static int utmi_phy_power_on(struct tegra_usb_phy *phy)
 
 		val = readl_relaxed(base + USB_PHY_VBUS_SENSORS);
 		val &= ~(A_VBUS_VLD_WAKEUP_EN | A_SESS_VLD_WAKEUP_EN);
-		val &= ~(B_VBUS_VLD_WAKEUP_EN | B_SESS_VLD_WAKEUP_EN);
+		val &= ~(B_SESS_VLD_WAKEUP_EN);
 		writel_relaxed(val, base + USB_PHY_VBUS_SENSORS);
 
 		val = readl_relaxed(base + UTMIP_BAT_CHRG_CFG0);



[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