[PATCH] ide: fix support for IDE PCI controllers using MMIO on frv

Previous thread: [PATCH 00/22] ide: more work on generic ATAPI support by Bartlomiej Zolnierkiewicz on Sunday, August 10, 2008 - 8:35 am. (32 messages)

Next thread: [PATCH] ide: remove dead <asm-arm/arch-sa1100/ide.h> by Bartlomiej Zolnierkiewicz on Sunday, August 10, 2008 - 8:45 am. (3 messages)
From: Bartlomiej Zolnierkiewicz
Date: Sunday, August 10, 2008 - 8:44 am

Just include &lt;asm-generic/ide_iops.h&gt; for __ide_mm_*() instead of
defining them to normal I/O helpers so PCI bus &lt;-&gt; CPU byte-swapping
is done as needed.

Cc: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
---
David, please verify it.  Thanks.

 include/asm-frv/ide.h |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

Index: b/include/asm-frv/ide.h
===================================================================
--- a/include/asm-frv/ide.h
+++ b/include/asm-frv/ide.h
@@ -18,15 +18,7 @@
 #include &lt;asm/io.h&gt;
 #include &lt;asm/irq.h&gt;
 
-/****************************************************************************/
-/*
- * some bits needed for parts of the IDE subsystem to compile
- */
-#define __ide_mm_insw(port, addr, n)	insw((unsigned long) (port), addr, n)
-#define __ide_mm_insl(port, addr, n)	insl((unsigned long) (port), addr, n)
-#define __ide_mm_outsw(port, addr, n)	outsw((unsigned long) (port), addr, n)
-#define __ide_mm_outsl(port, addr, n)	outsl((unsigned long) (port), addr, n)
-
+#include &lt;asm-generic/ide_iops.h&gt;
 
 #endif /* __KERNEL__ */
 #endif /* _ASM_IDE_H */
--

Previous thread: [PATCH 00/22] ide: more work on generic ATAPI support by Bartlomiej Zolnierkiewicz on Sunday, August 10, 2008 - 8:35 am. (32 messages)

Next thread: [PATCH] ide: remove dead <asm-arm/arch-sa1100/ide.h> by Bartlomiej Zolnierkiewicz on Sunday, August 10, 2008 - 8:45 am. (3 messages)