]> git.karo-electronics.de Git - karo-tx-linux.git/commit
isci: fix oem parameter validation on single controller skus
authorDan Williams <dan.j.williams@intel.com>
Fri, 13 Apr 2012 04:18:38 +0000 (21:18 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 13 Apr 2012 04:18:38 +0000 (21:18 -0700)
commit54b386e8d0bacbe9f7919b13218d519642a34030
tree84dc999acd95d3b138f22eb00716e91bc7ee007b
parent0034102808e0dbbf3a2394b82b1bb40b5778de9e
isci: fix oem parameter validation on single controller skus

OEM parameters [1] are parsed from the platform option-rom / efi
driver.  By default the driver was validating the parameters for the
dual-controller case, but in single-controller case only the first set
of parameters may be valid.

Limit the validation to the number of actual controllers detected
otherwise the driver may fail to parse the valid parameters leading to
driver-load or runtime failures.

[1] the platform specific set of phy address, configuration,and analog
    tuning values

Reported-by: Dave Jiang <dave.jiang@intel.com>
Tested-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/init.c