* Re: [PATCH 1/3] libata: add missing PM callbacks
[not found] ` <45E8B3C8.2090009@garzik.org>
@ 2007-03-03 3:11 ` Tejun Heo
2007-03-06 8:05 ` Pavel Machek
0 siblings, 1 reply; 5+ messages in thread
From: Tejun Heo @ 2007-03-03 3:11 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linux-ide, Alan, Pavel Machek, Linux Kernel Mailing List
[cc'ing Pavel and linux-kernel, hello]
Original thread can be read from
http://thread.gmane.org/gmane.linux.ide/16475
Jeff Garzik wrote:
> Tejun Heo wrote:
>> Some LLDs were missing scsi device PM callbacks while having host/port
>> suspend support. Add missing ones.
>>
>> Signed-off-by: Tejun Heo <htejun@gmail.com>
>
> applied 1-3, though I agree with Alan that a non-ifdef solution should
> be sought (by the PM & PCI people?), where possible
Agreed, CONFIG_PM ifdefs are all over low level drivers, libata or not,
and ugly as hell. Maybe use separate section, mark functions with
__power and drop them at link time is a better idea. With linker
tricks, we can make references to __power symbols NULL. How does it sound?
--
tejun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/3] libata: add missing PM callbacks
2007-03-03 3:11 ` [PATCH 1/3] libata: add missing PM callbacks Tejun Heo
@ 2007-03-06 8:05 ` Pavel Machek
2007-03-06 8:13 ` Tejun Heo
0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2007-03-06 8:05 UTC (permalink / raw)
To: Tejun Heo; +Cc: Jeff Garzik, linux-ide, Alan, Linux Kernel Mailing List
Hi!
> [cc'ing Pavel and linux-kernel, hello]
>
> Original thread can be read from
>
> http://thread.gmane.org/gmane.linux.ide/16475
>
> Jeff Garzik wrote:
> > Tejun Heo wrote:
> >> Some LLDs were missing scsi device PM callbacks while having host/port
> >> suspend support. Add missing ones.
> >>
> >> Signed-off-by: Tejun Heo <htejun@gmail.com>
> >
> > applied 1-3, though I agree with Alan that a non-ifdef solution should
> > be sought (by the PM & PCI people?), where possible
>
> Agreed, CONFIG_PM ifdefs are all over low level drivers, libata or not,
> and ugly as hell. Maybe use separate section, mark functions with
> __power and drop them at link time is a better idea. With linker
> tricks, we can make references to __power symbols NULL. How does it sound?
Much complexity for little gain. Who is running _without_ CONFIG_PM
these days?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/3] libata: add missing PM callbacks
2007-03-06 8:05 ` Pavel Machek
@ 2007-03-06 8:13 ` Tejun Heo
2007-03-06 8:22 ` Pavel Machek
0 siblings, 1 reply; 5+ messages in thread
From: Tejun Heo @ 2007-03-06 8:13 UTC (permalink / raw)
To: Pavel Machek; +Cc: Jeff Garzik, linux-ide, Alan, Linux Kernel Mailing List
Pavel Machek wrote:
> Much complexity for little gain. Who is running _without_ CONFIG_PM
> these days?
Embedded people, I guess. The problem here is that if we are gonna
support !CONFIG_PM configuration and try to reduce the kernel/module
images size for such case, we end up sprinkling #ifdef's all over huge
number of device drivers.
If we determine to drop !CONFIG_PM configuration, I'm happy with that
too but we need to determine something here. Alternatives...
1. drop !CONFIG_PM configuration
2. continue to sprinkle #ifdef's over device drivers
3. find out prettier way to mark PM functions
--
tejun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/3] libata: add missing PM callbacks
2007-03-06 8:13 ` Tejun Heo
@ 2007-03-06 8:22 ` Pavel Machek
2007-03-06 10:20 ` Andrew Grover
0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2007-03-06 8:22 UTC (permalink / raw)
To: Tejun Heo; +Cc: Jeff Garzik, linux-ide, Alan, Linux Kernel Mailing List
Hi!
> > Much complexity for little gain. Who is running _without_ CONFIG_PM
> > these days?
>
> Embedded people, I guess. The problem here is that if we are gonna
> support !CONFIG_PM configuration and try to reduce the kernel/module
> images size for such case, we end up sprinkling #ifdef's all over huge
> number of device drivers.
Ok, in separate mail I see you already did the work...
> If we determine to drop !CONFIG_PM configuration, I'm happy with that
> too but we need to determine something here. Alternatives...
>
> 1. drop !CONFIG_PM configuration
> 2. continue to sprinkle #ifdef's over device drivers
> 3. find out prettier way to mark PM functions
...of 3., and code is nicely generic and fairly simple. I thought it
would be too much work to implemente it, and it would get too messy.
Given that it is so simple, I believe 3. is the best option. We can
still do 1. in future if we feel like so...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/3] libata: add missing PM callbacks
2007-03-06 8:22 ` Pavel Machek
@ 2007-03-06 10:20 ` Andrew Grover
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Grover @ 2007-03-06 10:20 UTC (permalink / raw)
To: Pavel Machek
Cc: Tejun Heo, Jeff Garzik, linux-ide, Alan,
Linux Kernel Mailing List
On 3/6/07, Pavel Machek <pavel@ucw.cz> wrote:
> > 1. drop !CONFIG_PM configuration
> > 2. continue to sprinkle #ifdef's over device drivers
> > 3. find out prettier way to mark PM functions
>
> ...of 3., and code is nicely generic and fairly simple. I thought it
> would be too much work to implemente it, and it would get too messy.
>
> Given that it is so simple, I believe 3. is the best option. We can
> still do 1. in future if we feel like so...
How much room does it actually save? And, can we maybe have some
actual embedded people saying they need this special treatment?
-- Andy
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-03-06 10:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20070302083001.GK20322@htj.dyndns.org>
[not found] ` <45E8B3C8.2090009@garzik.org>
2007-03-03 3:11 ` [PATCH 1/3] libata: add missing PM callbacks Tejun Heo
2007-03-06 8:05 ` Pavel Machek
2007-03-06 8:13 ` Tejun Heo
2007-03-06 8:22 ` Pavel Machek
2007-03-06 10:20 ` Andrew Grover
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox