[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AANLkTinY3FxiBFoFwK20sGp2YU9N9WHgOsY03F1HpH_G@mail.gmail.com>
Date: Tue, 18 May 2010 01:09:39 +0200
From: Michal Bozon <michal.bozon@...il.com>
To: linux-kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH] leds: separate read/write ide-disk triggers
here is a humble extension of leds module, adding separate
"ide-disk-read" and "ide-disk-write" triggers to existing "ide-disk"
one.
tested on pc engines ALIX.3c3 board, kernel 2.6.32, patches smoothly
current 2.6.34 as well
following scenario configures the three leds on ALIX board as
heartbeat, ide-read and ide-write indicators, respectively:
modprobe leds-alix2 force=1
modprobe ledtrig-heartbeat # not relevant to this patch
echo heartbeat > /sys/class/leds/"alix:1"/
trigger # not relevant to this patch
echo ide-disk-read > /sys/class/leds/"alix:2"/trigger
echo ide-disk-write > /sys/class/leds/"alix:3"/trigger
View attachment "led-triggers-ide-disk-read-write.patch" of type "text/x-diff" (3968 bytes)
Powered by blists - more mailing lists