something wrong in drivers/power
Tosa battery driver seems to be confused about its own identity.
drivers/power/tosa_battery.c renamed from drivers/power.ofic/tosa_battery.c +2 -2
@@ -459,7 +459,7 @@ }static struct platform_driver tosa_bat_driver = { - .driver.name ="wm97xx-battery" , + .driver.name ="tosa-battery" , .driver.owner =THIS_MODULE , .probe = tosa_bat_probe, .remove =__devexit_p (tosa_bat_remove),
@@ -483,4 +483,4 @@MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Dmitry Baryshkov" );MODULE_DESCRIPTION ("Tosa battery driver" ); -MODULE_ALIAS ("platform:wm97xx-battery" ); +MODULE_ALIAS ("platform:tosa-battery" );
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Arjan van de Ven
Quoted 2 lines · On Sat, 26 Sep 2009 11:55:55 +0200 Pavel Machek <[email protected]> wrote:
Tosa battery driver seems to be confused about its own identity.
maybe also stick in the copyright line "borrowed from the wm97xx driver" :)
Well, I'd prefer authors to do that one :-).
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 2 lines · Pavel Machek
Tosa battery driver seems to be confused about its own identity.
NAK. Please see the drivers/input/touchscree/wm97xx-core.c
Quoted 25 lines
Signed-off-by Pavel Machek <[email protected]>diff -ur
power.ofic/tosa_battery.cpower/tosa_battery.cdrivers/power/tosa_battery.c renamed from drivers/power.ofic/tosa_battery.c +2
-2@@ -459,7 +459,7 @@ }static struct platform_driver tosa_bat_driver = { - .driver.name ="wm97xx-battery" , + .driver.name ="tosa-battery" , .driver.owner =THIS_MODULE , .probe = tosa_bat_probe, .remove =__devexit_p (tosa_bat_remove),@@ -483,4 +483,4 @@MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Dmitry Baryshkov" );MODULE_DESCRIPTION ("Tosa battery driver" ); -MODULE_ALIAS ("platform:wm97xx-battery" ); +MODULE_ALIAS ("platform:tosa-battery" );Signature · 3 lines
-- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Signature · 2 lines
With best wishes Dmitry
Quoted 5 lines · Dmitry Eremin-Solenikov
Quoted 2 lines · Pavel Machek
Tosa battery driver seems to be confused about its own identity.
NAK. Please see the
drivers/input/touchscree/wm97xx-core.c
Could you elaborate?
I took a look at touchscreen file, and it does not explain anything. Having tosa_battery calling itself wm97xx-battery is at least confusing, and there's no explaining comment. Given that we have different wm97xx_battery.c driver calling itself "wm97xx-battery"... I believe that's a bug.
Pavel
Quoted 26 lines
Quoted 25 lines
Signed-off-by Pavel Machek <[email protected]>diff -ur
power.ofic/tosa_battery.cpower/tosa_battery.cdrivers/power/tosa_battery.c renamed from drivers/power.ofic/tosa_battery.c +2
-2@@ -459,7 +459,7 @@ }static struct platform_driver tosa_bat_driver = { - .driver.name ="wm97xx-battery" , + .driver.name ="tosa-battery" , .driver.owner =THIS_MODULE , .probe = tosa_bat_probe, .remove =__devexit_p (tosa_bat_remove),@@ -483,4 +483,4 @@MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Dmitry Baryshkov" );MODULE_DESCRIPTION ("Tosa battery driver" ); -MODULE_ALIAS ("platform:wm97xx-battery" ); +MODULE_ALIAS ("platform:tosa-battery" );Signature · 3 lines
-- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 7 lines · Pavel Machek
Quoted 5 lines · Dmitry Eremin-Solenikov
Quoted 2 lines · Pavel Machek
Tosa battery driver seems to be confused about its own identity.
NAK. Please see the
drivers/input/touchscree/wm97xx-core.c
Quoted 7 lines
Could you elaborate?
I took a look at touchscreen file, and it does not explain anything. Having
tosa_batterycalling itself wm97xx-battery is at least confusing, and there's no explaining comment. Given that we have differentwm97xx_battery.cdriver calling itself "wm97xx-battery"... I believe that's a bug.
Tosa has a battery that is hanging on the wm97xx codec (9712 if somebody cares). The platform device for it is registered in the wm97xx-core and then used by tosa-battery driver. If you'd like to clean up this mess properly, you should:
1) add a clean possibility to pass platform data via ac97 bus to wm97xx core driver (care to check that it should be passable both via regular ac97 driver and via ASoC).
2) add a possibility to pass device names and platform data to wm97xx-core child devices (battery, ts , etc.)
Quoted 30 lines
Quoted 26 lines
Quoted 25 lines
Signed-off-by Pavel Machek <[email protected]>diff -ur
power.ofic/tosa_battery.cpower/tosa_battery.cdrivers/power/tosa_battery.c renamed from drivers/power.ofic/tosa_battery.c +2
-2@@ -459,7 +459,7 @@ }static struct platform_driver tosa_bat_driver = { - .driver.name ="wm97xx-battery" , + .driver.name ="tosa-battery" , .driver.owner =THIS_MODULE , .probe = tosa_bat_probe, .remove =__devexit_p (tosa_bat_remove),@@ -483,4 +483,4 @@MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Dmitry Baryshkov" );MODULE_DESCRIPTION ("Tosa battery driver" ); -MODULE_ALIAS ("platform:wm97xx-battery" ); +MODULE_ALIAS ("platform:tosa-battery" );Signature · 3 lines
-- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.htmlSignature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Signature · 2 lines
With best wishes Dmitry
Quoted 3 lines · Dmitry Eremin-Solenikov
1) add a clean possibility to pass platform data via ac97 bus to wm97xx core driver (care to check that it should be passable both via regular ac97 driver and via ASoC).
This has already been done by Marek, I think most of the bits made it into 2.6.32-rc1 though I haven't checked. The problem had been getting ALSA support for using the platform data but Takashi agreeded to that so we're fine. It needs explict support in the AC97 controller driver to actually set the platform data for the CODECs on the bus but that's been done for PXA.
In any case, I'd nack the original patch too - all it will do is break the driver since it will no longer load and the attempts to get the wm97xx structure from the parent device of a separately registered platform device will oops.