[OpenWrt-Devel] LED Toggling for SATA

Deepanjan Kar dkar at ikanos.com
Tue Mar 31 02:16:29 EDT 2015


Hi Daniel,

Thank you for the mail.
We are using OpenWRT Version 42990 and I don't see the patch in here.
Can you please point me to the Version where this patch is implemented ?

I am going through the patch and trying to understand what it does.

Regards,
Deepanjan


-----Original Message-----
From: Daniel Golle [mailto:daniel at makrotopia.org] 
Sent: Monday, March 30, 2015 6:49 PM
To: Deepanjan Kar
Cc: openwrt-devel at lists.openwrt.org
Subject: Re: [OpenWrt-Devel] LED Toggling for SATA

Hi Deepanjan,

have a look at ledtrig-ata on how to register a LED trigger for
each port [1]. Currently this provides only an activity indicator,
however, extending it to the features you described should not
be too difficult. Let me know if you need more hints/help with
that.


Cheers


Daniel


1: https://dev.openwrt.org/browser/trunk/target/linux/generic/patches-3.18/834-ledtrig-libata.patch


On Mon, Mar 30, 2015 at 09:38:15AM +0000, Deepanjan Kar wrote:
> Dear All,
> 
> I would be thankful if you could provide me hint on to how to implement a driver for LED for a  AHCI Controller.
> At present the LED is driven by GPIO.
> The requirement is that the LED should GLOW SOLID once the SATA link is UP, TOGGLE during SATA traffic and GLOW HOLLOW once the link is down.
> 
> The driver should expose the LEDS to SYSFS for control from the user.
> 
> A driver for LEDS for USB is present in drivers/leds/ledtrig-usbdev.c.
> This uses a function call "usb_register_notify" to get notified from the USB Core about the USB link.
> 
> Do we have something similar for SATA ?
> 
> Regards,
> Deepanjan
> 

> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list