Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 2016 21:06:59 +0000 (UTC)
From:      Steven Hartland <smh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r295051 - head/sys/dev/ixl
Message-ID:  <201601292106.u0TL6xN0043129@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: smh
Date: Fri Jan 29 21:06:59 2016
New Revision: 295051
URL: https://svnweb.freebsd.org/changeset/base/295051

Log:
  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

Modified:
  head/sys/dev/ixl/if_ixl.c

Modified: head/sys/dev/ixl/if_ixl.c
==============================================================================
--- head/sys/dev/ixl/if_ixl.c	Fri Jan 29 18:43:51 2016	(r295050)
+++ head/sys/dev/ixl/if_ixl.c	Fri Jan 29 21:06:59 2016	(r295051)
@@ -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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601292106.u0TL6xN0043129>