From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Hoan Nguyen An <na-hoan@jinso.co.jp>
Cc: Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
"Geert Uytterhoeven" <geert+renesas@glider.be>,
"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
"Kieran Bingham" <kieran.bingham+renesas@ideasonboard.com>,
"Kuninori Morimoto" <kuninori.morimoto.gx@renesas.com>,
"Yoshihiro Shimoda" <yoshihiro.shimoda.uh@renesas.com>,
稲吉 <h-inayoshi@jinso.co.jp>, Dung:人ソ <nv-dung@jinso.co.jp>,
カオ・ヴァン・ドン <cv-dong@jinso.co.jp>
Subject: Re: [PATCH 1/2] drm: rcar-du: Add Standby Mode support
Date: Fri, 14 Dec 2018 20:06:37 +0100 [thread overview]
Message-ID: <CAMuHMdV6UZDtXqj0-bm7OnAtfSa2r8ZRreEJgjJZ6cZb8jThpQ@mail.gmail.com> (raw)
In-Reply-To: <1544772318-17408-1-git-send-email-na-hoan@jinso.co.jp>
Hi Hoan,
On Fri, Dec 14, 2018 at 8:25 AM Nguyen An Hoan <na-hoan@jinso.co.jp> wrote:
> From: Hoan Nguyen An <na-hoan@jinso.co.jp>
>
> Add function support for Module Standby Mode
>
> Signed-off-by: Hoan Nguyen An <na-hoan@jinso.co.jp>
Thanks for your patch!
> --- a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
> +++ b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c
> @@ -651,6 +651,32 @@ static void rcar_du_crtc_stop(struct rcar_du_crtc *rcrtc)
> rcar_du_group_start_stop(rcrtc->group, false);
> }
>
> +int rcar_du_crtc_standby(struct rcar_du_crtc *rcrtc)
> +{
> + u32 val_reg;
> + unsigned int i = 0;
> +
> + /* Enter Standby mode */
> + rcar_du_crtc_dsysr_clr_set(rcrtc, DSYSR_DRES | DSYSR_DEN, 0);
> +
> + for(i = 100; i > 0; i--)
> + {
> + val_reg = rcar_du_crtc_read(rcrtc, DSSR);
> + if(!(val_reg & DSSR_VBK))
> + break;
> + udelay(10);
> + }
> +
> + if(!(i > 0))
> + return -ETIMEDOUT;
> +
> + /* Stop clock */
> + clk_set_rate(rcrtc->extclock, 0);
> + clk_set_rate(rcrtc->clock, 0);
That's not the API to stop a clock.
Why do you set the clock rates to 0?
> +
> + return 0;
> +}
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
prev parent reply other threads:[~2018-12-14 19:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-14 7:25 [PATCH 1/2] drm: rcar-du: Add Standby Mode support Nguyen An Hoan
2018-12-14 7:25 ` [PATCH 2/2] drm: rcar-du: Add Standby Mode to suspend() Nguyen An Hoan
2018-12-14 8:15 ` Laurent Pinchart
2018-12-14 8:47 ` [PATCH 1/2] drm: rcar-du: Add Standby Mode support Sergei Shtylyov
2018-12-14 19:06 ` Geert Uytterhoeven [this message]
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=CAMuHMdV6UZDtXqj0-bm7OnAtfSa2r8ZRreEJgjJZ6cZb8jThpQ@mail.gmail.com \
--to=geert@linux-m68k.org \
--cc=cv-dong@jinso.co.jp \
--cc=geert+renesas@glider.be \
--cc=h-inayoshi@jinso.co.jp \
--cc=kieran.bingham+renesas@ideasonboard.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=na-hoan@jinso.co.jp \
--cc=nv-dung@jinso.co.jp \
--cc=yoshihiro.shimoda.uh@renesas.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).