Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
- From: Richard Purdie <rpurdie@xxxxxxxxx>
- Date: Tue, 31 Jan 2006 22:03:35 +0000
On Tue, 2006-01-31 at 21:35 +0100, Jens Axboe wrote:
> Perhaps a generic solution isn't feasible, because this isn't really a
> generic problem.
I agree. I think that email goes to show that totally generic led
triggers aren't achievable, desirable or useful.
> The LED stuff has very limited use - you mention
> embedded platforms, perhaps they should just be doing this on their own?
I am convinced the led class core and the led trigger *core* should be
in the mainline kernel. The alternative is for everyone to invent their
own versions and end up in a mess. The arm LED code is one example of
something done adhoc which no other arch can benefit from.
The core code doesn't touch anything outside of drivers/leds and can be
hidden behind any config options found to be appropriate.
> Generally I'm finding a hard time justifying an LED api, honestly. It
> just feels like one of those things where the actual abstraction ends up
> being a lot bigger than code needed. Abstracting and creating an API
> isn't always useful.
Nobody seems to have any issues with the led class or the led drivers
themselves. The triggers are the controversial aspect. The trigger API
is in a way too powerful as it can let you use anything as an LED
trigger. This leads to people asking for anything and everything as a
trigger.
Perhaps the best solution might be to allow the LED class core, the
triggers *core* and led drivers into the kernel but be extremely
selective about which triggers are allowed (if any).
I think there is a case for including specific triggers like the sharpsl
charging trigger as if we're going to have sharpsl charging code in the
kernel (which we have), it might as well connect up to the charging led
it was built for.
If all other more generic triggers are rejected, I can live with that.
Maintaining a handful of trigger patches outside the kernel, most of
them a few lines long is much easier than maintaining a whole subsystem.
Would that be acceptable?
Richard
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 10/11] LED: Add IDE disk activity LED trigger
- From: Richard Purdie
- Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
- From: Bartlomiej Zolnierkiewicz
- Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
- From: Richard Purdie
- Re: [PATCH 10/11] LED: Add IDE disk activity LED trigger
- From: Jens Axboe
- [PATCH 10/11] LED: Add IDE disk activity LED trigger
- Prev by Date: Re: GPL V3 and Linux - Dead Copyright Holders
- Next by Date: Re: [lock validator] inet6_destroy_sock(): soft-safe -> soft-unsafe lock dependency
- Previous by thread: Re: LED: Add IDE disk activity LED trigger
- Next by thread: [PATCH 5/11] LED: Add Sharp Charger Status LED Trigger
- Index(es):
Relevant Pages
- Re: PROBLEM: 2.4 oops: proc_pid_stat()
... server in another state I first tried going ahead and upgrading to 2.6.17.3.
... Keywords (i.e., modules, networking, kernel): ... A small shell script
or example program which triggers the ... (Linux-Kernel) - Re: The performance and behaviour of the anti-fragmentation related patches
... simple matter to concoct a test case which triggers the same failure mode. ...
then work out what the kernel is doing. ... it's really great when it's possible to get
debug info out of ... from virt_to_pageon a cache colored buffer pointer (clearly
... (Linux-Kernel) - Re: [sparc64] 2.6.18 unaligned accesses in eth1394
... David Miller wrote: ... The second one triggers on every packet received,
the first only triggers once in a while. ... If you want more gdb info or a disassembly
just ask. ... into your kernel, reproduce, and post the kernel log messages ...
(Linux-Kernel) - Re: Simple script that locks up my box with recent kernels
... >>> if I can get it to die that way. ... I already tried doing a git
bisect, but I somehow messed it up ... (probably by concluding that a bad kernel was
good). ... The problem is that *usually* triggers fairly quickly, ... (Linux-Kernel) - Re: VOP_PRINT: 0xc775b128 interlock is locked but should not be
... > ffs_snapshot calls vprint with vnode interlock held and that triggers
... > locking debugging enabled in your kernel? ... (freebsd-current)