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 D8134209F4D for ; Mon, 2 Dec 2024 15:18: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=1733152732; cv=none; b=qIwz0kQ7a6FWPGI+M1ob1iE1ZmIafrne55AaSWC0YQh4bYLdNA97hr/DwnaIaSP4bkO79Tzh2vxoevGQusI/asCZoyKRGcxO7HSrRvhXg4aOE6KMmRvthLtOtpIk9Is46liKaaintoZAUHWWzrH0EYu8ae4bVw/npKgIBwNGb38= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733152732; c=relaxed/simple; bh=SUxYUk8V4ZyQq9AURHaj6HmR2Nam0WMZKuekhnAF48U=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=giJBx8K8APAaVw0nvW3Q0SZ6ig/P5QZOISpzr7FEKx14BPocYYFLteTZc7EInL3xEzr7NeMJ+DjsiBy+uM85FNmDalAbvvzY0uRiFlnqx0J9F9e7JR9DEnkpyTYZpFMpJRCM0jXihVRcoYPlSrODQ53rFMbMjAKnWtdjA3MuExQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BSdhZC9d; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BSdhZC9d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06762C4CED1; Mon, 2 Dec 2024 15:18:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733152732; bh=SUxYUk8V4ZyQq9AURHaj6HmR2Nam0WMZKuekhnAF48U=; h=Subject:To:Cc:From:Date:From; b=BSdhZC9d2+cgIERD1kPuHGbwRCB+dQWnstjfpzkHWt9U7WLAETtpIPa6rr9zTe+BH LtY3ikPedWqx9JF05k2KF8DFuNazvi3uQjJkJN/27ctGjg62Aiws73C4FYbgUQGa/w iJjcbQo4nd6Gkb3bumlvhGbakjB9B5mKIIwgQDAU= Subject: FAILED: patch "[PATCH] xhci: Combine two if statements for Etron xHCI host" failed to apply to 6.6-stable tree To: ki.chiang65@gmail.com,gregkh@linuxfoundation.org,mathias.nyman@linux.intel.com Cc: From: Date: Mon, 02 Dec 2024 16:18:49 +0100 Message-ID: <2024120249-tribunal-catacomb-b0ad@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x d7b11fe5790203fcc0db182249d7bfd945e44ccb # git commit -s git send-email --to '' --in-reply-to '2024120249-tribunal-catacomb-b0ad@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From d7b11fe5790203fcc0db182249d7bfd945e44ccb Mon Sep 17 00:00:00 2001 From: Kuangyi Chiang Date: Wed, 6 Nov 2024 12:14:43 +0200 Subject: [PATCH] xhci: Combine two if statements for Etron xHCI host Combine two if statements, because these hosts have the same quirk flags applied. [Mathias: has stable tag because other fixes in series depend on this] Fixes: 91f7a1524a92 ("xhci: Apply broken streams quirk to Etron EJ188 xHCI host") Cc: stable@vger.kernel.org Signed-off-by: Kuangyi Chiang Signed-off-by: Mathias Nyman Link: https://lore.kernel.org/r/20241106101459.775897-18-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 7803ff1f1c9f..db3c7e738213 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -394,12 +394,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW; if (pdev->vendor == PCI_VENDOR_ID_ETRON && - pdev->device == PCI_DEVICE_ID_EJ168) { - xhci->quirks |= XHCI_RESET_ON_RESUME; - xhci->quirks |= XHCI_BROKEN_STREAMS; - } - if (pdev->vendor == PCI_VENDOR_ID_ETRON && - pdev->device == PCI_DEVICE_ID_EJ188) { + (pdev->device == PCI_DEVICE_ID_EJ168 || + pdev->device == PCI_DEVICE_ID_EJ188)) { xhci->quirks |= XHCI_RESET_ON_RESUME; xhci->quirks |= XHCI_BROKEN_STREAMS; }