]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: hpsa: use bus '3' for legacy HBA devices
authorHannes Reinecke <hare@suse.de>
Thu, 17 Nov 2016 11:15:56 +0000 (12:15 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 20:17:51 +0000 (12:17 -0800)
commitc058b3914fddf166e5355d0d45a4c231c7ca9844
tree328c22e3d78e6cfe59c7efd0ce9eeba52c72b73f
parent8be163def5a4c580687cc1d62efdd813a915e392
scsi: hpsa: use bus '3' for legacy HBA devices

Older controllers use SCSI target id '0' for the first internal disk. As
the controllers are now placed on the same bus as the internal disks
this leads to a clash with the SCSI target id of controller.  This patch
checks the SCSI revision, and moves older controller to bus '3' to be
compatible with older releases and avoid this problem.

[mkp: fixed uninitialized variable]

Fixes: 09371d623c9 ("hpsa: Change SAS transport devices to bus 0.")
Cc: <stable@vger.kernel.org> # v4.5+
Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Orabug: 25605941
(cherry picked from commit 7630b3a599e2c6d1c042945d32ff2debc855ad29)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/scsi/hpsa.c
drivers/scsi/hpsa.h