Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5b1379a authored by Yuiko Oshino's avatar Yuiko Oshino Committed by David S. Miller
Browse files

lan78xx: Fix failure in USB Full Speed



Fix initialize the uninitialized tx_qlen to an appropriate value when USB
Full Speed is used.

Fixes: 55d7de9d ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver")
Signed-off-by: default avatarYuiko Oshino <yuiko.oshino@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 161f72ed
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);