Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257791
b: refs/heads/master
c: 2a350ca
h: refs/heads/master
i:
  257789: e152a94
  257787: f7cfb2f
  257783: ceba73c
  257775: cf2858a
  257759: 26176bb
  257727: d7474e1
  257663: 3b9d91d
  257535: eb967fc
v: v3
  • Loading branch information
Douglas Gilbert authored and James Bottomley committed Jun 29, 2011
1 parent 266dfdc commit b37c385
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 545a876e4b4f261218be2c09b46dfff4ee95be31
refs/heads/master: 2a350cab9daf9a46322d83b091bb05cf54ccf6ab
6 changes: 5 additions & 1 deletion trunk/drivers/scsi/ses.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ static unsigned char *ses_get_page2_descriptor(struct enclosure_device *edev,
return NULL;
}

/* For device slot and array device slot elements, byte 3 bit 6
* is "fault sensed" while byte 3 bit 5 is "fault reqstd". As this
* code stands these bits are shifted 4 positions right so in
* sysfs they will appear as bits 2 and 1 respectively. Strange. */
static void ses_get_fault(struct enclosure_device *edev,
struct enclosure_component *ecomp)
{
Expand All @@ -181,7 +185,7 @@ static int ses_set_fault(struct enclosure_device *edev,
/* zero is disabled */
break;
case ENCLOSURE_SETTING_ENABLED:
desc[2] = 0x02;
desc[3] = 0x20;
break;
default:
/* SES doesn't do the SGPIO blink settings */
Expand Down

0 comments on commit b37c385

Please sign in to comment.