]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/scsi/hpsa.c
hpsa: detect and report failures changing controller transport modes
authorRobert Elliott <elliott@hp.com>
Fri, 23 Jan 2015 22:45:01 +0000 (16:45 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 2 Feb 2015 17:57:44 +0000 (09:57 -0800)
commitc706a7954a160ddc1a29e1dfe4dc1f58e2b95023
tree2a99497688d8427753f6fcf76a4e5a946adeb9b6
parent007e7aa9b37d570fc5917522a6f6bcca14264632
hpsa: detect and report failures changing controller transport modes

Detect failues when attempting to change controller to use simple
or performant transport modes (mode change ack) rather than just
proceeding ahead after timeouts.

Return values are added to:
hpsa_put_ctlr_into_performant_mode
hpsa_wait_for_mode_change_ack
and all their callers check/propagate the result.

More consistency in printing errors and whether
dev_err is used.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Signed-off-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/hpsa.c