[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cd73a99e0909062322j683952e6m803dd6b703bf758d@mail.gmail.com>
Date: Mon, 7 Sep 2009 08:22:06 +0200
From: Andrew Victor <avictor.za@...il.com>
To: Albin Tonnerre <albin.tonnerre@...e-electrons.com>
Cc: Haavard Skinnemoen <haavard.skinnemoen@...el.com>,
linux-kernel@...r.kernel.org,
Nicolas Ferre <nicolas.ferre@...el.com>
Subject: Re: [PATCH] Add poll_get_char and poll_put_char uart_ops to
atmel_serial.
hi Albin,
Any reason you're not using the register access macro's like the rest
of the driver?
> + while (!(__raw_readl(aup->uart.membase + ATMEL_US_CSR) & ATMEL_US_RXRDY))
while (!(UART_GET_CSR(..) & ATMEL_US_RXRDY))
> + return __raw_readl(aup->uart.membase + ATMEL_US_RHR);
return UART_GET_CHAR(..);
> + __raw_writel(ch, aup->uart.membase + ATMEL_US_THR);
UART_PUT_CHAR(..., ch);
Otherwise the patch looks fine to me.
Regards,
Andrew Victor
--
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