]> git.baikalelectronics.ru Git - kernel.git/commit
net: netcp: fix improper initialization in netcp_ndo_open()
authorKaricheri, Muralidharan <m-karicheri2@ti.com>
Thu, 16 Jul 2015 19:32:14 +0000 (15:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2015 03:37:39 +0000 (20:37 -0700)
commitb70217e86bb7b05172e2c49bbf733945f5655712
tree57731b702ecc40e5e6abecadfe32ffdd60d85c52
parentf89faf0f42c627dba0ba1cb4932da345eca8309c
net: netcp: fix improper initialization in netcp_ndo_open()

The keystone qmss will raise interrupt when packet arrive at the
receive queue. Only control available to avoid interrupt from happening
is to keep the free descriptor queue (FDQ) empty in the receive side.
So the filling of descriptors into the FDQ has to happen after
request_irq() call is made as part of knav_queue_enable_notify(). So
move the function netcp_rxpool_refill() after this call.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_core.c