From: u.kleine-koenig@pengutronix.de (Uwe Kleine-König)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] mc13xxx: implicitly enable leds and buttons
Date: Sun, 10 Jul 2011 16:15:00 +0200 [thread overview]
Message-ID: <20110710141500.GX29624@pengutronix.de> (raw)
In-Reply-To: <201107101333.10309.philippe.retornaz@epfl.ch>
Hello Philippe,
On Sun, Jul 10, 2011 at 01:33:09PM +0200, Philippe R?tornaz wrote:
> Le dimanche 10 juillet 2011 10:04:50, Uwe Kleine-K?nig a ?crit :
> > Hello,
> >
> > On Sun, Jul 10, 2011 at 01:06:36AM +0200, Philippe R?tornaz wrote:
> > > The leds and buttons subdevices cannot be used without additional
> > > platform data.
> > >
> > > Use the presence of the platform data to enable the device instead
> > > of an additional flag.
> >
> > I guess you could make some people happy by splitting this patch into:
> >
> > - mfd/mc13xxx: implicitly enable leds and buttons (and
> > regulators?)
> > - drop MC13XXX_USE_... in arch code
>
> But this mean that between the two commit the build will be broken or the
> behavior will change. Which will break bissections.
If you don't remove the MC13XXX_USE_... constants the unconverted boards
should still compile.
>
> For the regulator stuff, I don't want to change the behavior of others
> board as some (mx31lite) enable the regualtor without platform data.
> That's why I did not changed it.
If having pdata=NULL is a valid config then either we need to keep the
constant for regulators or (as Mark suggested) register unconditionally.
> Moreover for the mc13892 chip (which share the same flag), the probe() does
> modify some registers, so it's not just some cosmetic change, it will change
> the behavior on some boards.
no fear, that's what the -rc phase is there for. When improving
something you often have to change behaviour.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
prev parent reply other threads:[~2011-07-10 14:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-09 23:06 [PATCH v3 0/3] mc13783: add pwr button support Philippe Rétornaz
2011-07-09 23:06 ` [PATCH 1/3] mc13783: add power " Philippe Rétornaz
2011-07-09 23:06 ` [PATCH 2/3] mx31moboard: Add MC13783 " Philippe Rétornaz
2011-07-09 23:06 ` [PATCH 3/3] mc13xxx: implicitly enable leds and buttons Philippe Rétornaz
2011-07-10 8:04 ` Uwe Kleine-König
2011-07-10 8:37 ` Mark Brown
2011-07-10 11:33 ` Philippe Rétornaz
2011-07-10 14:15 ` Uwe Kleine-König [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=20110710141500.GX29624@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox