]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] scsi: Added support for adapter and firmware reset
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>
Fri, 12 Aug 2011 09:51:28 +0000 (02:51 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 27 Aug 2011 14:36:46 +0000 (08:36 -0600)
commit2944369144548432f3a5ffce7a2926bfb4ce4f0a
treec42de87060c88ed22224e828fbd81a83f33a03e7
parent6085491c34b37fa806f70ccd3fb2bf08416e9e98
[SCSI] scsi: Added support for adapter and firmware reset

Added new sysfs attr 'host_reset' in scsi_sysfs.c to
perform adapter or firmware reset as suggested by
Mike Christie here:
http://marc.info/?l=linux-scsi&m=127359347111167&w=2

user/application can write "adapter" or "firmware" on
this attr and it will call newly added function hook
in scsi_host_template to call LDD adapter or firmware
reset implementation.

Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_sysfs.c
include/scsi/scsi_host.h