diff options
author | Matthew Wilcox <matthew@wil.cx> | 2006-02-07 09:54:46 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-02-27 23:55:09 -0500 |
commit | 6ea3c0b2dac0d6a857d6bc010e544f4c901fff78 (patch) | |
tree | 0650d6e8b5be747eb192e558dd90e875ca7a13fb /drivers/scsi/aha152x.c | |
parent | b0dc1db15225d5801bf3105966c9ce12c5142013 (diff) |
[SCSI] Add spi_populate_*_msg functions
Introduce new helpers:
- spi_populate_width_msg()
- spi_populate_sync_msg()
- spi_populate_ppr_msg()
and use them in drivers which already enable the SPI transport.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aha152x.c')
-rw-r--r-- | drivers/scsi/aha152x.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c index cb2ee25f213f..67d78ed7119a 100644 --- a/drivers/scsi/aha152x.c +++ b/drivers/scsi/aha152x.c | |||
@@ -1708,12 +1708,7 @@ static void seldo_run(struct Scsi_Host *shpnt) | |||
1708 | ADDMSGO(BUS_DEVICE_RESET); | 1708 | ADDMSGO(BUS_DEVICE_RESET); |
1709 | } else if (SYNCNEG==0 && SYNCHRONOUS) { | 1709 | } else if (SYNCNEG==0 && SYNCHRONOUS) { |
1710 | CURRENT_SC->SCp.phase |= syncneg; | 1710 | CURRENT_SC->SCp.phase |= syncneg; |
1711 | ADDMSGO(EXTENDED_MESSAGE); | 1711 | MSGOLEN += spi_populate_sync_msg(&MSGO(MSGOLEN), 50, 8); |
1712 | ADDMSGO(3); | ||
1713 | ADDMSGO(EXTENDED_SDTR); | ||
1714 | ADDMSGO(50); /* 200ns */ | ||
1715 | ADDMSGO(8); /* 8 byte req/ack offset */ | ||
1716 | |||
1717 | SYNCNEG=1; /* negotiation in progress */ | 1712 | SYNCNEG=1; /* negotiation in progress */ |
1718 | } | 1713 | } |
1719 | 1714 | ||