Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp152918pxj; Mon, 17 May 2021 23:42:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhMIlOJjPN8xKtnB0n6n6Secpt3n4wtKk7XpDj09gQ9jgE85rtb6OWHKZU69YPNeUZpapq X-Received: by 2002:a6b:b7c3:: with SMTP id h186mr3119787iof.14.1621320125139; Mon, 17 May 2021 23:42:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621320125; cv=none; d=google.com; s=arc-20160816; b=0iK/S+/vWBfFpwJxFyO/o4OlL9dQN+nBEtIltuxdoIPgtjODkOv06xNCrMxXPIk/Xs HJS99NbfEU6EaZMgWirRXYyVnG6Nnps0D4M7CHjUT5qD6oFWVmDZ0joXFe3kB48Cg30p p01BmhTyuMNZEd9IUxEtL0Y/giXY35XOraC8xCnr52TrEHXVIZvxoENMOdkvjB353QLz AFWP6B9APZRcsUWRFW5DVlN+pZc+0TR45176cf9fYdEBn7W4mTfRtG/Yl2gLOKBTikiT kCo4fAy2tqyBoZIblqWQZv100HHFwdIPnkHrSoyP1vcBUNPMfmBjL5RMD9LJGmoOPK1/ TLpA== 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=q2gqL5vPkkR5edJ+nfBAI/V9mgc3B1RAccu/4mR8ox9gKLc6/LaDNToJZ1a+QcZrvE rn17u9Fcr+z5kJr9mVffKd1/nheDiE2LjTwiXu923V+XSKs+ny/FGH56hGeAGM4gfveT +UgBGjebd5MaNxZ5UJjIIYkrsKOU/UZVzVYUsEyTSK4ugFisllWXxj1DJKNE/nqZWiyY OCZY1u2+GEvHhrawPd+N287+kkDz6cW6RCGiEfaje5G5a2vZF4clYlYE5YtJSmYki+8N YtEqdWlpMqJSv16c8PQE3Z1KE01I0GeOKoZI96/Mxc6Y8/IhObae8oZAHn1AHt/NzjM3 N+uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HYWy2q4S; 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 p15si22421334ilo.83.2021.05.17.23.41.52; Mon, 17 May 2021 23:42:05 -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=HYWy2q4S; 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 S240962AbhEQOv2 (ORCPT + 99 others); Mon, 17 May 2021 10:51:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:55124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240360AbhEQOnj (ORCPT ); Mon, 17 May 2021 10:43:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 49FE961952; Mon, 17 May 2021 14:20:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261229; bh=mSJUEB90YnJUWJ8lpzoiOGZB0zh1GB/zCSArtgyYiQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HYWy2q4SHLvR4XrPq9IqUF72wmGwGYbWE//opsIInu8wLHlTGkNoGCWqtZ9iDpIMi HXMndkR3SIAsX5tPJpTo1rPJVpUeyu36ttjJYfGEZ8vs3MrHaa9nz/FiFCwoC6nhgO u0FDkqxcaqy5Hamkv7vIvX1S/0ihk42O32+B4rWc= 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.12 322/363] xhci: Add reset resume quirk for AMD xhci controller. Date: Mon, 17 May 2021 16:03:08 +0200 Message-Id: <20210517140313.485243999@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@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;