From: Mingjin Ge <mingjin.ge@mediatek.com>
To: Mathias Nyman <mathias.nyman@intel.com>,
Chunfeng Yun <chunfeng.yun@mediatek.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>
Cc: <linux-usb@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-mediatek@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <sirius.wang@mediatek.com>,
<vince-wl.liu@mediatek.com>, <jh.hsu@mediatek.com>,
<Project_Global_Chrome_Upstream_Group@mediatek.com>,
Mingjin Ge <mingjin.ge@mediatek.com>
Subject: [PATCH 1/1] usb: mtk-xhci: add support remote wakeup of mt8189
Date: Wed, 3 Dec 2025 09:34:50 +0800 [thread overview]
Message-ID: <20251203013521.2038888-2-mingjin.ge@mediatek.com> (raw)
In-Reply-To: <20251203013521.2038888-1-mingjin.ge@mediatek.com>
Add remote wakeup configuration for the mt8189 in xhci-mtk driver.
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Mingjin Ge <mingjin.ge@mediatek.com>
---
drivers/usb/host/xhci-mtk.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c
index 8da05e9dfa28..134a46907db5 100644
--- a/drivers/usb/host/xhci-mtk.c
+++ b/drivers/usb/host/xhci-mtk.c
@@ -96,6 +96,10 @@
#define WC0_IS_P BIT(12) /* polarity */
#define WC0_IS_EN BIT(6)
+/* mt8189*/
+#define PERI_WK_CTRL0_8189 0x0
+#define WC0_IS_EN_P_89 BIT(18)
+
/* mt8192 */
#define WC0_SSUSB0_CDEN BIT(6)
#define WC0_IS_SPM_EN BIT(1)
@@ -140,6 +144,7 @@ enum ssusb_uwk_vers {
SSUSB_UWK_V1_7, /* mt8196 IP0 */
SSUSB_UWK_V1_8, /* mt8196 IP1 */
SSUSB_UWK_V1_9, /* mt8196 IP2 */
+ SSUSB_UWK_V1_10, /* mt8189 IP all */
};
/*
@@ -407,6 +412,11 @@ static void usb_wakeup_ip_sleep_set(struct xhci_hcd_mtk *mtk, bool enable)
msk = WC1_IS_EN_P2_96;
val = enable ? msk : 0;
break;
+ case SSUSB_UWK_V1_10:
+ reg = mtk->uwk_reg_base + PERI_WK_CTRL0_8189;
+ msk = WC0_IS_EN_P_89;
+ val = enable ? msk : 0;
+ break;
case SSUSB_UWK_V2:
reg = mtk->uwk_reg_base + PERI_SSUSB_SPM_CTRL;
msk = SSC_IP_SLEEP_EN | SSC_SPM_INT_EN;
--
2.45.2
next prev parent reply other threads:[~2025-12-03 1:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-03 1:34 [PATCH 0/1] " Mingjin Ge
2025-12-03 1:34 ` Mingjin Ge [this message]
2025-12-03 5:59 ` [PATCH 1/1] usb: mtk-xhci: " AngeloGioacchino Del Regno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251203013521.2038888-2-mingjin.ge@mediatek.com \
--to=mingjin.ge@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunfeng.yun@mediatek.com \
--cc=gregkh@linuxfoundation.org \
--cc=jh.hsu@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=matthias.bgg@gmail.com \
--cc=sirius.wang@mediatek.com \
--cc=vince-wl.liu@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®