Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp630681pxj; Tue, 18 May 2021 10:36:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsb91A/YPYkTxCzvcj+ZAOGl8k+0eFiziskyiVqa6gC7+oVBO5O1U+nTyuFcvQi4xloxOZ X-Received: by 2002:a17:906:694b:: with SMTP id c11mr7014791ejs.420.1621359360298; Tue, 18 May 2021 10:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621359360; cv=none; d=google.com; s=arc-20160816; b=nClHtNS5hV3e0J7qRTq/Vame8uE+Aj++MLPBGXMqJ49ewkNb1FDmd7Nw7T8GIaeglL 04VUgK5w5nf+m404WvSP0v4JEIScSJzOGhOyd6A4PIC1zyZF31pa1RjzLZMD29xJS8k/ HpeAJxs5etu63q9Zdfc0m3+iC+17/Y/HW9zPK47T2XxXCBdjuulTl6VERFb7Upi/ZV32 XnQLez8yaa8aVmcEdaTQYxzDx/k1lT2XKqzhJVtARy76K4vfOytBagltToLUPQOnKbD2 j/v3zt/edHmQbW+gw+64z94VbIH5g+25zn4hf0EvLJO67NtijYug7n017go8Igg/I6zf 5FeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eFWlFzuCs9T1GtDEJtqZ5dFxT4ko04MGwEqBlq9UrBM=; b=vnfOcRuOt/nlLTg7Qm5mdDlkBdGYBGvGQsd3v0CUdl1z6Hvz3Uw/LrESANPsSgBRio jOQ5QN9C44E3j/MOtsb9pmPC77dFxJ4e8nfhpfp3p/O3ml0yUGrOfJlGVzXjzry36wqZ 0+RE/bzsnTdWN1c5eH0XPMJuCjIYLP1mTVgVfUhHvg1lPgGcnw7u2Oy9PrNHAPjaDQDM ncieGZ0sM0+1cCC82CGvmfyddN6renpG37MGT3SyYs9g9N+VsM5rktEtWW90DKfQKbk/ VErH5je7QjHGC460W+oLX5+/61PXXMExuwooreVbDpEc/kl5tFyE/hM7vSSmeAdzbQ7/ txtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VYH2t1gI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si17286744ejn.572.2021.05.18.10.35.05; Tue, 18 May 2021 10:36:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VYH2t1gI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346781AbhEQQJw (ORCPT + 99 others); Mon, 17 May 2021 12:09:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:35662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345037AbhEQPqO (ORCPT ); Mon, 17 May 2021 11:46:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 130BC61D28; Mon, 17 May 2021 14:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621262661; bh=mSJUEB90YnJUWJ8lpzoiOGZB0zh1GB/zCSArtgyYiQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VYH2t1gIBsA3z82Df+GSOfrsSBBXRz+n9y/prTuDICp0rLB/Kx9diaRr7twa60SOS OkO4xYggRM+LTdZNcPPP0ZJH1b85D/WDOg6zp+psiuRRqiAJYQQbNGuOhf8Xe1w0oN BUD1V2A+RosEYuGPCxd+cRvQPS/ULHgfifOa44hU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sandeep Singh , Mathias Nyman Subject: [PATCH 5.10 251/289] xhci: Add reset resume quirk for AMD xhci controller. Date: Mon, 17 May 2021 16:02:56 +0200 Message-Id: <20210517140313.594670412@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sandeep Singh commit 3c128781d8da463761495aaf8898c9ecb4e71528 upstream. One of AMD xhci controller require reset on resume. Occasionally AMD xhci controller does not respond to Stop endpoint command. Once the issue happens controller goes into bad state and in that case controller needs to be reset. Cc: Signed-off-by: Sandeep Singh Signed-off-by: Mathias Nyman Link: https://lore.kernel.org/r/20210512080816.866037-6-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/xhci-pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -167,8 +167,10 @@ static void xhci_pci_quirks(struct devic (pdev->device == 0x15e0 || pdev->device == 0x15e1)) xhci->quirks |= XHCI_SNPS_BROKEN_SUSPEND; - if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x15e5) + if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x15e5) { xhci->quirks |= XHCI_DISABLE_SPARSE; + xhci->quirks |= XHCI_RESET_ON_RESUME; + } if (pdev->vendor == PCI_VENDOR_ID_AMD) xhci->quirks |= XHCI_TRUST_TX_LENGTH;