All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Cc: Neal Liu <neal_liu@aspeedtech.com>,
	Alan Stern <stern@rowland.harvard.edu>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Sasha Levin <sashal@kernel.org>,
	linux-usb@vger.kernel.org
Subject: [PATCH AUTOSEL 4.19 12/29] usb: ehci: add pci device support for Aspeed platforms
Date: Fri,  1 Apr 2022 10:45:55 -0400	[thread overview]
Message-ID: <20220401144612.1955177-12-sashal@kernel.org> (raw)
In-Reply-To: <20220401144612.1955177-1-sashal@kernel.org>

From: Neal Liu <neal_liu@aspeedtech.com>

[ Upstream commit c3c9cee592828528fd228b01d312c7526c584a42 ]

Enable Aspeed quirks in commit 7f2d73788d90 ("usb: ehci:
handshake CMD_RUN instead of STS_HALT") to support Aspeed
ehci-pci device.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
Link: https://lore.kernel.org/r/20220208101657.76459-1-neal_liu@aspeedtech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/usb/host/ehci-pci.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index 56e6fd0f0482..42ace9f92ce9 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host/ehci-pci.c
@@ -21,6 +21,9 @@ static const char hcd_name[] = "ehci-pci";
 /* defined here to avoid adding to pci_ids.h for single instance use */
 #define PCI_DEVICE_ID_INTEL_CE4100_USB	0x2e70
 
+#define PCI_VENDOR_ID_ASPEED		0x1a03
+#define PCI_DEVICE_ID_ASPEED_EHCI	0x2603
+
 /*-------------------------------------------------------------------------*/
 #define PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC		0x0939
 static inline bool is_intel_quark_x1000(struct pci_dev *pdev)
@@ -223,6 +226,12 @@ static int ehci_pci_setup(struct usb_hcd *hcd)
 			ehci->has_synopsys_hc_bug = 1;
 		}
 		break;
+	case PCI_VENDOR_ID_ASPEED:
+		if (pdev->device == PCI_DEVICE_ID_ASPEED_EHCI) {
+			ehci_info(ehci, "applying Aspeed HC workaround\n");
+			ehci->is_aspeed = 1;
+		}
+		break;
 	}
 
 	/* optional debug port, normally in the first BAR */
-- 
2.34.1


  parent reply	other threads:[~2022-04-01 15:52 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-01 14:45 [PATCH AUTOSEL 4.19 01/29] drm: Add orientation quirk for GPD Win Max Sasha Levin
2022-04-01 14:45 ` Sasha Levin
2022-04-01 14:45 ` [PATCH AUTOSEL 4.19 02/29] ath5k: fix OOB in ath5k_eeprom_read_pcal_info_5111 Sasha Levin
2022-04-01 14:45 ` [PATCH AUTOSEL 4.19 03/29] drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj Sasha Levin
2022-04-01 14:45   ` Sasha Levin
2022-04-01 14:45   ` Sasha Levin
2022-04-01 14:45 ` [PATCH AUTOSEL 4.19 04/29] ptp: replace snprintf with sysfs_emit Sasha Levin
2022-04-01 14:45 ` [PATCH AUTOSEL 4.19 05/29] powerpc: dts: t104xrdb: fix phy type for FMAN 4/5 Sasha Levin
2022-04-01 14:45   ` Sasha Levin
2022-04-01 14:45 ` [PATCH AUTOSEL 4.19 06/29] scsi: mvsas: Replace snprintf() with sysfs_emit() Sasha Levin
2022-04-01 14:45 ` [PATCH AUTOSEL 4.19 07/29] scsi: bfa: " Sasha Levin
2022-04-01 14:45 ` [PATCH AUTOSEL 4.19 08/29] power: supply: axp20x_battery: properly report current when discharging Sasha Levin
2022-04-01 14:45 ` [PATCH AUTOSEL 4.19 09/29] powerpc: Set crashkernel offset to mid of RMA region Sasha Levin
2022-04-01 14:45   ` Sasha Levin
2022-04-01 14:45 ` [PATCH AUTOSEL 4.19 10/29] PCI: aardvark: Fix support for MSI interrupts Sasha Levin
2022-04-01 14:45   ` Sasha Levin
2022-04-01 14:45 ` [PATCH AUTOSEL 4.19 11/29] iommu/arm-smmu-v3: fix event handling soft lockup Sasha Levin
2022-04-01 14:45   ` Sasha Levin
2022-04-01 14:45 ` Sasha Levin [this message]
2022-04-01 14:45 ` [PATCH AUTOSEL 4.19 13/29] PCI: pciehp: Add Qualcomm quirk for Command Completed erratum Sasha Levin
2022-04-01 14:45 ` [PATCH AUTOSEL 4.19 14/29] ipv4: Invalidate neighbour for broadcast address upon address addition Sasha Levin
2022-04-01 14:45 ` [dm-devel] [PATCH AUTOSEL 4.19 15/29] dm ioctl: prevent potential spectre v1 gadget Sasha Levin
2022-04-01 14:45   ` Sasha Levin
2022-04-01 14:45 ` [PATCH AUTOSEL 4.19 16/29] drm/amdkfd: make CRAT table missing message informational only Sasha Levin
2022-04-01 14:45   ` Sasha Levin
2022-04-01 14:45   ` Sasha Levin
2022-04-01 14:46 ` [PATCH AUTOSEL 4.19 17/29] scsi: pm8001: Fix pm8001_mpi_task_abort_resp() Sasha Levin
2022-04-01 14:46 ` [PATCH AUTOSEL 4.19 18/29] scsi: aha152x: Fix aha152x_setup() __setup handler return value Sasha Levin
2022-04-01 14:46 ` [PATCH AUTOSEL 4.19 19/29] net/smc: correct settings of RMB window update limit Sasha Levin
2022-04-01 14:46 ` [PATCH AUTOSEL 4.19 20/29] macvtap: advertise link netns via netlink Sasha Levin
2022-04-01 14:46 ` [PATCH AUTOSEL 4.19 21/29] bnxt_en: Eliminate unintended link toggle during FW reset Sasha Levin
2022-04-01 14:46 ` [PATCH AUTOSEL 4.19 22/29] MIPS: fix fortify panic when copying asm exception handlers Sasha Levin
2022-04-01 14:46 ` [PATCH AUTOSEL 4.19 23/29] powerpc/code-patching: Pre-map patch area Sasha Levin
2022-04-01 14:46   ` Sasha Levin
2022-04-01 14:46 ` [PATCH AUTOSEL 4.19 24/29] scsi: libfc: Fix use after free in fc_exch_abts_resp() Sasha Levin
2022-04-01 14:46 ` [PATCH AUTOSEL 4.19 25/29] usb: dwc3: omap: fix "unbalanced disables for smps10_out1" on omap5evm Sasha Levin
2022-04-01 14:46 ` [PATCH AUTOSEL 4.19 26/29] xtensa: fix DTC warning unit_address_format Sasha Levin
2022-04-01 14:46 ` [PATCH AUTOSEL 4.19 27/29] Bluetooth: Fix use after free in hci_send_acl Sasha Levin
2022-04-01 14:46 ` [PATCH AUTOSEL 4.19 28/29] init/main.c: return 1 from handled __setup() functions Sasha Levin
2022-04-01 14:46 ` [PATCH AUTOSEL 4.19 29/29] minix: fix bug when opening a file with O_DIRECT Sasha Levin

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=20220401144612.1955177-12-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=neal_liu@aspeedtech.com \
    --cc=stable@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.