linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] trm290: trm290_dma_setup() fix
@ 2009-02-01 19:14 Bartlomiej Zolnierkiewicz
  0 siblings, 0 replies; only message in thread
From: Bartlomiej Zolnierkiewicz @ 2009-02-01 19:14 UTC (permalink / raw)
  To: linux-ide; +Cc: linux-kernel

Re-map sg table if necessary (not that it really matters since
DMA support is disabled currently).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
we should consider removing the driver (or at least DMA support)...

 drivers/ide/trm290.c |    1 +
 1 file changed, 1 insertion(+)

Index: b/drivers/ide/trm290.c
===================================================================
--- a/drivers/ide/trm290.c
+++ b/drivers/ide/trm290.c
@@ -198,6 +198,7 @@ static int trm290_dma_setup(ide_drive_t 
 		rw = 2;
 
 	if (!(count = ide_build_dmatable(drive, rq))) {
+		ide_map_sg(drive, rq);
 		/* try PIO instead of DMA */
 		trm290_prepare_drive(drive, 0); /* select PIO xfer */
 		return 1;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-01 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-01 19:14 [PATCH] trm290: trm290_dma_setup() fix Bartlomiej Zolnierkiewicz

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).