From: hwg Date: Wed, 21 Mar 2012 07:47:15 +0000 (+0800) Subject: ethernet: modify rx_urb_size size for sr9700 and dm9620 X-Git-Tag: firefly_0821_release~9600^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ae9e5f6391305d115f81203c698611b579da4390;p=firefly-linux-kernel-4.4.55.git ethernet: modify rx_urb_size size for sr9700 and dm9620 --- diff --git a/drivers/net/usb/dm9620.c b/drivers/net/usb/dm9620.c index 9c806f7c1f10..9df1e01d47d6 100755 --- a/drivers/net/usb/dm9620.c +++ b/drivers/net/usb/dm9620.c @@ -622,7 +622,7 @@ static int dm9620_bind(struct usbnet *dev, struct usb_interface *intf) dev->net->hard_header_len += DM_TX_OVERHEAD; dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; #ifdef RK2818 //harris 2010.12.27 - dev->rx_urb_size = 8912; // ftp fail fixed + dev->rx_urb_size = dev->net->mtu + ETH_HLEN + DM_RX_OVERHEAD+1; #else dev->rx_urb_size = 2048;//dev->net->mtu + ETH_HLEN + DM_RX_OVERHEAD+1; // ftp fail fixed #endif diff --git a/drivers/net/usb/sr9700.c b/drivers/net/usb/sr9700.c index cd16b97f0d77..11281802b525 100755 --- a/drivers/net/usb/sr9700.c +++ b/drivers/net/usb/sr9700.c @@ -421,7 +421,7 @@ static int sr9700_android_bind(struct usbnet *dev, struct usb_interface *intf) dev->net->ethtool_ops = &sr9700_android_ethtool_ops; dev->net->hard_header_len += QF_TX_OVERHEAD; dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; - dev->rx_urb_size =4096;// dev->net->mtu + ETH_HLEN + QF_RX_OVERHEAD; + dev->rx_urb_size = dev->net->mtu + ETH_HLEN + QF_RX_OVERHEAD; dev->mii.dev = dev->net; dev->mii.mdio_read = sr9700_android_mdio_read;