Skip to content

Commit

Permalink
lan78xx: Fix failure in USB Full Speed
Browse files Browse the repository at this point in the history
Fix initialize the uninitialized tx_qlen to an appropriate value when USB
Full Speed is used.

Fixes: 55d7de9 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver")
Signed-off-by: Yuiko Oshino <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
microchip1 authored and davem330 committed Jan 16, 2018
1 parent 161f72e commit a5b1379
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/usb/lan78xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2396,6 +2396,7 @@ static int lan78xx_reset(struct lan78xx_net *dev)
buf = DEFAULT_BURST_CAP_SIZE / FS_USB_PKT_SIZE;
dev->rx_urb_size = DEFAULT_BURST_CAP_SIZE;
dev->rx_qlen = 4;
dev->tx_qlen = 4;
}

ret = lan78xx_write_reg(dev, BURST_CAP, buf);
Expand Down

0 comments on commit a5b1379

Please sign in to comment.