From: Kevin Hilman <khilman@ti.com>
To: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
"Govindraj.R" <govindraj.raja@ti.com>,
Paul Walmsley <paul@pwsan.com>
Subject: Re: [PATCH] ARM: OMAP: serial: Fix the ocp smart idlemode handling bug
Date: Tue, 17 Apr 2012 15:20:55 -0700 [thread overview]
Message-ID: <878vhut2yg.fsf@ti.com> (raw)
In-Reply-To: <1334339704-4554-1-git-send-email-santosh.shilimkar@ti.com> (Santosh Shilimkar's message of "Fri, 13 Apr 2012 23:25:04 +0530")
Santosh Shilimkar <santosh.shilimkar@ti.com> writes:
> The current serial UART code, while fidling with ocp idlemode bits,
> forget about the smart idle wakeup bit even if it is supported by
> UART IP block. This will lead to missing the module wakeup on OMAP's
> where the smart idle wakeup is supported.
>
> This was the root cause of the console sluggishness issue, I have been
> observing on OMAP4 devices and also can be potential reason for some
> other UART wakeup issues.
>
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
> Cc: Govindraj.R <govindraj.raja@ti.com>
> Cc: Kevin Hilman <khilman@ti.com>
> Cc: Paul Walmsley <paul@pwsan.com>
Acked-by: Kevin Hilman <khilman@ti.com>
> ---
> arch/arm/mach-omap2/serial.c | 8 +++++++-
> 1 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
> index c9503a7..b28aae1 100644
> --- a/arch/arm/mach-omap2/serial.c
> +++ b/arch/arm/mach-omap2/serial.c
> @@ -108,8 +108,14 @@ static void omap_uart_set_noidle(struct platform_device *pdev)
> static void omap_uart_set_smartidle(struct platform_device *pdev)
> {
> struct omap_device *od = to_omap_device(pdev);
> + u8 idlemode;
>
> - omap_hwmod_set_slave_idlemode(od->hwmods[0], HWMOD_IDLEMODE_SMART);
> + if (od->hwmods[0]->class->sysc->idlemodes & SIDLE_SMART_WKUP)
> + idlemode = HWMOD_IDLEMODE_SMART_WKUP;
> + else
> + idlemode = HWMOD_IDLEMODE_SMART;
> +
> + omap_hwmod_set_slave_idlemode(od->hwmods[0], idlemode);
> }
>
> #else
WARNING: multiple messages have this Message-ID (diff)
From: khilman@ti.com (Kevin Hilman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: OMAP: serial: Fix the ocp smart idlemode handling bug
Date: Tue, 17 Apr 2012 15:20:55 -0700 [thread overview]
Message-ID: <878vhut2yg.fsf@ti.com> (raw)
In-Reply-To: <1334339704-4554-1-git-send-email-santosh.shilimkar@ti.com> (Santosh Shilimkar's message of "Fri, 13 Apr 2012 23:25:04 +0530")
Santosh Shilimkar <santosh.shilimkar@ti.com> writes:
> The current serial UART code, while fidling with ocp idlemode bits,
> forget about the smart idle wakeup bit even if it is supported by
> UART IP block. This will lead to missing the module wakeup on OMAP's
> where the smart idle wakeup is supported.
>
> This was the root cause of the console sluggishness issue, I have been
> observing on OMAP4 devices and also can be potential reason for some
> other UART wakeup issues.
>
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
> Cc: Govindraj.R <govindraj.raja@ti.com>
> Cc: Kevin Hilman <khilman@ti.com>
> Cc: Paul Walmsley <paul@pwsan.com>
Acked-by: Kevin Hilman <khilman@ti.com>
> ---
> arch/arm/mach-omap2/serial.c | 8 +++++++-
> 1 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
> index c9503a7..b28aae1 100644
> --- a/arch/arm/mach-omap2/serial.c
> +++ b/arch/arm/mach-omap2/serial.c
> @@ -108,8 +108,14 @@ static void omap_uart_set_noidle(struct platform_device *pdev)
> static void omap_uart_set_smartidle(struct platform_device *pdev)
> {
> struct omap_device *od = to_omap_device(pdev);
> + u8 idlemode;
>
> - omap_hwmod_set_slave_idlemode(od->hwmods[0], HWMOD_IDLEMODE_SMART);
> + if (od->hwmods[0]->class->sysc->idlemodes & SIDLE_SMART_WKUP)
> + idlemode = HWMOD_IDLEMODE_SMART_WKUP;
> + else
> + idlemode = HWMOD_IDLEMODE_SMART;
> +
> + omap_hwmod_set_slave_idlemode(od->hwmods[0], idlemode);
> }
>
> #else
next prev parent reply other threads:[~2012-04-17 22:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-13 17:55 [PATCH] ARM: OMAP: serial: Fix the ocp smart idlemode handling bug Santosh Shilimkar
2012-04-13 17:55 ` Santosh Shilimkar
2012-04-16 10:05 ` Raja, Govindraj
2012-04-16 10:05 ` Raja, Govindraj
2012-04-17 18:43 ` Paul Walmsley
2012-04-17 18:43 ` Paul Walmsley
2012-04-17 22:20 ` Kevin Hilman [this message]
2012-04-17 22:20 ` Kevin Hilman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878vhut2yg.fsf@ti.com \
--to=khilman@ti.com \
--cc=govindraj.raja@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=santosh.shilimkar@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.