]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: move link state interrupt request/free calls
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 7 Apr 2016 18:39:35 +0000 (19:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2016 19:26:03 +0000 (15:26 -0400)
commita1dc502cb91d39217b34e3e579e0ad66d80c9821
treea2dedb98694d93da6ed844428d9280b74ff5ef43
parent5450480433fbe1ccf413ed0e4b6cd49d5d8240c3
nfp: move link state interrupt request/free calls

We need to be able to disable the link state interrupt when
the device is brought down.  We used to just free the IRQ
at the beginning of .ndo_stop().  As we now move towards
more ordered .ndo_open()/.ndo_stop() paths LSC allocation
should be placed in the "allocate resource" section.

Since the IRQ can't be freed early in .ndo_stop(), it is
disabled instead.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c