]> Git Repo - linux.git/commit - drivers/scsi/stex.c
stex: Add hotplug support
authorCharles <[email protected]>
Mon, 22 Feb 2016 12:04:25 +0000 (20:04 +0800)
committerMartin K. Petersen <[email protected]>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commit45b42adbec68872529e4e24ba7570de367240818
tree89b526877e14a340adf5dd38a68d0ee1b8db9388
parent1ec364e6a33a748c30411737b01257b1c976d297
stex: Add hotplug support

1. Add hotplug support. Pegasus support surprise removal. To this end, I
   use return_abnormal_state function to return DID_NO_CONNECT for all
   commands which sent to driver.

2. Remove stex_hba_stop in stex_remove because we cannot send command to
   device after hotplug.

3. Add new device status: MU_STATE_STOP, MU_STATE_NOCONNECT,
   MU_STATE_STOP. MU_STATE_STOP is currently not referenced.
   MU_STATE_NOCONNECT represent that device is plugged out from the
   host.

4. Use return_abnormal_function() to substitute part of code in
   stex_do_reset.

Signed-off-by: Charles Chiou <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/scsi/stex.c
This page took 0.050288 seconds and 4 git commands to generate.