From: thomas.petazzoni@free-electrons.com (Thomas Petazzoni)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] clk: kirkwood: Add CLK_IGNORE_UNUSED to ethernet ge0 and ge1 clocks
Date: Tue, 1 Oct 2013 17:09:32 +0200 [thread overview]
Message-ID: <20131001170932.54d53aa4@skate> (raw)
In-Reply-To: <20131001150130.GT31178@titan.lakedaemon.net>
Dear Jason Cooper,
On Tue, 1 Oct 2013 11:01:30 -0400, Jason Cooper wrote:
> On Tue, Oct 01, 2013 at 11:17:18AM -0300, Ezequiel Garcia wrote:
> > On Tue, Oct 01, 2013 at 09:58:00AM -0400, Jason Cooper wrote:
> ...
> > > However, I think the problem is that the IP block loses it's mac address
> > > when gated. That hasn't been solved, all you're doing is moving the
> > > hack/workaround from one place to another less visible place.
> > >
> >
> > There's an already existing and clock-framework-specific way of preventing
> > a clock from being ever gated -which seems to match exactly this case-
> > so I have a hard time seeing why we wouldn't use it.
> >
> > Also: I'm wondering why you think this change would 'hide' the clock gating.
> > It seems whenever a (future?) developer finds these clocks are not gated,
> > one of the first places he will look for is precisely on those flags.
>
> True, I'm approaching it from "I unloaded mv643xx_eth.ko, and my power
> draw didn't change. Let's go look at the driver." But you are correct.
>
> I'd really like to see if we can extend your patch to having the
> driver's probe function detect the mac address in the DT, and change the
> IGNORE_UNUSED flag on the clock. MikeT might have some thoughts on that
> since I don't see anyone doing that atm.
Sorry for jumping into the discussion, but how does that solve the case
when the driver is loaded as a module, and therefore unused clocks are
disabled before the driver ->probe() function gets called?
Thomas
--
Thomas Petazzoni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2013-10-01 15:09 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-30 21:03 [PATCH 0/4] Kirkwood: minor cleanups Ezequiel Garcia
2013-09-30 21:03 ` [PATCH 1/4] ARM: kirkwood: Remove unneeded MBus initialization Ezequiel Garcia
2013-10-08 16:19 ` Jason Cooper
2013-09-30 21:03 ` [PATCH 2/4] ARM: kirkwood: Remove unneeded PCIe clock adding Ezequiel Garcia
2013-10-01 16:01 ` Ezequiel Garcia
2013-10-01 17:45 ` Jason Gunthorpe
2013-10-01 19:20 ` Arnaud Ebalard
2013-10-08 16:22 ` Jason Cooper
2013-09-30 21:03 ` [PATCH 3/4] clk: kirkwood: Add CLK_IGNORE_UNUSED to ethernet ge0 and ge1 clocks Ezequiel Garcia
2013-09-30 21:31 ` Jason Gunthorpe
2013-09-30 21:34 ` Andrew Lunn
2013-09-30 21:44 ` Jason Gunthorpe
2013-10-01 14:35 ` Jason Cooper
2013-10-01 0:40 ` Jason Cooper
2013-10-01 13:42 ` Ezequiel Garcia
2013-10-01 13:49 ` Sebastian Hesselbarth
2013-10-01 14:22 ` Ezequiel Garcia
2013-10-01 14:43 ` Sebastian Hesselbarth
2013-10-01 16:45 ` Jason Gunthorpe
2013-10-01 16:49 ` Jason Cooper
2013-10-01 19:10 ` Sebastian Hesselbarth
2013-10-01 19:15 ` Sebastian Hesselbarth
2013-10-02 12:02 ` Jason Cooper
2013-10-02 12:05 ` Sebastian Hesselbarth
2013-10-01 13:58 ` Jason Cooper
2013-10-01 14:17 ` Ezequiel Garcia
2013-10-01 15:01 ` Jason Cooper
2013-10-01 15:09 ` Thomas Petazzoni [this message]
2013-10-01 15:15 ` Jason Cooper
2013-10-01 15:33 ` Thomas Petazzoni
2013-10-01 15:36 ` Jason Cooper
2013-10-01 15:42 ` Thomas Petazzoni
2013-10-01 15:53 ` Jason Cooper
2013-10-01 15:59 ` Sebastian Hesselbarth
2013-10-08 16:24 ` Jason Cooper
2013-09-30 21:03 ` [PATCH 4/4] ARM: kirkwood: Remove redundant ethernet clock enable Ezequiel Garcia
2013-09-30 21:16 ` [PATCH 0/4] Kirkwood: minor cleanups Andrew Lunn
2013-09-30 21:26 ` Ezequiel Garcia
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=20131001170932.54d53aa4@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.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 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.