[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180313172401.GI21642@saruman>
Date: Tue, 13 Mar 2018 17:24:02 +0000
From: James Hogan <jhogan@...nel.org>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: linux-mips@...ux-mips.org, david.daney@...ium.com,
paul.burton@...s.com, Ralf Baechle <ralf@...ux-mips.org>,
Kevin Cernekee <cernekee@...il.com>,
Huacai Chen <chenhc@...ote.com>,
Jiaxun Yang <jiaxun.yang@...goat.com>,
Bart Van Assche <bart.vanassche@...disk.com>,
Doug Ledford <dledford@...hat.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] MIPS: Allow including mach-generic/dma-coherence.h
On Tue, Jan 23, 2018 at 05:40:09PM -0800, Florian Fainelli wrote:
> @@ -71,15 +83,19 @@ static inline void plat_post_dma_flush(struct device *dev)
> #endif
>
> #ifdef CONFIG_SWIOTLB
> +#ifndef phys_to_dma
> static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)
> {
> return paddr;
> }
> +#endif
>
> +#ifndef dma_to_phys
> static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr)
> {
> return daddr;
> }
> #endif
> +#endif /* CONFIG_SWIOTLB */
FYI these were removed in commit ea8c64ace866 ("dma-mapping: move
swiotlb arch helpers to a new header"), and are only implemented by
platforms which select ARCH_HAS_PHYS_TO_DMA.
Cheers
James
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists