From: Sergei Shtylyov <sergei.shtylyov@gmail.com>
To: WangYuli <wangyuli@uniontech.com>,
mathias.nyman@intel.com, gregkh@linuxfoundation.org,
bhelgaas@google.com
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-pci@vger.kernel.org, guanwentao@uniontech.com,
zhanjun@uniontech.com, Chen Baozi <chenbaozi@phytium.com.cn>,
Wang Zhimin <wangzhimin1179@phytium.com.cn>,
Chen Zhenhua <chenzhenhua@phytium.com.cn>,
Wang Yinfeng <wangyinfeng@phytium.com.cn>,
Jiakun Shuai <shuaijiakun1288@phytium.com.cn>
Subject: Re: [PATCH] usb: xHCI: add XHCI_RESET_ON_RESUME quirk for Phytium xHCI host
Date: Thu, 29 Aug 2024 12:38:58 +0300 [thread overview]
Message-ID: <99754b01-51a0-29d3-6022-4e25130ff36a@gmail.com> (raw)
In-Reply-To: <59E000092FD56E43+20240829073005.304698-1-wangyuli@uniontech.com>
On 8/29/24 10:30 AM, WangYuli wrote:
> The resume operation of Phytium Px210 xHCI host would failed
Fail?
> to restore state. Use the XHCI_RESET_ON_RESUME quirk to skip
> it and reset the controller after resume.
>
> Co-developed-by: Chen Baozi <chenbaozi@phytium.com.cn>
> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn>
> Co-developed-by: Wang Zhimin <wangzhimin1179@phytium.com.cn>
> Signed-off-by: Wang Zhimin <wangzhimin1179@phytium.com.cn>
> Co-developed-by: Chen Zhenhua <chenzhenhua@phytium.com.cn>
> Signed-off-by: Chen Zhenhua <chenzhenhua@phytium.com.cn>
> Co-developed-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
> Co-developed-by: Jiakun Shuai <shuaijiakun1288@phytium.com.cn>
> Signed-off-by: Jiakun Shuai <shuaijiakun1288@phytium.com.cn>
> Signed-off-by: WangYuli <wangyuli@uniontech.com>
[...]
> diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
> index b5705ed01d83..af967644489c 100644
> --- a/drivers/usb/host/xhci-pci.c
> +++ b/drivers/usb/host/xhci-pci.c
> @@ -55,6 +55,8 @@
> #define PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI 0x51ed
> #define PCI_DEVICE_ID_INTEL_ALDER_LAKE_N_PCH_XHCI 0x54ed
>
> +#define PCI_DEVICE_ID_PHYTIUM_XHCI 0xdc27
> +
> /* Thunderbolt */
> #define PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_XHCI 0x1138
> #define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_2C_XHCI 0x15b5
> @@ -407,6 +409,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
> if (pdev->vendor == PCI_VENDOR_ID_VIA)
> xhci->quirks |= XHCI_RESET_ON_RESUME;
>
> + if (pdev->vendor == PCI_VENDOR_ID_PHYTIUM ||
Hm, ||, not &&?
> + pdev->device == PCI_DEVICE_ID_PHYTIUM_XHCI)
> + xhci->quirks |= XHCI_RESET_ON_RESUME;
> +
> /* See https://bugzilla.kernel.org/show_bug.cgi?id=79511 */
> if (pdev->vendor == PCI_VENDOR_ID_VIA &&
> pdev->device == 0x3432)
[...]
MBR, Sergey
next prev parent reply other threads:[~2024-08-29 9:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-29 7:30 [PATCH] usb: xHCI: add XHCI_RESET_ON_RESUME quirk for Phytium xHCI host WangYuli
2024-08-29 8:46 ` Greg KH
2024-08-29 8:55 ` WangYuli
2024-08-29 9:09 ` Greg KH
2024-08-29 9:38 ` Sergei Shtylyov [this message]
2024-08-29 16:51 ` Bjorn Helgaas
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=99754b01-51a0-29d3-6022-4e25130ff36a@gmail.com \
--to=sergei.shtylyov@gmail.com \
--cc=bhelgaas@google.com \
--cc=chenbaozi@phytium.com.cn \
--cc=chenzhenhua@phytium.com.cn \
--cc=gregkh@linuxfoundation.org \
--cc=guanwentao@uniontech.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=shuaijiakun1288@phytium.com.cn \
--cc=wangyinfeng@phytium.com.cn \
--cc=wangyuli@uniontech.com \
--cc=wangzhimin1179@phytium.com.cn \
--cc=zhanjun@uniontech.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