diff options
author | Moore, Eric <Eric.Moore@lsil.com> | 2006-04-17 14:43:04 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-04-25 19:00:39 -0400 |
commit | bd23e94cd70f18700fc366451a8f1427e56ed137 (patch) | |
tree | f9e76aac305104fc32dfade5a1dd142c164de65b /drivers/message/fusion/mptbase.c | |
parent | c42bcefb5891c362b72e47070fbf7973e4eb8e1e (diff) |
[SCSI] mptfusion: bug fix's for raid components adding/deleting
This patch handles case where raid hidden components
are not being removed when power turned off to device
attached to expander, as well as the case of
exposing raid components when power is turned back on
to devices attached to an expander. (This is a repost
of this patch, with mptsas_is_end_device declared
further up in the code.)
This patch contains some other miscellaneous bug fix's.
Signed-off-by: Eric Moore <Eric.Moore@lsil.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
-rw-r--r-- | drivers/message/fusion/mptbase.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index 266414ca2814..ac66a658aa11 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -5741,6 +5741,7 @@ static void | |||
5741 | EventDescriptionStr(u8 event, u32 evData0, char *evStr) | 5741 | EventDescriptionStr(u8 event, u32 evData0, char *evStr) |
5742 | { | 5742 | { |
5743 | char *ds; | 5743 | char *ds; |
5744 | char buf[50]; | ||
5744 | 5745 | ||
5745 | switch(event) { | 5746 | switch(event) { |
5746 | case MPI_EVENT_NONE: | 5747 | case MPI_EVENT_NONE: |
@@ -5841,7 +5842,6 @@ EventDescriptionStr(u8 event, u32 evData0, char *evStr) | |||
5841 | break; | 5842 | break; |
5842 | case MPI_EVENT_SAS_DEVICE_STATUS_CHANGE: | 5843 | case MPI_EVENT_SAS_DEVICE_STATUS_CHANGE: |
5843 | { | 5844 | { |
5844 | char buf[50]; | ||
5845 | u8 id = (u8)(evData0); | 5845 | u8 id = (u8)(evData0); |
5846 | u8 ReasonCode = (u8)(evData0 >> 16); | 5846 | u8 ReasonCode = (u8)(evData0 >> 16); |
5847 | switch (ReasonCode) { | 5847 | switch (ReasonCode) { |
@@ -5878,7 +5878,6 @@ EventDescriptionStr(u8 event, u32 evData0, char *evStr) | |||
5878 | break; | 5878 | break; |
5879 | case MPI_EVENT_SAS_PHY_LINK_STATUS: | 5879 | case MPI_EVENT_SAS_PHY_LINK_STATUS: |
5880 | { | 5880 | { |
5881 | char buf[50]; | ||
5882 | u8 LinkRates = (u8)(evData0 >> 8); | 5881 | u8 LinkRates = (u8)(evData0 >> 8); |
5883 | u8 PhyNumber = (u8)(evData0); | 5882 | u8 PhyNumber = (u8)(evData0); |
5884 | LinkRates = (LinkRates & MPI_EVENT_SAS_PLS_LR_CURRENT_MASK) >> | 5883 | LinkRates = (LinkRates & MPI_EVENT_SAS_PLS_LR_CURRENT_MASK) >> |
@@ -5921,7 +5920,6 @@ EventDescriptionStr(u8 event, u32 evData0, char *evStr) | |||
5921 | case MPI_EVENT_IR_RESYNC_UPDATE: | 5920 | case MPI_EVENT_IR_RESYNC_UPDATE: |
5922 | { | 5921 | { |
5923 | u8 resync_complete = (u8)(evData0 >> 16); | 5922 | u8 resync_complete = (u8)(evData0 >> 16); |
5924 | char buf[40]; | ||
5925 | sprintf(buf,"IR Resync Update: Complete = %d:",resync_complete); | 5923 | sprintf(buf,"IR Resync Update: Complete = %d:",resync_complete); |
5926 | ds = buf; | 5924 | ds = buf; |
5927 | break; | 5925 | break; |