Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp822413lqp; Thu, 23 May 2024 00:29:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVHzLHFwJ6l3Y5gxelhcsd6mwyrz/Cn2U8wcrt+PDfoOcMRHYw56JkDJFDPJ3vY3j2DsVC65lWEtxxA1VqM0HmTV0fS9nzdOW4729WWuA== X-Google-Smtp-Source: AGHT+IHk9DIY675M+mCNAvOkd/m06u4YBX8ZqL41FWzJW4ZDYwccQ6d060tMlJ54mIIcLe4UfmQh X-Received: by 2002:a17:902:c411:b0:1f0:8cbf:c1b5 with SMTP id d9443c01a7336-1f339f0c888mr22971035ad.16.1716449350293; Thu, 23 May 2024 00:29:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716449350; cv=pass; d=google.com; s=arc-20160816; b=mHTm1yEw/dWGA45x6/yg4Vh+JtdrkD9m98v59zsfj90PNOgBalTzDpSZjInhUHipTX syGsUw7o2lHKxqpq7Mv8GkADqbYPcUokUnQAuz6cZna+GFS9wBQ2CFzwbyhld4qQE4YJ sVYoUpU91GqmBdpZ68vWif0ikPflCeociiFW/ofkzLl7nFdHUm77ObmtnT+OJNDnPYLT OuHihwjNV6HJRPwhkvvB6yrNyMJhUtL2La5iqDOru3T2BTQsIoeaKyvc6hUIDcBXEBUk SyffAhErZXWmQRnmlPVf+HzQVspmPCwhR7hIi7brrJTwKyESb16v0/6LRwuKMsPQQ8VI c6nQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KENN3JEra4uBzvsU5eyWUUSmVwz9Qk7CKDkdtcufzGg=; fh=+2AUfCaYx+XFiRYRIsTrw9Ktdp9THOg3WWYdzbJU1NI=; b=MOyw3WBsWD2DX2mjRK2v3UbJ9Lb3sVILQ/XeBOzs4bAI99RqptAPtIUD2o9IMivv0v WWe2M3/Cw99AYYXJTKcS/rbjXPqAitqZDTgJgj5J0LKI63FqDTYVEnMYyCAzGsJfmgRo TmYLq1rliIO2ApUKws5WkgYJuXUj37JeUCHpWD5KNLXTv6fNLpl2Sf9Jz2zJOvS+eykO kjFU6SIUKsFvfQHFeX1lH2Zq1RXDpkjGX5+vdmAd3/G0zOqQ6B1425p1ydc3x+RNeu0i 9TGDfpM3YfoSA61mP4LpuW4MAaIU7OYWDsVRv95fd9jVuKEStlVsGVaeyVMgEnJPKgEC ygZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oVaU+ovX; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-187091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f2f016b5bfsi16067745ad.317.2024.05.23.00.29.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 00:29:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oVaU+ovX; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-187091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id F05CDB21782 for ; Thu, 23 May 2024 07:29:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73DE213CA97; Thu, 23 May 2024 07:28:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oVaU+ovX" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 943FC3CF51; Thu, 23 May 2024 07:28:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716449332; cv=none; b=fiBtw2qGAa/GDjqjjIuE6kWowgVH1/vT3Vl9LgKNRaSqfPPDuFvLfwnJmLNRCdw8Y0RAv5tfmtxKirm4WcYoF7pcGc+iexnqk1dEDfwx7k2AOmIk2lpJ5D0WGi1dtMv5n9ul0AM+PzD4lzolTgHBh4gYX4SL75Umg3tew1cYfW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716449332; c=relaxed/simple; bh=dp2disMkVn+GSJVa1FknjWPEYIB6cpdRNJHPTy3SuwM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YCOA0b+0mrLF5ibekzpaPaIHhWQr1aEi7vTmPn7OXHakCINT0Und+hKsBFKCSMI++Vd5e72OhI+9aVv6OFxFpY/udTIeN3WGAj81FZ6OPm4FtT5nWTEOhlzAK1RnDYFe/AKNDBD8egCeUZxHBE7ZaubE/KfYVbFCRd27m9Ph0i4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oVaU+ovX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEC41C2BD10; Thu, 23 May 2024 07:28:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716449332; bh=dp2disMkVn+GSJVa1FknjWPEYIB6cpdRNJHPTy3SuwM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oVaU+ovXYyfm+EhmRtlxJiOViBdiseMKrwHIQ0hLBEpLqKGUvKy1fu4QCAn1PDJvd RdqKasCqGSnkx26m3nXCw9MokXsx/eeQ2K9BgdskmOx0P5zT4ZNAlHNwiTF93pa6AH whUYEMDKfogRyuqH1KOccZO1hQsloBBDGOBn6Pzs= Date: Thu, 23 May 2024 09:28:49 +0200 From: Greg KH To: =?utf-8?B?6JSj5YWJ55uK?= Cc: mathias.nyman@intel.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] xhci: Apply reset resume quirk to Etron EJ188 xHCI host Message-ID: <2024052304-gurgle-ice-eab9@gregkh> References: <20240522023918.7613-1-ki.chiang65@gmail.com> <20240522023918.7613-2-ki.chiang65@gmail.com> <2024052204-freehand-say-198c@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, May 23, 2024 at 01:33:00PM +0800, 蔣光益 wrote: > Hi Greg, > > Greg KH 於 2024年5月22日 週三 下午12:36寫道: > > > > On Wed, May 22, 2024 at 10:39:18AM +0800, Kuangyi Chiang wrote: > > > As described in commit c877b3b2ad5c ("xhci: Add reset on resume quirk for > > > asrock p67 host"), EJ188 have the same issue as EJ168, where completely > > > dies on resume. So apply XHCI_RESET_ON_RESUME quirk to EJ188 as well. > > > > > > Signed-off-by: Kuangyi Chiang > > > --- > > > 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 ef513c2..a0beb41 100644 > > > --- a/drivers/usb/host/xhci-pci.c > > > +++ b/drivers/usb/host/xhci-pci.c > > > @@ -31,6 +31,7 @@ > > > > > > #define PCI_VENDOR_ID_ETRON 0x1b6f > > > #define PCI_DEVICE_ID_EJ168 0x7023 > > > +#define PCI_DEVICE_ID_EJ188 0x7052 > > > > > > #define PCI_DEVICE_ID_INTEL_LYNXPOINT_XHCI 0x8c31 > > > #define PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI 0x9c31 > > > @@ -238,6 +239,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) > > > xhci->quirks |= XHCI_TRUST_TX_LENGTH; > > > xhci->quirks |= XHCI_BROKEN_STREAMS; > > > } > > > + if (pdev->vendor == PCI_VENDOR_ID_ETRON && > > > + pdev->device == PCI_DEVICE_ID_EJ188) { > > > + xhci->quirks |= XHCI_RESET_ON_RESUME; > > > + } > > > > Same question as on other patch, should this be backported to older > > kernels too? > > > > thanks, > > > > greg k-h > > Sorry, I'm new to this. > These patches have been tested in the stable 4.19 kernel, so they > should be backported to stable kernels as old as 4.19, right? Great, please put the proper Fixes: and Cc: stable tags on the commit when resending these. Also, they need to be made against the latest release, not an old 4.19 kernel, as we can't go back in time to only apply it to there. thanks, greg k-h