[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54119BE8.5020605@imgtec.com>
Date: Thu, 11 Sep 2014 13:56:08 +0100
From: James Hogan <james.hogan@...tec.com>
To: Leonid Yegoshin <Leonid.Yegoshin@...tec.com>,
<linux-mips@...ux-mips.org>, <nbd@...nwrt.org>,
<jchandra@...adcom.com>, <paul.burton@...tec.com>,
<david.daney@...ium.com>, <linux-kernel@...r.kernel.org>,
<ralf@...ux-mips.org>, <markos.chandras@...tec.com>,
<macro@...ux-mips.org>, <manuel.lauss@...il.com>,
<jerinjacobk@...il.com>, <chenhc@...ote.com>, <blogic@...nwrt.org>
Subject: Re: [PATCH V2] MIPS: bugfix of coherentio variable default setup
On 08/09/14 20:10, Leonid Yegoshin wrote:
> diff --git a/arch/mips/include/asm/mach-generic/dma-coherence.h b/arch/mips/include/asm/mach-generic/dma-coherence.h
> index 7629c35..b4563df 100644
> --- a/arch/mips/include/asm/mach-generic/dma-coherence.h
> +++ b/arch/mips/include/asm/mach-generic/dma-coherence.h
> @@ -49,7 +49,12 @@ static inline int plat_dma_supported(struct device *dev, u64 mask)
>
> static inline int plat_device_is_coherent(struct device *dev)
> {
> - return coherentio;
> +#ifdef CONFIG_DMA_COHERENT
> + return 1;
if DMA_COHERENT=y (which seems to imply DMA_MAYBE_COHERENT=n),
coherentio is already defined as 1 in
arch/mips/include/asm/dma-coherent.h, so I don't think you need this case.
> +#else
> + return (coherentio > 0);
> +#endif
> +
No need for a new blank line here
> }
...
> diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c
> index 44b6dff..42c819a 100644
> --- a/arch/mips/mm/dma-default.c
> +++ b/arch/mips/mm/dma-default.c
> @@ -24,7 +24,7 @@
> #include <dma-coherence.h>
>
> #ifdef CONFIG_DMA_MAYBE_COHERENT
> -int coherentio = 0; /* User defined DMA coherency from command line. */
> +int coherentio = -1; /* User defined DMA coherency is not defined yet. */
Please avoid unnecessarily turned tabs into spaces. It makes files
inconsistent.
Other than that and Markos' style comment it looks reasonable to me.
Cheers
James
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists