From: Pavel Machek <pavel@ucw.cz>
To: "Raphaël Teysseyre" <rteysseyre@gmail.com>
Cc: Bryan Wu <cooloney@gmail.com>, Joe Xue <lgxue@hotmail.com>,
"rpurdie@rpsys.net" <rpurdie@rpsys.net>,
Linux LED Subsystem <linux-leds@vger.kernel.org>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] leds: Add arbitrary pattern trigger
Date: Mon, 16 Mar 2015 12:55:48 +0100 [thread overview]
Message-ID: <20150316115547.GA9347@amd> (raw)
In-Reply-To: <1426500410.11707.6.camel@localhost>
Hi!
> Additional testing and comments would be appreciated.
git complains about newline at EOF.
Nice ascii art ;-).
Got this while playing with my hid-sony patches:
[ 460.025901] snd_hda_intel 0000:00:1b.0: IRQ timing workaround is
activated for card #0. Suggest a bigger bdl_pos_adj.
[ 826.164068] ------------[ cut here ]------------
[ 826.164088] WARNING: CPU: 0 PID: 0 at kernel/locking/mutex.c:535
mutex_lock_nested+0x2ba/0x2d0()
[ 826.164092] DEBUG_LOCKS_WARN_ON(in_interrupt())
[ 826.164095] Modules linked in:
[ 826.164105] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W
4.0.0-rc3+ #57
[ 826.164109] Hardware name: LENOVO 17097HU/17097HU, BIOS 7BETD8WW
(2.19 ) 03/31/2011
[ 826.164112] 00000000 00000000 f5c1bee0 c486806a f5c1bf0c f5c1befc
c403a42b 00000217
[ 826.164130] c486d8fa ecfb3f44 ecfb3f44 f48b6a10 f5c1bf14 c403a486
00000009 f5c1bf0c
[ 826.164146] c4aa13a9 f5c1bf28 f5c1bf54 c486d8fa c4aa13c1 00000217
c4aa13a9 c4aa139a
[ 826.164162] Call Trace:
[ 826.164171] [<c486806a>] dump_stack+0x41/0x52
[ 826.164182] [<c403a42b>] warn_slowpath_common+0x6b/0xa0
[ 826.164189] [<c486d8fa>] ? mutex_lock_nested+0x2ba/0x2d0
[ 826.164196] [<c403a486>] warn_slowpath_fmt+0x26/0x30
[ 826.164204] [<c486d8fa>] mutex_lock_nested+0x2ba/0x2d0
[ 826.164213] [<c461af4d>] pattern_trig_update+0x1d/0xe0
[ 826.164221] [<c408ef20>] ? process_timeout+0x10/0x10
[ 826.164228] [<c461af30>] ? pattern_trig_deactivate+0x60/0x60
[ 826.164235] [<c408ef6f>] call_timer_fn+0x4f/0xc0
[ 826.164242] [<c408ef20>] ? process_timeout+0x10/0x10
[ 826.164248] [<c461af30>] ? pattern_trig_deactivate+0x60/0x60
[ 826.164255] [<c408f781>] run_timer_softirq+0x171/0x210
[ 826.164262] [<c403d384>] __do_softirq+0xd4/0x1c0
[ 826.164269] [<c403d2b0>] ? cpu_callback+0x120/0x120
[ 826.164276] [<c400409d>] do_softirq_own_stack+0x1d/0x30
[ 826.164280] <IRQ> [<c403d57e>] irq_exit+0x6e/0x90
[ 826.164291] [<c4003a70>] do_IRQ+0x40/0xb0
[ 826.164299] [<c48706b0>] common_interrupt+0x30/0x38
[ 826.164307] [<c45ff30a>] ? cpuidle_enter_state+0x3a/0xe0
[ 826.164314] [<c45ff3cf>] cpuidle_enter+0xf/0x20
[ 826.164322] [<c406c114>] cpu_startup_entry+0x234/0x320
[ 826.164331] [<c4865092>] rest_init+0x92/0xa0
[ 826.164341] [<c4c49ab4>] start_kernel+0x36b/0x372
[ 826.164348] [<c4c492d4>] i386_start_kernel+0x82/0x86
[ 826.164352] ---[ end trace a011c72f14dcd310 ]---
[ 942.239519] Sony: init
I'd suggest following fix for the documentation.
Thanks,
Pavel
diff --git a/Documentation/leds/ledtrig-pattern.txt b/Documentation/leds/ledtrig-pattern.txt
index 2db2021..cf14381 100644
--- a/Documentation/leds/ledtrig-pattern.txt
+++ b/Documentation/leds/ledtrig-pattern.txt
@@ -6,7 +6,7 @@ dimming. This trigger can be configured to repeat the pattern a number of
times or indefinitely. This is intended as a way of communication for embedded
systems with no screen.
-The trigger can be activated from user space on led class devices as shown
+The trigger can be activated from user space on LED class devices as shown
below:
echo pattern > trigger
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2015-03-16 11:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-19 8:26 [PATCH RFC] leds: Add status code trigger Raphaël Teysseyre
2015-03-09 21:15 ` Bryan Wu
2015-03-10 8:00 ` Pavel Machek
[not found] ` <BLU172-W3716E59BC9E98F60F424C4AC180@phx.gbl>
2015-03-10 19:22 ` Pavel Machek
2015-03-11 15:10 ` Raphaël Teysseyre
2015-03-11 19:02 ` Pavel Machek
2015-03-12 6:56 ` Raphaël Teysseyre
2015-03-16 10:06 ` [PATCH] leds: Add arbitrary pattern trigger Raphaël Teysseyre
2015-03-16 11:55 ` Pavel Machek [this message]
2015-03-16 16:49 ` Raphaël Teysseyre
2015-03-16 12:20 ` Pavel Machek
2015-03-16 12:40 ` Paul Bolle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150316115547.GA9347@amd \
--to=pavel@ucw.cz \
--cc=cooloney@gmail.com \
--cc=lgxue@hotmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=rpurdie@rpsys.net \
--cc=rteysseyre@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).