]> 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)
commit6a08fee83e53bc9821fbbde46b9b201dc2c0c9e6
tree57731b702ecc40e5e6abecadfe32ffdd60d85c52
parentfd70df961a996d30aa51f723b49aa43e918fc735
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