lkml.org 
[lkml]   [2023]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 6.4 14/40] usb: chipidea: imx: add missing USB PHY DPDM wakeup setting
    Date
    From: Xu Yang <xu.yang_2@nxp.com>

    [ Upstream commit 53d061c19dc4cb68409df6dc11c40389c8c42a75 ]

    USB PHY DPDM wakeup bit is enabled by default, when USB wakeup
    is not required(/sys/.../wakeup is disabled), this bit should be
    disabled, otherwise we will have unexpected wakeup if do USB device
    connect/disconnect while system sleep.
    This bit can be enabled for both host and device mode.

    Signed-off-by: Li Jun <jun.li@nxp.com>
    Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
    Acked-by: Peter Chen <peter.chen@kernel.org>
    Message-ID: <20230517081907.3410465-3-xu.yang_2@nxp.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/usb/chipidea/usbmisc_imx.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c
    index 0938e274ba3a8..681c2ddc83fa5 100644
    --- a/drivers/usb/chipidea/usbmisc_imx.c
    +++ b/drivers/usb/chipidea/usbmisc_imx.c
    @@ -135,7 +135,7 @@
    #define TXVREFTUNE0_MASK (0xf << 20)

    #define MX6_USB_OTG_WAKEUP_BITS (MX6_BM_WAKEUP_ENABLE | MX6_BM_VBUS_WAKEUP | \
    - MX6_BM_ID_WAKEUP)
    + MX6_BM_ID_WAKEUP | MX6SX_BM_DPDM_WAKEUP_EN)

    struct usbmisc_ops {
    /* It's called once when probe a usb device */
    --
    2.39.2
    \
     
     \ /
      Last update: 2023-07-24 03:38    [W:4.298 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site