]> git.karo-electronics.de Git - karo-tx-linux.git/commit
isci: refactor initialization for S3/S4
authorDan Williams <dan.j.williams@intel.com>
Wed, 15 Feb 2012 21:58:42 +0000 (13:58 -0800)
committerDan Williams <dan.j.williams@intel.com>
Fri, 13 Apr 2012 07:13:14 +0000 (00:13 -0700)
commitd975f0569648b0215ef0617acaddd58f841986f4
tree0778a6b74bc3d3c506ea9bf292e8c9a374b858a4
parent527c1ddb9f411ddc1efbb861073315dbfbc4d57f
isci: refactor initialization for S3/S4

Based on an original implementation by Ed Nadolski and Artur Wojcik

In preparation for S3/S4 support refactor initialization so that
driver-load and resume-from-suspend can share the common init path of
isci_host_init().  Organize the initialization into objects that are
self-contained to the driver (initialized by isci_host_init) versus
those that have some upward registration (initialized at allocation time
asd_sas_phy, asd_sas_port, dma allocations).  The largest change is
moving the the validation of the oem and module parameters from
isci_host_init() to isci_host_alloc().

The S3/S4 approach being taken is that libsas will be tasked with
remembering the state of the domain and the lldd is free to be
forgetful.  In the case of isci we'll just re-init using a subset of the
normal driver load path.

[clean up some unused / mis-indented function definitions in host.h]

Signed-off-by: Ed Nadolski <edmund.nadolski@intel.com>
Signed-off-by: Artur Wojcik <artur.wojcik@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/host.c
drivers/scsi/isci/host.h
drivers/scsi/isci/init.c
drivers/scsi/isci/probe_roms.c
drivers/scsi/isci/probe_roms.h
drivers/scsi/isci/request.c
drivers/scsi/isci/unsolicited_frame_control.c
drivers/scsi/isci/unsolicited_frame_control.h