mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
usb: u_ether: Fix compile errors
commitf1a1823ff2usb: gadget: u_ether: convert into module changes qlen function definition. and this has to be fixed accordingly in current u_ether driver. This patch fixes following compile error in u_ether caused by commit. drivers/usb/gadget/u_ether.c: In function 'rx_fill': drivers/usb/gadget/u_ether.c:416:3: error: too few arguments to function 'qlen' if (++req_cnt > qlen(dev->gadget)) ^ drivers/usb/gadget/u_ether.c: In function 'eth_start_xmit': drivers/usb/gadget/u_ether.c:738:24: error: 'qmult' undeclared (first use in this function) if (dev->tx_qlen == (qmult/2)) { which was caused by commits commit7946731794USB: gadget: u_ether: Fix data stall issue in RNDIS tethering mode commit68b91e8c54usb: u_ether: Add workqueue as bottom half handler for rx data path Change-Id: Ic4e5a1e08cb688e5a606c7c1895f869d8f887b9f Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
This commit is contained in:
committed by
John Stultz
parent
4b2db1ab6c
commit
260bcfb18b
@@ -417,7 +417,7 @@ static void rx_fill(struct eth_dev *dev, gfp_t gfp_flags)
|
||||
spin_lock_irqsave(&dev->req_lock, flags);
|
||||
while (!list_empty(&dev->rx_reqs)) {
|
||||
/* break the nexus of continuous completion and re-submission*/
|
||||
if (++req_cnt > qlen(dev->gadget))
|
||||
if (++req_cnt > qlen(dev->gadget, dev->qmult))
|
||||
break;
|
||||
|
||||
req = container_of(dev->rx_reqs.next,
|
||||
@@ -745,7 +745,7 @@ static netdev_tx_t eth_start_xmit(struct sk_buff *skb,
|
||||
if (gadget_is_dualspeed(dev->gadget) &&
|
||||
(dev->gadget->speed == USB_SPEED_HIGH)) {
|
||||
dev->tx_qlen++;
|
||||
if (dev->tx_qlen == (qmult/2)) {
|
||||
if (dev->tx_qlen == (dev->qmult/2)) {
|
||||
req->no_interrupt = 0;
|
||||
dev->tx_qlen = 0;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user