Use spi_display_xfer_agreement() in 53c700
PATCH 1/1 Use spi_display_xfer_agreement() in 53c700
Convert 53c700 to use spi_display_xfer_agreement()
Signed-off-by Matthew Wilcox <[email protected]>
Index: ./drivers/scsi/53c700.c
===================================================================
RCS file: /var/lib/cvs/linux-2.6/drivers/scsi/53c700.c,v retrieving revision 1.15.2.1
retrieving revision 1.15
drivers/scsi/53c700.c +5 -11
@@ -824,6 +825,7 @@ process_extended_message(struct Scsi_Hosswitch (hostdata->msgin[2 ]) {case A_SDTR_MSG :if (SCp !=NULL &&NCR_700_is_flag_set (SCp->device,NCR_700_DEV_BEGIN_SYNC_NEGOTIATION )) { +struct scsi_target *starget = SCp->device->sdev_target;__u8 period = hostdata->msgin[3 ];__u8 offset = hostdata->msgin[4 ];
@@ -831,22 +833,15 @@ process_extended_message(struct Scsi_Hos offset =0 ; period =0 ; } + +spi_offset (starget) = offset; +spi_period (starget) = period;if (NCR_700_is_flag_set (SCp->device,NCR_700_DEV_PRINT_SYNC_NEGOTIATION )) { -if (spi_offset (SCp->device->sdev_target) !=0 ) -printk (KERN_INFO "scsi%d: (%d:%d) Synchronous at offset %d, period %dns\n" , - host->host_no, pun, lun, - offset, period*4 ); -else -printk (KERN_INFO "scsi%d: (%d:%d) Asynchronous\n" , - host->host_no, pun, lun); +spi_display_xfer_agreement (starget);NCR_700_clear_flag (SCp->device,NCR_700_DEV_PRINT_SYNC_NEGOTIATION ); } - -spi_offset (SCp->device->sdev_target) = offset; -spi_period (SCp->device->sdev_target) = period; -NCR_700_set_flag (SCp->device,NCR_700_DEV_NEGOTIATED_SYNC );NCR_700_clear_flag (SCp->device,NCR_700_DEV_BEGIN_SYNC_NEGOTIATION );
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