[PATCH] Add ledtrig_ide_activity () to libata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi , all .

I noticed that that ledtrig_ide_activity was not enable in libata. 

I append the patch to correct it. 
Please apply. 

regards ,
 Nobuhiro
-- 
Nobuhiro Iwamatsu
	E-Mail : hemamu@xxxxxxxxxxxx
	GPG ID : 3170EBE9 

Signed-off-by: Nobuhiro Iwamatsu <iwamtsu@xxxxxxxxxxx>

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index dc362fa..51930be 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -407,6 +407,7 @@ int ata_build_rw_tf(struct ata_taskfile *tf, struct ata_device *dev,
 		tf->lbah = cyl >> 8;
 		tf->device |= head;
 	}
+	ledtrig_ide_activity();
 
 	return 0;
 }
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index 80acd08..0b99f57 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -113,7 +113,7 @@ config LEDS_TRIGGER_TIMER
 
 config LEDS_TRIGGER_IDE_DISK
 	bool "LED IDE Disk Trigger"
-	depends on LEDS_TRIGGERS && BLK_DEV_IDEDISK
+	depends on LEDS_TRIGGERS && ( BLK_DEV_IDEDISK || ATA)
 	help
 	  This allows LEDs to be controlled by IDE disk activity.
 	  If unsure, say Y.
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux