This is exactly what I'm doing in my sas2.0 driver. Eric On Wednesday, October 15, 2008 12:43 AM, Abhijit Paithankar wrote: > > Does this look like it could be useful upstream? > > Abhijit > > > Signed-off-by: Abhijit Paithankar <apaithan@xxxxxxxxxx> > > > > Index: linux-2.6.27/drivers/message/fusion/mptsas.c > > =================================================================== > > --- linux-2.6.27.orig/drivers/message/fusion/mptsas.c > 2008-10-13 17:31:57.000000000 -0700 > > +++ linux-2.6.27/drivers/message/fusion/mptsas.c > 2008-10-14 11:36:36.000000000 -0700 > > @@ -839,11 +839,15 @@ mptsas_sas_enclosure_pg0(MPT_ADAPTER *io > > static int > > mptsas_slave_configure(struct scsi_device *sdev) > > { > > + struct sas_rphy *rphy; > > > > if (sdev->channel == MPTSAS_RAID_CHANNEL) > > goto out; > > > > - sas_read_port_mode_page(sdev); > > + rphy = dev_to_rphy(sdev->sdev_target->dev.parent); > > + if (rphy->identify.device_type == SAS_END_DEVICE && > > + (rphy->identify.target_port_protocols & SAS_PROTOCOL_SSP)) > > + sas_read_port_mode_page(sdev); > > > > out: > > return mptscsih_slave_configure(sdev); > -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html