From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] ARM: mach-shmobile: clock-sh7367: modify IrDA clock
Date: Tue, 08 Jun 2010 05:53:00 +0000 [thread overview]
Message-ID: <20100608055300.GE6376@linux-sh.org> (raw)
In-Reply-To: <w3p8w6qulxd.wl%kuninori.morimoto.gx@renesas.com>
On Tue, Jun 08, 2010 at 02:34:55PM +0900, Kuninori Morimoto wrote:
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
> arch/arm/mach-shmobile/clock-sh7367.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-shmobile/clock-sh7367.c b/arch/arm/mach-shmobile/clock-sh7367.c
> index b6454c9..98024eb 100644
> --- a/arch/arm/mach-shmobile/clock-sh7367.c
> +++ b/arch/arm/mach-shmobile/clock-sh7367.c
> @@ -322,7 +322,7 @@ static struct clk_lookup lookups[] = {
> CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[SYMSTP000]), /* SCIFA4 */
> CLKDEV_DEV_ID("sh_siu", &mstp_clks[SYMSTP231]), /* SIU */
> CLKDEV_CON_ID("cmt1", &mstp_clks[SYMSTP229]), /* CMT10 */
> - CLKDEV_DEV_ID("sh_irda", &mstp_clks[SYMSTP225]), /* IRDA */
> + CLKDEV_DEV_ID("sh_irda.0", &mstp_clks[SYMSTP225]), /* IRDA */
> CLKDEV_DEV_ID("i2c-sh_mobile.1", &mstp_clks[SYMSTP223]), /* IIC1 */
> CLKDEV_DEV_ID("r8a66597_hcd.0", &mstp_clks[SYMSTP222]), /* USBHS */
> CLKDEV_DEV_ID("r8a66597_udc.0", &mstp_clks[SYMSTP222]), /* USBHS */
Can we just fix the sh_irda driver to do clock lookups properly?
If the platform device is registered without an ID then it will simply be
"sh_irda" for the clock string, and with an ID we'll have the .id suffix.
Really we don't even need to do the connection ID lookup, so a simple
clk_get(&pdev->dev, NULL) ought to match this already for you now without
having to change any of this.
If you need to make these sorts of changes in the clock lookup for a
single channel, it's a pretty clear-cut example that the driver has
completely broken clock lookup semantics and needs to be fixed.
next prev parent reply other threads:[~2010-06-08 5:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-08 5:34 [PATCH] ARM: mach-shmobile: clock-sh7367: modify IrDA clock Kuninori Morimoto
2010-06-08 5:53 ` Paul Mundt [this message]
2010-06-08 6:19 ` Magnus Damm
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=20100608055300.GE6376@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=linux-sh@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