ses: Add power_status to SES device slot
authorSong Liu <songliubraving@fb.com>
Tue, 30 Dec 2014 22:46:18 +0000 (14:46 -0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 9 Jan 2015 14:44:19 +0000 (15:44 +0100)
commit08024885a2a3ed432716e9d50046a620a5b2df05
tree52e0042dac2c8651641987da49163908c3305e74
parent921ce7f5786052749a22a75780f5ce1a456bcdc6
ses: Add power_status to SES device slot

Add power_status to SES device slot, so we can power on/off the
HDDs behind the enclosure.

Check firmware status in ses_set_* before sending control pages to
firmware.

Signed-off-by: Song Liu <songliubraving@fb.com>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Jens Axboe <axboe@fb.com>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/misc/enclosure.c
drivers/scsi/ses.c
include/linux/enclosure.h
This page took 0.025103 seconds and 5 git commands to generate.