login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
4
Re: [PATCH] pda-power: only register available psu
view
thread
Previous message: [
thread
] [
date
] [author]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Dmitry
Subject:
Re: [PATCH] pda-power: only register available psu
Date: Thursday, January 3, 2008 - 6: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, 5:53 pm)
Re: [PATCH] pda-power: only register available psu
, Anton Vorontsov
, (Thu Jan 3, 5:29 pm)
[PATCH 1/2] pda_power: various cleanups
, Anton Vorontsov
, (Thu Jan 3, 5:32 pm)
[PATCH 2/2] pda_power: implement polling
, Anton Vorontsov
, (Thu Jan 3, 5:32 pm)
Re: [PATCH] pda-power: only register available psu
, Dmitry
, (Thu Jan 3, 6:31 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Uwe Kleine-König
Re: [PATCH v2] ARM: allow, but warn, when issuing ioremap() on RAM
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Josef Bacik
[PATCH] fallocate.2: add FALLOC_FL_PUNCH_HOLE flag definition
Andrew Morton
Re: [PATCH v3 0/4] Introduce hardware spinlock framework
git
:
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Bert Wesarg
[TopGit PATCH v3 06/12] list_deps: accept -i/-w
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Petr Baudis
Re: PPC SHA-1 Updates in "pu"
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
ARM: 5905/1: ARM: Global ASID allocation on SMP
Linux Kernel Mailing List
misc: replace remaining __FUNCTION__ with __func__
Linux Kernel Mailing List
Disallow gcc versions 4.1.{0,1}
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Badalian Vyacheslav
Re: tc filter flow hash question
openbsd-misc
:
Boris Goldberg
Re: HP ProLiant DL320 v. Sun Fire V125
Stuart Henderson
Re: Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD
Karel Kulhavy
Re: No Blob without Puffy
Darrin Chandler
Re: strange output on openbsd C code
Nick Holland
Re: Install OpenBSD from USB ?
Colocation donated by:
Syndicate