login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
4
Re: [PATCH] pda-power: only register available psu
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [author]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Dmitry <dbaryshkov@...>
To: <cbouatmailru@...>
Cc: <linux-kernel@...>, <cbou@...>, <dwmw2@...>
Subject:
Re: [PATCH] pda-power: only register available psu
Date: Thursday, January 3, 2008 - 9:31 pm
Hi, Anton, 2008/1/4, Anton Vorontsov <cbouatmailru@gmail.com>:
quoted text
> Hi Dmitry, > > On Thu, Jan 03, 2008 at 03:53:19AM +0300, Dmitry Baryshkov wrote: > > Currently pda-power adds both ac and usb power supply units. > > This patch fixes it so that psu are added only if they are enabled. > > Thanks for the patch, this should be fixed of course. A comment > though... > > > Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> > > > > diff --git a/drivers/power/pda_power.c b/drivers/power/pda_power.c > > index c058f28..42eac09 100644 > > --- a/drivers/power/pda_power.c > > +++ b/drivers/power/pda_power.c > [...] > > if (ac_irq) { > > + ret = power_supply_register(&pdev->dev, &pda_power_supplies[0]); > > I don't think we should check for IRQs when determining which one > of power supplies to register. Better use is_{ac,usb}_online > callbacks, this will not produce an obstacle to implement polling -- > when irqs aren't mandatory. I'll send my two pending patches to show > the idea. > > For this particular issue, I think something like that should work. > If it works for you, I'll commit that version, preserving your > authorship, of course.
Yes, it works. Thank you very much! -- With best wishes Dmitry --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [author]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] pda-power: only register available psu
, Dmitry Baryshkov
, (Wed Jan 2, 8:53 pm)
Re: [PATCH] pda-power: only register available psu
, Anton Vorontsov
, (Thu Jan 3, 8:29 pm)
Re: [PATCH] pda-power: only register available psu
, Dmitry
, (Thu Jan 3, 9:31 pm)
[PATCH 2/2] pda_power: implement polling
, Anton Vorontsov
, (Thu Jan 3, 8:32 pm)
[PATCH 1/2] pda_power: various cleanups
, Anton Vorontsov
, (Thu Jan 3, 8:32 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Sunil Naidu
Re: Linux 2.6.20-rc6
Alan Cox
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Chris Snook
Re: init's children list is long and slows reaping children.
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
git
:
openbsd-misc
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Eric W. Biederman
Re: [PATCH 10/11] avoid kobject name conflict with different namespaces
Colocation donated by:
Who's online
There are currently
1 user
and
862 guests
online.
Online users
strcmp
Syndicate