Eduardo Valentin writes:
> This change introduces the runtime pm support on imx serial
> driver. The objective is to be able to idle the uart
> port whenever it is not in use while still being able
> to wake it up when needed. The key changes in this patch are:
> 1. Move the clock handling to run
On Tue, Aug 11, 2015 at 12:02:58AM -0300, Fabio Estevam wrote:
> On Mon, Aug 10, 2015 at 10:35 PM, Eduardo Valentin
> wrote:
>
> > static int imx_poll_get_char(struct uart_port *port)
> > {
> > - if (!(readl_relaxed(port->membase + USR2) & USR2_RDR))
> > - return NO_POLL_CH
On Mon, Aug 10, 2015 at 10:35 PM, Eduardo Valentin wrote:
> static int imx_poll_get_char(struct uart_port *port)
> {
> - if (!(readl_relaxed(port->membase + USR2) & USR2_RDR))
> - return NO_POLL_CHAR;
> + int ret;
> +
> + pm_runtime_get_sync(sport->dev);
> +
3 matches
Mail list logo