]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[SCSI] scsi_transport_spi: fix domain validation failure from incorrect width setting
authorJames Bottomley <James.Bottomley@steeleye.com>
Sat, 22 Sep 2007 13:40:09 +0000 (08:40 -0500)
committerJames Bottomley <jejb@mulgrave.localdomain>
Sat, 22 Sep 2007 13:52:12 +0000 (08:52 -0500)
commit2302827c95fe0f441025acd5133e532d2eef322b
treea83d7deb859acfbe237b7677be96e68befa722a5
parentda8f153e51290e7438ba7da66234a864e5d3e1c1
[SCSI] scsi_transport_spi: fix domain validation failure from incorrect width setting

Domain Validation in the SPI transport class is failing on boxes with
damaged cables (and failing to the extent that the box hangs).  The
problem is that the first test it does is a cable integrity test for
wide transfers and if this fails, it turns the wide bit off.  The
problem is that the next set of tests it does turns wide back on
again, with the result that it runs through the entirety of DV with a
known bad setting and then hangs the system.

The attached patch fixes the problem by physically nailing the wide
setting to what it deduces it should be for the whole of Domain
Validation.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_transport_spi.c