rtl8187: Implement TX/RX blink for LED
Hin-Tak Leung
Tested-byQuoted 30 lines · Larry Finger
The following patch implements some
control over the LED on RTL8187B and
RTL8187L devices. Triggers are registered for TX and RX. Whenever the
trigger event occurs, the LED is turned off for 1/20 second, then turned
back on.Note: For those RTL8187X devices that are built into the computer and have
a LED that is expected to be controlled with a radio switch, this patch will
not operate that LED. That will take a separate patch to be prepared later.Please test and comment.
The behavior described above is found for my Level One RTL8187B. Prior to this
patch, the LED was on continuously. On a Netgear WG111V2 RTL8187L, the LED
blinks erratically. Before the patch, the LED was off.If you test, please report the status of the LED before and after applying the
patch. In addition, find the line that looks like "rtl8187:
Customer ID0x00" in
the dmesg output and report it. I also need to know if you have a B or L model.
Quoted 6 lines
A number of problems with version 1 of this patch have been fixed. The most
important of these was a locking problem that caused the RTL8187L to fail.Signed-off-by Larry Finger <[email protected]>
I see you have changed to cancel_delayed_work_sync() - that's might be where how it was(?) crashing?
Hin-Tak