- Bugfix for dwc2 USB driver.
This commit is contained in:
commit
4dc9b1771b
@ -996,8 +996,9 @@ static int dwc2_udc_otg_of_to_plat(struct udevice *dev)
|
||||
plat->rx_fifo_sz = dev_read_u32_default(dev, "g-rx-fifo-size", 0);
|
||||
plat->np_tx_fifo_sz = dev_read_u32_default(dev, "g-np-tx-fifo-size", 0);
|
||||
|
||||
plat->tx_fifo_sz_nb =
|
||||
dev_read_size(dev, "g-tx-fifo-size") / sizeof(u32);
|
||||
ret = dev_read_size(dev, "g-tx-fifo-size");
|
||||
if (ret > 0)
|
||||
plat->tx_fifo_sz_nb = ret / sizeof(u32);
|
||||
if (plat->tx_fifo_sz_nb > DWC2_MAX_HW_ENDPOINTS)
|
||||
plat->tx_fifo_sz_nb = DWC2_MAX_HW_ENDPOINTS;
|
||||
if (plat->tx_fifo_sz_nb) {
|
||||
|
Loading…
Reference in New Issue
Block a user