From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] ARM: mach-shmobile: sh7377 and G4EVM pinmux support
Date: Mon, 15 Feb 2010 01:56:52 +0000 [thread overview]
Message-ID: <20100215015652.GB18636@linux-sh.org> (raw)
In-Reply-To: <4B750CDE.60802@renesas.com>
On Fri, Feb 12, 2010 at 05:10:06PM +0900, NISHIMOTO Hiroki wrote:
> Add support for the sh 7377 pinmux using drivers/sh/pfc.c
> and some LEDs on G4EVM.
On Fri, Feb 12, 2010 at 05:11:18PM +0900, NISHIMOTO Hiroki wrote:
> Add G4EVM platform data and a magic setup sequence to
> initialize the r8a66597 block aka USBHS in sh7377.
I'll add these for the 2.6.34 queue, however..
> @@ -137,6 +179,23 @@ static void __init g4evm_init(void)
> gpio_direction_output(GPIO_PORT113, 1);
> gpio_export(GPIO_PORT113, 1);
>
> + /* USBHS */
> + gpio_request(GPIO_FN_VBUS_0, NULL);
> + gpio_request(GPIO_FN_PWEN, NULL);
> + gpio_request(GPIO_FN_OVCN, NULL);
> + gpio_request(GPIO_FN_OVCN2, NULL);
> + gpio_request(GPIO_FN_EXTLP, NULL);
> + gpio_request(GPIO_FN_IDIN, NULL);
> +
> + /* enable clock in SMSTPCR3 */
> + __raw_writel(__raw_readl(0xe615013c) & ~(1 << 22), 0xe615013c);
> +
This is unacceptable (and yes, I realize you are just copying this
verbatim from G3, so I am not singling anyone out). We have the clock
framework for a reason, and the only reason to do these sort of hacks is
because the clock framework support hasn't been sufficiently developed
for this CPU.
I'll make it simple -- I will not be applying any additional patches that
toggle clock or module stop bits independently outside of the clock
framework. If the clock framework isn't being treated as a priority now,
this is just going to turn in to a complete mess. The clock framework
should be the only thing that is a priority for these parts at the
moment, and any effort put in to workarounds is just going to be dropped
on the floor.
The clock framework is a requirement, not a suggestion. Failure to adhere
to this simple principle and organize priorities accordingly will result
in no additional blocks being clocked. Prioritize accordingly.
In any event, as the merge window is nigh upon us, this should provide
ample opportunity to get the clock framework implemented properly for
2.6.35, at which point we can start enabling other blocks again.
prev parent reply other threads:[~2010-02-15 1:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-12 8:10 [PATCH] ARM: mach-shmobile: sh7377 and G4EVM pinmux support NISHIMOTO Hiroki
2010-02-15 1:56 ` Paul Mundt [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=20100215015652.GB18636@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;
as well as URLs for NNTP newsgroup(s).