mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
scsi_transport_sas: Remove check for SAS expander when querying bay/enclosure IDs.
Dell Server backplanes can report bay/enclosure IDs without an expander present. This patch allows the bay/enclosure IDs to be propagaged to sysfs.we Signed-off-by: Jordan Hargrave <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
2492fc09f0
commit
0c416b54f2
1 changed files with 0 additions and 10 deletions
|
|
@ -1222,13 +1222,6 @@ show_sas_rphy_enclosure_identifier(struct device *dev,
|
|||
u64 identifier;
|
||||
int error;
|
||||
|
||||
/*
|
||||
* Only devices behind an expander are supported, because the
|
||||
* enclosure identifier is a SMP feature.
|
||||
*/
|
||||
if (scsi_is_sas_phy_local(phy))
|
||||
return -EINVAL;
|
||||
|
||||
error = i->f->get_enclosure_identifier(rphy, &identifier);
|
||||
if (error)
|
||||
return error;
|
||||
|
|
@ -1248,9 +1241,6 @@ show_sas_rphy_bay_identifier(struct device *dev,
|
|||
struct sas_internal *i = to_sas_internal(shost->transportt);
|
||||
int val;
|
||||
|
||||
if (scsi_is_sas_phy_local(phy))
|
||||
return -EINVAL;
|
||||
|
||||
val = i->f->get_bay_identifier(rphy);
|
||||
if (val < 0)
|
||||
return val;
|
||||
|
|
|
|||
Loading…
Reference in a new issue