Message ID | 20241004124521.53442-3-francesco@dolcini.it (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | USB: xhci: add support for PWRON polarity invert (TI TUSB73x0) | expand |
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 91dccd25a551..440fbaeeaa3d 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -641,6 +641,9 @@ 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,tusb7320-pwron-polarity-invert")) + pci_clear_and_set_config_dword(dev, 0xE0, 0, 1 << 22); + return 0; put_usb3_hcd: