svn commit: r327842 - head/sys/dev/e1000

Eric Joyner erj at FreeBSD.org
Thu Jan 11 19:24:53 UTC 2018


Author: erj
Date: Thu Jan 11 19:24:51 2018
New Revision: 327842
URL: https://svnweb.freebsd.org/changeset/base/327842

Log:
  e1000: Fix typos in value written to register and a comment
  
  The value written to E1000_TARC(0) wasn't intended to have every bit but
  E1000_TARC0_CB_MULTIQ_3_REQ cleared; a ~ was missing.
  
  Also change the referenced spec update section in the comment to the correct
  section.
  
  Sponsored by:	Intel Corporation

Modified:
  head/sys/dev/e1000/if_em.c

Modified: head/sys/dev/e1000/if_em.c
==============================================================================
--- head/sys/dev/e1000/if_em.c	Thu Jan 11 19:24:44 2018	(r327841)
+++ head/sys/dev/e1000/if_em.c	Thu Jan 11 19:24:51 2018	(r327842)
@@ -3072,9 +3072,9 @@ em_initialize_transmit_unit(if_ctx_t ctx)
 		reg = E1000_READ_REG(hw, E1000_IOSFPC);
 		reg |= E1000_RCTL_RDMTS_HEX;
 		E1000_WRITE_REG(hw, E1000_IOSFPC, reg);
-		/* i218-i219 Specification Update 1.5.4.4 */
+		/* i218-i219 Specification Update 1.5.4.5 */
 		reg = E1000_READ_REG(hw, E1000_TARC(0));
-		reg &= E1000_TARC0_CB_MULTIQ_3_REQ;
+		reg &= ~E1000_TARC0_CB_MULTIQ_3_REQ;
 		reg |= E1000_TARC0_CB_MULTIQ_2_REQ;
 		E1000_WRITE_REG(hw, E1000_TARC(0), reg);
 	}


More information about the svn-src-all mailing list