* include/asm-mips/pci.h fix
@ 2005-08-05 13:58 Atsushi Nemoto
2005-08-15 14:59 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2005-08-05 13:58 UTC (permalink / raw)
To: linux-mips; +Cc: ralf
Currently pci_unmap_addr(), etc. are always defined as nop. It should
be defined when pci_unmap_single is not a nop. Here is a patch.
diff -ur linux-mips/include/asm-mips/pci.h linux/include/asm-mips/pci.h
--- linux-mips/include/asm-mips/pci.h 2005-07-26 22:14:07.000000000 +0900
+++ linux/include/asm-mips/pci.h 2005-08-05 22:33:14.000000000 +0900
@@ -94,7 +94,7 @@
*/
extern unsigned int PCI_DMA_BUS_IS_PHYS;
-#ifdef CONFIG_MAPPED_DMA_IO
+#ifndef CONFIG_DMA_COHERENT
/* pci_unmap_{single,page} is not a nop, thus... */
#define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) dma_addr_t ADDR_NAME;
@@ -104,7 +104,7 @@
#define pci_unmap_len(PTR, LEN_NAME) ((PTR)->LEN_NAME)
#define pci_unmap_len_set(PTR, LEN_NAME, VAL) (((PTR)->LEN_NAME) = (VAL))
-#else /* CONFIG_MAPPED_DMA_IO */
+#else /* CONFIG_DMA_COHERENT */
/* pci_unmap_{page,single} is a nop so... */
#define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME)
@@ -114,7 +114,7 @@
#define pci_unmap_len(PTR, LEN_NAME) (0)
#define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0)
-#endif /* CONFIG_MAPPED_DMA_IO */
+#endif /* CONFIG_DMA_COHERENT */
/* This is always fine. */
#define pci_dac_dma_supported(pci_dev, mask) (1)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: include/asm-mips/pci.h fix
2005-08-05 13:58 include/asm-mips/pci.h fix Atsushi Nemoto
@ 2005-08-15 14:59 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2005-08-15 14:59 UTC (permalink / raw)
To: Atsushi Nemoto; +Cc: linux-mips
On Fri, Aug 05, 2005 at 10:58:05PM +0900, Atsushi Nemoto wrote:
> Currently pci_unmap_addr(), etc. are always defined as nop. It should
> be defined when pci_unmap_single is not a nop. Here is a patch.
>
> diff -ur linux-mips/include/asm-mips/pci.h linux/include/asm-mips/pci.h
> --- linux-mips/include/asm-mips/pci.h 2005-07-26 22:14:07.000000000 +0900
> +++ linux/include/asm-mips/pci.h 2005-08-05 22:33:14.000000000 +0900
> @@ -94,7 +94,7 @@
> */
> extern unsigned int PCI_DMA_BUS_IS_PHYS;
>
> -#ifdef CONFIG_MAPPED_DMA_IO
Almost correct, this be enabled for any variant of non-coherent DMA, so
I'm going to checkin a different patch.
Thanks,
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-15 14:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-05 13:58 include/asm-mips/pci.h fix Atsushi Nemoto
2005-08-15 14:59 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox