From: Jose Alberto Reguero <jose.alberto.reguero@gmail.com>
To: Sergey Shtylyov <s.shtylyov@omp.ru>,
Greg KH <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org,
Mathias Nyman <mathias.nyman@intel.com>
Subject: Re: [PATCH v2] usb: Fix problem with xhci resume from suspend
Date: Mon, 23 Sep 2024 23:39:23 +0200 [thread overview]
Message-ID: <b6e4bd54-198c-4d96-9ceb-86d0e2b4fbea@gmail.com> (raw)
In-Reply-To: <2544903d-26c4-ca4f-b67b-5ef68e7c2e21@omp.ru>
El 19/09/2024 a las 21:18, Sergey Shtylyov escribió:
> On 9/19/24 21:42, Jose Alberto Reguero wrote:
>
>> I have a ASUS PN51 S mini pc that has two xhci devices. One from AMD, and other
>> from ASMEDIA. The one from ASMEDIA have problems when resume from suspend, and
>> keep broken until unplug the power cord. I use this kernel parameter:
>> xhci-hcd.quirks=128 and then it works ok. I make a path to reset only the
>> ASMEDIA xhci.
>>
>>
>> Signed-off-by: Jose Alberto Reguero <jose.alberto.reguero@gmail.com>
>>
>> ---
>> drivers/usb/host/xhci-pci.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
>> index dc1e345ab67e..8f075ab63f65 100644
>> --- a/drivers/usb/host/xhci-pci.c
>> +++ b/drivers/usb/host/xhci-pci.c
> [...]
>> @@ -447,6 +448,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
>> pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI)
>> xhci->quirks |= XHCI_ASMEDIA_MODIFY_FLOWCONTROL;
>>
>> + if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
>> + pdev->device == PCI_DEVICE_ID_ASMEDIA_3042_XHCI)
> Hum, please either add 1 more tab here or start the continuation line
> under pdev jn the broken up line. The *if* expression should not blend with
> code in the branch.
I do in the next version.
Thanks for reviewing.
>> + xhci->quirks |= XHCI_RESET_ON_RESUME;
>> +
>> if (pdev->vendor == PCI_VENDOR_ID_TI && pdev->device == 0x8241)
>> xhci->quirks |= XHCI_LIMIT_ENDPOINT_INTERVAL_7;
> MBR, Sergey
Jose Alberto Reguero
next prev parent reply other threads:[~2024-09-23 21:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-19 18:42 [PATCH v2] usb: Fix problem with xhci resume from suspend Jose Alberto Reguero
2024-09-19 19:18 ` Sergey Shtylyov
2024-09-23 21:39 ` Jose Alberto Reguero [this message]
2024-10-04 13:40 ` Greg KH
2024-09-19 19:22 ` Sergey Shtylyov
2024-09-23 21:43 ` Jose Alberto Reguero
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=b6e4bd54-198c-4d96-9ceb-86d0e2b4fbea@gmail.com \
--to=jose.alberto.reguero@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=s.shtylyov@omp.ru \
/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