* [PATCH] sata_sx4: pdc20621_{ata|host}_sg() do not need 'tf' parameter
@ 2012-10-25 17:19 Sergei Shtylyov
2012-11-28 17:43 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Sergei Shtylyov @ 2012-10-25 17:19 UTC (permalink / raw)
To: linux-ide, jgarzik
... because those functions don't use this parameter.
While at it, correctly align 'total_len' parameter.
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
---
The patch is atop of the 'upstream' branch of libata-dev.git...
drivers/ata/sata_sx4.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
Index: libata-dev/drivers/ata/sata_sx4.c
===================================================================
--- libata-dev.orig/drivers/ata/sata_sx4.c
+++ libata-dev/drivers/ata/sata_sx4.c
@@ -315,9 +315,8 @@ static int pdc_port_start(struct ata_por
return 0;
}
-static inline void pdc20621_ata_sg(struct ata_taskfile *tf, u8 *buf,
- unsigned int portno,
- unsigned int total_len)
+static inline void pdc20621_ata_sg(u8 *buf, unsigned int portno,
+ unsigned int total_len)
{
u32 addr;
unsigned int dw = PDC_DIMM_APKT_PRD >> 2;
@@ -337,9 +336,8 @@ static inline void pdc20621_ata_sg(struc
buf32[dw], buf32[dw + 1]);
}
-static inline void pdc20621_host_sg(struct ata_taskfile *tf, u8 *buf,
- unsigned int portno,
- unsigned int total_len)
+static inline void pdc20621_host_sg(u8 *buf, unsigned int portno,
+ unsigned int total_len)
{
u32 addr;
unsigned int dw = PDC_DIMM_HPKT_PRD >> 2;
@@ -486,10 +484,10 @@ static void pdc20621_dma_prep(struct ata
/*
* Build ATA, host DMA packets
*/
- pdc20621_host_sg(&qc->tf, &pp->dimm_buf[0], portno, total_len);
+ pdc20621_host_sg(&pp->dimm_buf[0], portno, total_len);
pdc20621_host_pkt(&qc->tf, &pp->dimm_buf[0], portno);
- pdc20621_ata_sg(&qc->tf, &pp->dimm_buf[0], portno, total_len);
+ pdc20621_ata_sg(&pp->dimm_buf[0], portno, total_len);
i = pdc20621_ata_pkt(&qc->tf, qc->dev->devno, &pp->dimm_buf[0], portno);
if (qc->tf.flags & ATA_TFLAG_LBA48)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sata_sx4: pdc20621_{ata|host}_sg() do not need 'tf' parameter
2012-10-25 17:19 [PATCH] sata_sx4: pdc20621_{ata|host}_sg() do not need 'tf' parameter Sergei Shtylyov
@ 2012-11-28 17:43 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2012-11-28 17:43 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linux-ide
On 10/25/2012 01:19 PM, Sergei Shtylyov wrote:
> ... because those functions don't use this parameter.
>
> While at it, correctly align 'total_len' parameter.
>
> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
>
> ---
> The patch is atop of the 'upstream' branch of libata-dev.git...
>
> drivers/ata/sata_sx4.c | 14 ++++++--------
> 1 file changed, 6 insertions(+), 8 deletions(-)
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-28 17:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-25 17:19 [PATCH] sata_sx4: pdc20621_{ata|host}_sg() do not need 'tf' parameter Sergei Shtylyov
2012-11-28 17:43 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).