Skip to content

Commit

Permalink
HSD#14015549971 usb: xhci: Add quick to configure dma bit mask to 40 …
Browse files Browse the repository at this point in the history
…bits

Agilex5 address bus width supports up to 40 bits.
Add handling in xhci driver to configure dma bit mask
to 40 bits when 40 bits dma bit mask quirk is set in dt.

Signed-off-by: Adrian Ng Ho Yin <adrian.ho.yin.ng@intel.com>
  • Loading branch information
hoyin0722 committed Mar 21, 2024
1 parent d01fd92 commit 4156e63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/usb/host/xhci-plat.c
Expand Up @@ -250,6 +250,9 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s
if (device_property_read_bool(tmpdev, "quirk-broken-port-ped"))
xhci->quirks |= XHCI_BROKEN_PORT_PED;

if (device_property_read_bool(tmpdev, "dma_set_40_bit_mask_quirk"))
ret = dma_set_mask_and_coherent(sysdev, DMA_BIT_MASK(40));

device_property_read_u32(tmpdev, "imod-interval-ns",
&xhci->imod_interval);
}
Expand Down

0 comments on commit 4156e63

Please sign in to comment.