LKML Archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] sgiioc4: use ->extra_base instead of ->dma_status for dma_handle
@ 2008-05-07 17:39 Bartlomiej Zolnierkiewicz
  2008-05-10  9:41 ` Jeremy Higdon
  0 siblings, 1 reply; 2+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2008-05-07 17:39 UTC (permalink / raw
  To: linux-ide; +Cc: linux-kernel, Jeremy Higdon

This is a preparation for removal of ->dma_status field from ide_hwif_t.

There should be no functional changes caused by this patch.

Cc: Jeremy Higdon <jeremy@sgi.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
 drivers/ide/pci/sgiioc4.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Index: b/drivers/ide/pci/sgiioc4.c
===================================================================
--- a/drivers/ide/pci/sgiioc4.c
+++ b/drivers/ide/pci/sgiioc4.c
@@ -369,8 +369,7 @@ ide_dma_sgiioc4(ide_hwif_t *hwif, const 
 	hwif->sg_max_nents = IOC4_PRD_ENTRIES;
 
 	pad = pci_alloc_consistent(dev, IOC4_IDE_CACHELINE_SIZE,
-				   (dma_addr_t *) &(hwif->dma_status));
-
+				   (dma_addr_t *)&hwif->extra_base);
 	if (pad) {
 		ide_set_hwifdata(hwif, pad);
 		return 0;
@@ -439,7 +438,7 @@ sgiioc4_configure_for_dma(int dma_direct
 
 	/* Address of the Ending DMA */
 	memset(ide_get_hwifdata(hwif), 0, IOC4_IDE_CACHELINE_SIZE);
-	ending_dma_addr = cpu_to_le32(hwif->dma_status);
+	ending_dma_addr = cpu_to_le32(hwif->extra_base);
 	writel(ending_dma_addr, (void __iomem *)(dma_base + IOC4_DMA_END_ADDR * 4));
 
 	writel(dma_direction, (void __iomem *)ioc4_dma_addr);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/6] sgiioc4: use ->extra_base instead of ->dma_status for dma_handle
  2008-05-07 17:39 [PATCH 1/6] sgiioc4: use ->extra_base instead of ->dma_status for dma_handle Bartlomiej Zolnierkiewicz
@ 2008-05-10  9:41 ` Jeremy Higdon
  0 siblings, 0 replies; 2+ messages in thread
From: Jeremy Higdon @ 2008-05-10  9:41 UTC (permalink / raw
  To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide, linux-kernel

On Wed, May 07, 2008 at 07:39:41PM +0200, Bartlomiej Zolnierkiewicz wrote:
> This is a preparation for removal of ->dma_status field from ide_hwif_t.
> 
> There should be no functional changes caused by this patch.
> 
> Cc: Jeremy Higdon <jeremy@sgi.com>
> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

Acked-by: Jeremy Higdon <jeremy@sgi.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-10  9:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-07 17:39 [PATCH 1/6] sgiioc4: use ->extra_base instead of ->dma_status for dma_handle Bartlomiej Zolnierkiewicz
2008-05-10  9:41 ` Jeremy Higdon

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 read-only IMAP folder(s) and NNTP newsgroup(s).