diff options
Diffstat (limited to 'drivers/scsi/ses.c')
-rw-r--r-- | drivers/scsi/ses.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/ses.c b/drivers/scsi/ses.c index eb7a3e85304f..eba183c428cf 100644 --- a/drivers/scsi/ses.c +++ b/drivers/scsi/ses.c | |||
@@ -160,6 +160,10 @@ static unsigned char *ses_get_page2_descriptor(struct enclosure_device *edev, | |||
160 | return NULL; | 160 | return NULL; |
161 | } | 161 | } |
162 | 162 | ||
163 | /* For device slot and array device slot elements, byte 3 bit 6 | ||
164 | * is "fault sensed" while byte 3 bit 5 is "fault reqstd". As this | ||
165 | * code stands these bits are shifted 4 positions right so in | ||
166 | * sysfs they will appear as bits 2 and 1 respectively. Strange. */ | ||
163 | static void ses_get_fault(struct enclosure_device *edev, | 167 | static void ses_get_fault(struct enclosure_device *edev, |
164 | struct enclosure_component *ecomp) | 168 | struct enclosure_component *ecomp) |
165 | { | 169 | { |
@@ -181,7 +185,7 @@ static int ses_set_fault(struct enclosure_device *edev, | |||
181 | /* zero is disabled */ | 185 | /* zero is disabled */ |
182 | break; | 186 | break; |
183 | case ENCLOSURE_SETTING_ENABLED: | 187 | case ENCLOSURE_SETTING_ENABLED: |
184 | desc[2] = 0x02; | 188 | desc[3] = 0x20; |
185 | break; | 189 | break; |
186 | default: | 190 | default: |
187 | /* SES doesn't do the SGPIO blink settings */ | 191 | /* SES doesn't do the SGPIO blink settings */ |