Thread (8 messages) 8 messages, 3 authors, 2011-07-10
DORMANTno replies

Re: [PATCH 3/3] mc13xxx: implicitly enable leds and buttons

From: Uwe Kleine-König <hidden>
Date: 2011-07-10 14:15:00
Also in: linux-arm-kernel

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 :
quoted
Hello,

On Sun, Jul 10, 2011 at 01:06:36AM +0200, Philippe Rétornaz wrote:
quoted
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/  |
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help