diff options
Diffstat (limited to 'drivers/message/fusion/mptsas.c')
-rw-r--r-- | drivers/message/fusion/mptsas.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 6512027bc69a..dcdf0380be86 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c | |||
@@ -760,7 +760,7 @@ mptsas_parse_device_info(struct sas_identify *identify, | |||
760 | } | 760 | } |
761 | 761 | ||
762 | static int mptsas_probe_one_phy(struct device *dev, | 762 | static int mptsas_probe_one_phy(struct device *dev, |
763 | struct mptsas_phyinfo *phy_info, int index) | 763 | struct mptsas_phyinfo *phy_info, int index, int local) |
764 | { | 764 | { |
765 | struct sas_phy *port; | 765 | struct sas_phy *port; |
766 | int error; | 766 | int error; |
@@ -853,6 +853,9 @@ static int mptsas_probe_one_phy(struct device *dev, | |||
853 | break; | 853 | break; |
854 | } | 854 | } |
855 | 855 | ||
856 | if (local) | ||
857 | port->local_attached = 1; | ||
858 | |||
856 | error = sas_phy_add(port); | 859 | error = sas_phy_add(port); |
857 | if (error) { | 860 | if (error) { |
858 | sas_phy_free(port); | 861 | sas_phy_free(port); |
@@ -918,7 +921,7 @@ mptsas_probe_hba_phys(MPT_ADAPTER *ioc, int *index) | |||
918 | } | 921 | } |
919 | 922 | ||
920 | mptsas_probe_one_phy(&ioc->sh->shost_gendev, | 923 | mptsas_probe_one_phy(&ioc->sh->shost_gendev, |
921 | &port_info->phy_info[i], *index); | 924 | &port_info->phy_info[i], *index, 1); |
922 | (*index)++; | 925 | (*index)++; |
923 | } | 926 | } |
924 | 927 | ||
@@ -989,7 +992,8 @@ mptsas_probe_expander_phys(MPT_ADAPTER *ioc, u32 *handle, int *index) | |||
989 | } | 992 | } |
990 | } | 993 | } |
991 | 994 | ||
992 | mptsas_probe_one_phy(parent, &port_info->phy_info[i], *index); | 995 | mptsas_probe_one_phy(parent, &port_info->phy_info[i], |
996 | *index, 0); | ||
993 | (*index)++; | 997 | (*index)++; |
994 | } | 998 | } |
995 | 999 | ||