Re: [PATCH 2/8] tty: serial: fsl_lpuart: support suspend/resume

2016-06-20 Thread Stephen Boyd
On 06/13, Stefan Agner wrote: > > > On June 13, 2016 5:18:19 PM PDT, Bhhuvanchandra DV > wrote: > >Hi Shawn, > > > >On 06/11/2016 02:03 PM, Shawn Guo wrote: > > > >> On Thu, Jun 09, 2016 at 08:40:33PM +0530, Bhuvanchandra DV wrote: > >>> From: Stefan Agner

Re: [PATCH 2/8] tty: serial: fsl_lpuart: support suspend/resume

2016-06-20 Thread Stephen Boyd
On 06/13, Stefan Agner wrote: > > > On June 13, 2016 5:18:19 PM PDT, Bhhuvanchandra DV > wrote: > >Hi Shawn, > > > >On 06/11/2016 02:03 PM, Shawn Guo wrote: > > > >> On Thu, Jun 09, 2016 at 08:40:33PM +0530, Bhuvanchandra DV wrote: > >>> From: Stefan Agner > >>> > >>> In order to allow wake

Re: [PATCH 2/8] tty: serial: fsl_lpuart: support suspend/resume

2016-06-13 Thread Stefan Agner
On June 13, 2016 5:18:19 PM PDT, Bhhuvanchandra DV wrote: >Hi Shawn, > >On 06/11/2016 02:03 PM, Shawn Guo wrote: > >> On Thu, Jun 09, 2016 at 08:40:33PM +0530, Bhuvanchandra DV wrote: >>> From: Stefan Agner >>> >>> In order to allow wake support

Re: [PATCH 2/8] tty: serial: fsl_lpuart: support suspend/resume

2016-06-13 Thread Stefan Agner
On June 13, 2016 5:18:19 PM PDT, Bhhuvanchandra DV wrote: >Hi Shawn, > >On 06/11/2016 02:03 PM, Shawn Guo wrote: > >> On Thu, Jun 09, 2016 at 08:40:33PM +0530, Bhuvanchandra DV wrote: >>> From: Stefan Agner >>> >>> In order to allow wake support in STOP sleep mode, clocks are >>> needed. Use

Re: [PATCH 2/8] tty: serial: fsl_lpuart: support suspend/resume

2016-06-13 Thread Bhhuvanchandra DV
Hi Shawn, On 06/11/2016 02:03 PM, Shawn Guo wrote: On Thu, Jun 09, 2016 at 08:40:33PM +0530, Bhuvanchandra DV wrote: From: Stefan Agner In order to allow wake support in STOP sleep mode, clocks are needed. Use imx_clk_gate2_cgr to disable automatic clock gating in low power

Re: [PATCH 2/8] tty: serial: fsl_lpuart: support suspend/resume

2016-06-13 Thread Bhhuvanchandra DV
Hi Shawn, On 06/11/2016 02:03 PM, Shawn Guo wrote: On Thu, Jun 09, 2016 at 08:40:33PM +0530, Bhuvanchandra DV wrote: From: Stefan Agner In order to allow wake support in STOP sleep mode, clocks are needed. Use imx_clk_gate2_cgr to disable automatic clock gating in low power mode STOP. This

Re: [PATCH 2/8] tty: serial: fsl_lpuart: support suspend/resume

2016-06-11 Thread Shawn Guo
On Thu, Jun 09, 2016 at 08:40:33PM +0530, Bhuvanchandra DV wrote: > From: Stefan Agner > > In order to allow wake support in STOP sleep mode, clocks are > needed. Use imx_clk_gate2_cgr to disable automatic clock gating > in low power mode STOP. This allows to enable wake by UART

Re: [PATCH 2/8] tty: serial: fsl_lpuart: support suspend/resume

2016-06-11 Thread Shawn Guo
On Thu, Jun 09, 2016 at 08:40:33PM +0530, Bhuvanchandra DV wrote: > From: Stefan Agner > > In order to allow wake support in STOP sleep mode, clocks are > needed. Use imx_clk_gate2_cgr to disable automatic clock gating > in low power mode STOP. This allows to enable wake by UART using: > echo

[PATCH 2/8] tty: serial: fsl_lpuart: support suspend/resume

2016-06-09 Thread Bhuvanchandra DV
From: Stefan Agner In order to allow wake support in STOP sleep mode, clocks are needed. Use imx_clk_gate2_cgr to disable automatic clock gating in low power mode STOP. This allows to enable wake by UART using: echo enabled > /sys/class/tty/ttyLP0/power/wakeup However, if wake

[PATCH 2/8] tty: serial: fsl_lpuart: support suspend/resume

2016-06-09 Thread Bhuvanchandra DV
From: Stefan Agner In order to allow wake support in STOP sleep mode, clocks are needed. Use imx_clk_gate2_cgr to disable automatic clock gating in low power mode STOP. This allows to enable wake by UART using: echo enabled > /sys/class/tty/ttyLP0/power/wakeup However, if wake is not enabled,