From: Tony Lindgren <tony@atomide.com>
To: Jouni Hogander <jouni.hogander@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/1] OMAP: DISPC: Fix to disable also interface clocks. 2nd.
Date: Thu, 3 Jul 2008 14:04:42 +0300 [thread overview]
Message-ID: <20080703110440.GX14276@atomide.com> (raw)
In-Reply-To: <1214905046-7358-1-git-send-email-jouni.hogander@nokia.com>
* Jouni Hogander <jouni.hogander@nokia.com> [080701 12:39]:
> Leaving interface clocks enabled causes dss pwrdm to stay in active
> state when mpu is in active state. This fix puts dss to sleep state
> when it is not needed.
Pushing today.
Tony
>
> Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
> ---
> drivers/video/omap/dispc.c | 16 ++++------------
> 1 files changed, 4 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/video/omap/dispc.c b/drivers/video/omap/dispc.c
> index 6aff476..d82588c 100644
> --- a/drivers/video/omap/dispc.c
> +++ b/drivers/video/omap/dispc.c
> @@ -914,18 +914,13 @@ static void put_dss_clocks(void)
>
> static void enable_lcd_clocks(int enable)
> {
> - if (enable)
> + if (enable) {
> + clk_enable(dispc.dss_ick);
> clk_enable(dispc.dss1_fck);
> - else
> + } else {
> clk_disable(dispc.dss1_fck);
> -}
> -
> -static void enable_interface_clocks(int enable)
> -{
> - if (enable)
> - clk_enable(dispc.dss_ick);
> - else
> clk_disable(dispc.dss_ick);
> + }
> }
>
> static void enable_digit_clocks(int enable)
> @@ -1361,7 +1356,6 @@ static int omap_dispc_init(struct omapfb_device *fbdev, int ext_mode,
> if ((r = get_dss_clocks()) < 0)
> return r;
>
> - enable_interface_clocks(1);
> enable_lcd_clocks(1);
>
> #ifdef CONFIG_FB_OMAP_BOOTLOADER_INIT
> @@ -1465,7 +1459,6 @@ fail2:
> free_irq(INT_24XX_DSS_IRQ, fbdev);
> fail1:
> enable_lcd_clocks(0);
> - enable_interface_clocks(0);
> put_dss_clocks();
>
> return r;
> @@ -1482,7 +1475,6 @@ static void omap_dispc_cleanup(void)
> cleanup_fbmem();
> free_palette_ram();
> free_irq(INT_24XX_DSS_IRQ, dispc.fbdev);
> - enable_interface_clocks(0);
> put_dss_clocks();
> }
>
> --
> 1.5.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-07-03 12:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-01 7:12 [PATCH] OMAP: DISPC: Fix to disable also interface clocks Jouni Hogander
2008-07-01 9:13 ` Felipe Balbi
2008-07-01 9:26 ` Högander Jouni
2008-07-01 9:37 ` [PATCH 1/1] OMAP: DISPC: Fix to disable also interface clocks. 2nd Jouni Hogander
2008-07-03 11:04 ` Tony Lindgren [this message]
2008-07-03 11:33 ` Tony Lindgren
2008-08-15 8:56 ` [PATCH] OMAP: DISPC: Fix to disable also interface clocks Jouni Hogander
2008-08-20 11:58 ` Tony Lindgren
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=20080703110440.GX14276@atomide.com \
--to=tony@atomide.com \
--cc=jouni.hogander@nokia.com \
--cc=linux-omap@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox