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;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to