Messages in this thread Patch in this message | | | From | Tony Vroon <> | Subject | [PATCH 2.6.22] Add LED trigger to libata core | Date | Sun, 18 Mar 2007 17:06:05 +0000 (GMT) |
| |
This duplicates the IDE core LED trigger in the libata core. I plan to use this by allowing PMU LED control on G5 towers. My test platform is a PowerMac 7,3 (Dual G5 2.0GHz, June 2004) with a K2 (sata_svw) controller.
Signed-off-by: Tony Vroon <chainsaw@gentoo.org>
--- linux-2.6/drivers/ata/libata-scsi.c.orig 2007-03-17 22:53:56.000000000 +0000 +++ linux-2.6/drivers/ata/libata-scsi.c 2007-03-17 22:53:15.000000000 +0000 @@ -46,6 +46,7 @@ #include <linux/libata.h> #include <linux/hdreg.h> #include <asm/uaccess.h> +#include <linux/leds.h> #include "libata.h" @@ -2791,6 +2792,7 @@ struct ata_device *dev) { int rc = 0; + ledtrig_ide_activity(); if (unlikely(!scmd->cmd_len)) { ata_dev_printk(dev, KERN_WARNING, "WARNING: zero len CDB\n"); - 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/
| |