Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2015 03:10:37 +0000 (UTC)
From:      "Conrad E. Meyer" <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289206 - head/sys/dev/ntb/ntb_hw
Message-ID:  <201510130310.t9D3Abtc045756@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Tue Oct 13 03:10:36 2015
New Revision: 289206
URL: https://svnweb.freebsd.org/changeset/base/289206

Log:
  NTB: MFV b6750cfe: Correct USD/DSD Identification
  
  Due to ambiguous documentation, the USD/DSD identification is backward
  when compared to the setting in BIOS.  Correct the bits to match the
  BIOS setting.
  
  Authored by:	Jon Mason
  Obtained from:	Linux
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/sys/dev/ntb/ntb_hw/ntb_hw.c

Modified: head/sys/dev/ntb/ntb_hw/ntb_hw.c
==============================================================================
--- head/sys/dev/ntb/ntb_hw/ntb_hw.c	Tue Oct 13 03:10:04 2015	(r289205)
+++ head/sys/dev/ntb/ntb_hw/ntb_hw.c	Tue Oct 13 03:10:36 2015	(r289206)
@@ -690,9 +690,9 @@ ntb_setup_xeon(struct ntb_softc *ntb)
 	}
 
 	if ((val & XEON_PPD_DEV_TYPE) != 0)
-		ntb->dev_type = NTB_DEV_DSD;
-	else
 		ntb->dev_type = NTB_DEV_USD;
+	else
+		ntb->dev_type = NTB_DEV_DSD;
 
 	ntb->reg_ofs.pdb	= XEON_PDOORBELL_OFFSET;
 	ntb->reg_ofs.pdb_mask	= XEON_PDBMSK_OFFSET;



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