usb: u_ether: Fix compile errors
commit f1a1823ff2
usb: 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
commit 79467317949e1621240f632acfb7453783bec2e7
USB: gadget: u_ether: Fix data stall issue in RNDIS tethering mode
commit 68b91e8c54f5c091986c5719631893b10eab760a
usb: 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:
parent
4b2db1ab6c
commit
260bcfb18b
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue