dts:arm:rk3288-box: ddr frequency set to 533 when playing 4K video.
[firefly-linux-kernel-4.4.55.git] / drivers / scsi / ses.c
index eb7a3e85304f89b95aac774a38a37c07bbe324b9..eba183c428cf3c3fc78e55c356cdd20e615d48d1 100644 (file)
@@ -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)
 {
@@ -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 */