[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <alpine.LFD.2.02.1111081406220.3307@xanadu.home>
Date: Tue, 08 Nov 2011 14:08:58 -0500 (EST)
From: Nicolas Pitre <nico@...xnic.net>
To: Stephen Boyd <sboyd@...eaurora.org>
Cc: David Brown <davidb@...eaurora.org>, linux-kernel@...r.kernel.org,
linux-arm-msm@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCHv3 2/2] msm: Support DEBUG_LL on MSM8660 and MSM8960
On Tue, 8 Nov 2011, Stephen Boyd wrote:
> Add support for DEBUG_LL on the 8660 and 8960 development boards.
> While we're here cleanup the uncompress.h code a bit. Avoid
> the use of readl/writel as those are Linux specific APIs that
> aren't guaranteed to work in the decompressor.
>
> Cc: Nicolas Pitre <nico@...xnic.net>
> Signed-off-by: Stephen Boyd <sboyd@...eaurora.org>
Acked-by: Nicolas Pitre <nico@...aro.org>
Independently from this patch, I was wondering about this code:
> + .macro senduart, rd, rx
> +#ifdef CONFIG_MSM_HAS_DEBUG_UART_HS
> + @ Write the 1 character to UARTDM_TF
> + str \rd, [\rx, #0x70]
> +#else
> teq \rx, #0
> strne \rd, [\rx, #0x0C]
> +#endif
> .endm
Why testing for zero in the #else part? The upper level code should
never call this macro with a null byte.
Nicolas
--
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