diff options
author | smh <smh@FreeBSD.org> | 2016-01-29 21:06:59 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2016-01-29 21:06:59 +0000 |
commit | 4b996ada0978f0856e1d0e6d48c469fdee887f58 (patch) | |
tree | de9838e689a645a3be31f38a71652e66f86abdfd /sys/dev/ixl | |
parent | 06c93e5cef7669f0580e7cd320df054124e95f35 (diff) | |
download | FreeBSD-src-4b996ada0978f0856e1d0e6d48c469fdee887f58.zip FreeBSD-src-4b996ada0978f0856e1d0e6d48c469fdee887f58.tar.gz |
Fix phy interrupts setup for ixl
Fix the inverted set of interrupts being used as the mask for ixl.
Without this ixl devices fail to detect link state changes.
Reviewed by: erj, sbruno
MFC after: 2 days
Sponsored by: Multiplay
Diffstat (limited to 'sys/dev/ixl')
-rw-r--r-- | sys/dev/ixl/if_ixl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ixl/if_ixl.c b/sys/dev/ixl/if_ixl.c index 505d4b4..d5ab42f 100644 --- a/sys/dev/ixl/if_ixl.c +++ b/sys/dev/ixl/if_ixl.c @@ -674,9 +674,9 @@ ixl_attach(device_t dev) } /* Limit phy interrupts to link and modules failure */ - error = i40e_aq_set_phy_int_mask(hw, - I40E_AQ_EVENT_LINK_UPDOWN | I40E_AQ_EVENT_MODULE_QUAL_FAIL, NULL); - if (error) + error = i40e_aq_set_phy_int_mask(hw, ~(I40E_AQ_EVENT_LINK_UPDOWN | + I40E_AQ_EVENT_MODULE_QUAL_FAIL), NULL); + if (error) device_printf(dev, "set phy mask failed: %d\n", error); /* Get the bus configuration and set the shared code */ |