Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2010 18:54:59 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r207872 - stable/7/sys/dev/mpt
Message-ID:  <201005101854.o4AIsxHD038245@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Mon May 10 18:54:59 2010
New Revision: 207872
URL: http://svn.freebsd.org/changeset/base/207872

Log:
  MFC: r207286
  
  Replace a magic value with the appropriate macro.

Modified:
  stable/7/sys/dev/mpt/mpt_cam.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/mpt/mpt_cam.c
==============================================================================
--- stable/7/sys/dev/mpt/mpt_cam.c	Mon May 10 18:54:58 2010	(r207871)
+++ stable/7/sys/dev/mpt/mpt_cam.c	Mon May 10 18:54:59 2010	(r207872)
@@ -1058,12 +1058,13 @@ mpt_read_config_info_spi(struct mpt_soft
 static int
 mpt_set_initial_config_spi(struct mpt_softc *mpt)
 {
-	int i, pp1val = ((1 << mpt->mpt_ini_id) << 16) | mpt->mpt_ini_id;
-	int error;
+	int error, i, pp1val;
 
 	mpt->mpt_disc_enable = 0xff;
 	mpt->mpt_tag_enable = 0;
 
+	pp1val = ((1 << mpt->mpt_ini_id) <<
+	    MPI_SCSIPORTPAGE1_CFG_SHIFT_PORT_RESPONSE_ID) | mpt->mpt_ini_id;
 	if (mpt->mpt_port_page1.Configuration != pp1val) {
 		CONFIG_PAGE_SCSI_PORT_1 tmp;
 



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