]> git.karo-electronics.de Git - karo-tx-linux.git/commit
scsi_transport_spi: fix domain validation failure from incorrect width setting
authorJames Bottomley <James.Bottomley@SteelEye.com>
Thu, 27 Sep 2007 22:51:57 +0000 (18:51 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 10 Oct 2007 17:50:14 +0000 (10:50 -0700)
commit785e6af1f1234e0fcf4dfa5c884b0703f3ce45e1
treedf3872f563e06ab0cfb89b2a1f204c45d3d53662
parent9e6899a1fb940baef3aba7336c7e70e8e71f5559
scsi_transport_spi: fix domain validation failure from incorrect width setting

commit 2302827c95fe0f441025acd5133e532d2eef322b from upstream

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/scsi_transport_spi.c