* [PATCH net] netxen: Fix link event handling.
@ 2014-11-06 12:58 Manish Chopra
2014-11-06 21:43 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Manish Chopra @ 2014-11-06 12:58 UTC (permalink / raw)
To: davem; +Cc: netdev, mkubecek, Dept-GELinuxNICDev
o Poll for the link events only if firmware doesn't have capability
to notify the driver for the link events.
Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
---
.../net/ethernet/qlogic/netxen/netxen_nic_main.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
index 0b2a1cc..6130375 100644
--- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
+++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
@@ -2762,7 +2762,8 @@ netxen_fw_poll_work(struct work_struct *work)
if (test_bit(__NX_RESETTING, &adapter->state))
goto reschedule;
- if (test_bit(__NX_DEV_UP, &adapter->state)) {
+ if (test_bit(__NX_DEV_UP, &adapter->state) &&
+ !(adapter->capabilities & NX_FW_CAPABILITY_LINK_NOTIFICATION)) {
if (!adapter->has_link_events) {
netxen_nic_handle_phy_intr(adapter);
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] netxen: Fix link event handling.
2014-11-06 12:58 [PATCH net] netxen: Fix link event handling Manish Chopra
@ 2014-11-06 21:43 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-11-06 21:43 UTC (permalink / raw)
To: manish.chopra; +Cc: netdev, mkubecek, Dept-GELinuxNICDev
From: Manish Chopra <manish.chopra@qlogic.com>
Date: Thu, 6 Nov 2014 07:58:51 -0500
> o Poll for the link events only if firmware doesn't have capability
> to notify the driver for the link events.
>
> Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-06 21:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06 12:58 [PATCH net] netxen: Fix link event handling Manish Chopra
2014-11-06 21:43 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).