diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 20:08:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 20:08:28 -0500 |
commit | 2ba14a017a4ba8d2266316f481d4ad7400073d18 (patch) | |
tree | 6e86dcbbb7898eb747f1198e33961eb68bfcdb4d /drivers/ata/sata_fsl.c | |
parent | 99f1c97dbdb30e958edfd1ced0ae43df62504e07 (diff) | |
parent | a984f58dd97f22f5113700322fed311a0ee29947 (diff) |
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev: (67 commits)
fix drivers/ata/sata_fsl.c double-decl
[libata] Prefer SCSI_SENSE_BUFFERSIZE to sizeof()
pata_legacy: Merge winbond support
ata_generic: Cenatek support
pata_winbond: error return
pata_serverworks: Fix cable types and cosmetics
pata_mpc52xx: remove un-needed assignment
libata: fix off-by-one in error categorization
ahci: factor out AHCI enabling and enable AHCI before reading CAP
ata_piix: implement SIDPR SCR access
ata_piix: convert to prepare - activate initialization
libata: factor out ata_pci_activate_sff_host() from ata_pci_one()
[libata] Prefer SCSI_SENSE_BUFFERSIZE to sizeof()
pata_legacy: resychronize with upstream changes and resubmit
[libata] pata_legacy: typo fix
[libata] pata_winbond: update for new ->data_xfer hook
pata_pcmcia: convert to new data_xfer prototype
libata annotations and fixes
libata: use dev_driver_string() instead of "libata" in libata-sff.c
ata_piix: kill unused constants and flags
...
Diffstat (limited to 'drivers/ata/sata_fsl.c')
-rw-r--r-- | drivers/ata/sata_fsl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index d015b4adcfe0..922d7b2efba8 100644 --- a/drivers/ata/sata_fsl.c +++ b/drivers/ata/sata_fsl.c | |||
@@ -333,13 +333,14 @@ static unsigned int sata_fsl_fill_sg(struct ata_queued_cmd *qc, void *cmd_desc, | |||
333 | struct prde *prd_ptr_to_indirect_ext = NULL; | 333 | struct prde *prd_ptr_to_indirect_ext = NULL; |
334 | unsigned indirect_ext_segment_sz = 0; | 334 | unsigned indirect_ext_segment_sz = 0; |
335 | dma_addr_t indirect_ext_segment_paddr; | 335 | dma_addr_t indirect_ext_segment_paddr; |
336 | unsigned int si; | ||
336 | 337 | ||
337 | VPRINTK("SATA FSL : cd = 0x%x, prd = 0x%x\n", cmd_desc, prd); | 338 | VPRINTK("SATA FSL : cd = 0x%x, prd = 0x%x\n", cmd_desc, prd); |
338 | 339 | ||
339 | indirect_ext_segment_paddr = cmd_desc_paddr + | 340 | indirect_ext_segment_paddr = cmd_desc_paddr + |
340 | SATA_FSL_CMD_DESC_OFFSET_TO_PRDT + SATA_FSL_MAX_PRD_DIRECT * 16; | 341 | SATA_FSL_CMD_DESC_OFFSET_TO_PRDT + SATA_FSL_MAX_PRD_DIRECT * 16; |
341 | 342 | ||
342 | ata_for_each_sg(sg, qc) { | 343 | for_each_sg(qc->sg, sg, qc->n_elem, si) { |
343 | dma_addr_t sg_addr = sg_dma_address(sg); | 344 | dma_addr_t sg_addr = sg_dma_address(sg); |
344 | u32 sg_len = sg_dma_len(sg); | 345 | u32 sg_len = sg_dma_len(sg); |
345 | 346 | ||
@@ -417,7 +418,7 @@ static void sata_fsl_qc_prep(struct ata_queued_cmd *qc) | |||
417 | } | 418 | } |
418 | 419 | ||
419 | /* setup "ACMD - atapi command" in cmd. desc. if this is ATAPI cmd */ | 420 | /* setup "ACMD - atapi command" in cmd. desc. if this is ATAPI cmd */ |
420 | if (is_atapi_taskfile(&qc->tf)) { | 421 | if (ata_is_atapi(qc->tf.protocol)) { |
421 | desc_info |= ATAPI_CMD; | 422 | desc_info |= ATAPI_CMD; |
422 | memset((void *)&cd->acmd, 0, 32); | 423 | memset((void *)&cd->acmd, 0, 32); |
423 | memcpy((void *)&cd->acmd, qc->cdb, qc->dev->cdb_len); | 424 | memcpy((void *)&cd->acmd, qc->cdb, qc->dev->cdb_len); |