Re: [PATCHv2 6/8] serial: imx: add runtime pm support

2015-08-12 Thread Kevin Hilman
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

Re: [PATCHv2 6/8] serial: imx: add runtime pm support

2015-08-11 Thread Eduardo Valentin
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

Re: [PATCHv2 6/8] serial: imx: add runtime pm support

2015-08-10 Thread Fabio Estevam
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); > +