]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/hwspinlock.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)
commit194ac06e39238685abc0eeb436efa82e6571b90f
tree57731b702ecc40e5e6abecadfe32ffdd60d85c52
parenta951bc1e6ba58f11df5ed5ddc41311e10f5fd20b
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