summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/leds
Commit message (Collapse)AuthorAgeFilesLines
* ledtrig-netdev: don't stop timer on events for different interfacesRafał Miłecki2016-01-021-1/+2
| | | | | | | | | | This fixes regression introduced in my recent ledtrig-netdev commit. Events triggered by different interfaces were stopping timer so it wasn't working for tx/rx mode. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 48072
* ledtrig-netdev: add support for renamed devicesJohn Crispin2016-01-011-2/+3
| | | | | | | | | | | The ppp0 interface is renamed after the connection is established. Due to a missing NETDEV_REGISTER event, the ledtrig-netdev isn't aware of the renamed interface and literally ignores the device (no tx/rx indication, led isn't switched off with 'ifdown wan'). Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 48048
* ledtrig-netdev: reset link status & stats after changing device_nameRafał Miłecki2015-12-231-0/+2
| | | | | | | | | Previously switching to non-existing device (interface) could result in leaving LED on. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 47990
* ledtrig-netdev: drop locking from timer callback functionRafał Miłecki2015-12-231-11/+13
| | | | | | | | | | We may just delete timer on every trigger update and then start it again if needed. This will let us avoid both: races and locking in frequently called timer callback. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 47987
* ledtrig-netdev: switch rwlock to spinlockRafał Miłecki2015-12-231-20/+20
| | | | | | | | | | Read/write lock was adding useless complexity, there wasn't any real gain in case of this driver. Also switch to _bh variants to avoid deadlocks. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 47986
* ledtrig-netdev: update base driver instead of patching it for every kernelRafał Miłecki2015-12-231-4/+4
| | | | | | | | | | All supported kernels require patching ledtrig-netdev in the same way, so it's safe to just move these changes to the base version of this driver. We needed these patches for some old kernels 2.6.36 and 3.11. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 47962
* coding style cleanups, drop old kernel supportImre Kaloz2014-06-211-21/+8
| | | | | | Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 41293
* we dont need 1024 bytes buffer. 128 bytes is enough.John Crispin2011-06-091-2/+2
| | | | SVN-Revision: 27143
* generic: add LED trigger for USB device presence/activityGabor Juhos2010-12-171-0/+348
| | | | SVN-Revision: 24646
* rename target/linux/generic-2.6 to genericFelix Fietkau2010-06-262-0/+817
SVN-Revision: 21952