[patch 1/5] AST2500 DMA UART driver
Greg KH
gregkh at linuxfoundation.org
Tue Jun 11 02:50:40 AEST 2019
On Wed, Jun 05, 2019 at 05:53:11PM +0530, sudheer.v wrote:
> +
> +#define CONFIG_UART_DMA_DEBUG
> +
> +#ifdef CONFIG_UART_DMA_DEBUG
> +#define UART_DBG(fmt, args...) pr_debug("%s() " fmt, __func__, ## args)
> +#else
> +#define UART_DBG(fmt, args...)
> +#endif
> +
> +#define CONFIG_UART_TX_DMA_DEBUG 1
> +
> +#ifdef CONFIG_UART_TX_DMA_DEBUG
> +#define UART_TX_DBG(fmt, args...) pr_debug("%s()"fmt, __func__, ## args)
> +#else
> +#define UART_TX_DBG(fmt, args...)
> +#endif
Why have you left debugging on here?
Why does your tiny driver have custom debug macros? Please always use
the in-kernel standard ones so you can dynamically enable/disable them
as needed without having to rebuild the code.
I stopped reading here, sorry.
greg k-h
More information about the Linux-aspeed
mailing list