set_signalling is buggy
PATCH 1/1 set_signalling is buggy
Looks like you got the test backwards. It would only call set_signalling if type was SPI_SIGNAL_UNKNOWN.
Index: drivers/scsi/scsi_transport_spi.c
===================================================================
RCS file: /var/cvs/linux-2.6/drivers/scsi/scsi_transport_spi.c,v retrieving revision 1.6
scsi/scsi_transport_spi.c +1 -2
@@ -361,9 +361,8 @@ static ssize_t store_spi_host_signallingenum spi_signal_type type =spi_signal_to_value (buf);if (type !=SPI_SIGNAL_UNKNOWN ) -return count; + i->f->set_signalling (shost, type); - i->f->set_signalling (shost, type);return count; } static CLASS_DEVICE_ATTR(signalling, S_IRUGO | S_IWUSR,
Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain