[PATCH 2/3] usb: xhci-pci: Add run-time check for TUSB73X0
From: Fabio Estevam
Date: Wed Sep 09 2026 - 09:05:36 EST
The "ti,pwron-active-high" property is only valid for TUSB73X0.
Protect its code so that eventual specific TUSB73X0 register write applies
only on a TUSB73X0 device.
Signed-off-by: Fabio Estevam <festevam@xxxxxxxxx>
---
drivers/usb/host/xhci-pci.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index c580e0b86011..75aa679f7d79 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -683,9 +683,11 @@ int xhci_pci_common_probe(struct pci_dev *dev, const struct pci_device_id *id)
dma_set_max_seg_size(&dev->dev, UINT_MAX);
- if (device_property_read_bool(&dev->dev, "ti,pwron-active-high"))
- pci_clear_and_set_config_dword(dev, TUSB73X0_USB_CTRL, 0,
- TUSB73X0_PWRON_POLARITY);
+ if (dev->vendor == PCI_VENDOR_ID_TI &&
+ dev->device == PCI_DEVICE_ID_TI_TUSB73X0)
+ if (device_property_read_bool(&dev->dev, "ti,pwron-active-high"))
+ pci_clear_and_set_config_dword(dev, TUSB73X0_USB_CTRL, 0,
+ TUSB73X0_PWRON_POLARITY);
return 0;
--
2.43.0