diff options
| author | Moore, Eric <Eric.Moore@lsil.com> | 2006-02-02 17:19:33 -0700 | 
|---|---|---|
| committer | <jejb@mulgrave.il.steeleye.com> | 2006-02-04 16:31:29 -0600 | 
| commit | 9cc1cfbc67d77164f5b612fcf833460eca4d81e9 (patch) | |
| tree | d2706627405b95fdfd22dcb14d2b9d06d9ac42c0 /drivers/message/fusion/mptctl.c | |
| parent | 096f7a2a094af3007937d6fd21560e28dca0994d (diff) | |
[SCSI] fusion - mptctl - adding support for bus_type=SAS
Add bus_type recognization in ioctl path for SAS.
Signed-off-by: Eric Moore <Eric.Moore@lsil.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptctl.c')
| -rw-r--r-- | drivers/message/fusion/mptctl.c | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c index 70a812a2514d..1a1bc66c8e9c 100644 --- a/drivers/message/fusion/mptctl.c +++ b/drivers/message/fusion/mptctl.c @@ -1145,7 +1145,9 @@ mptctl_getiocinfo (unsigned long arg, unsigned int data_size)  	/* Fill in the data and return the structure to the calling  	 * program  	 */ -	if (ioc->bus_type == FC) +	if (ioc->bus_type == SAS) +		karg->adapterType = MPT_IOCTL_INTERFACE_SAS; +	else if (ioc->bus_type == FC)  		karg->adapterType = MPT_IOCTL_INTERFACE_FC;  	else  		karg->adapterType = MPT_IOCTL_INTERFACE_SCSI; @@ -2391,7 +2393,7 @@ mptctl_hp_hostinfo(unsigned long arg, unsigned int data_size)  	karg.base_io_addr = pci_resource_start(pdev, 0); -	if (ioc->bus_type == FC) +	if ((ioc->bus_type == SAS) || (ioc->bus_type == FC))  		karg.bus_phys_width = HP_BUS_WIDTH_UNK;  	else  		karg.bus_phys_width = HP_BUS_WIDTH_16; @@ -2480,7 +2482,7 @@ mptctl_hp_targetinfo(unsigned long arg)  	/*  There is nothing to do for FCP parts.  	 */ -	if (ioc->bus_type == FC) +	if ((ioc->bus_type == SAS) || (ioc->bus_type == FC))  		return 0;  	if ((ioc->spi_data.sdp0length == 0) || (ioc->sh == NULL)) | 
