lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4550C7F4.9040601@krisk.org>
Date:	Tue, 07 Nov 2006 12:52:52 -0500
From:	Kristian Kielhofner <kris@...sk.org>
To:	bootc@...tc.net, rpurdie@...ys.net
CC:	linux-kernel@...r.kernel.org
Subject: PATCH: PCEngines WRAP LED Support

Hello,

	I have "created" a driver for the PCEngines WRAP boards 
(http://www.pcengines.ch), which are very similar to the Soekris net4801 
(same NS SC1100 geode reference design).  It was developed for, applies 
to, and works quite well (for me) on 2.6.18.

	The LEDs on the WRAP are on different GPIO lines and I have modified 
and copied the net48xx error led support for this.  It also includes 
support for an "extra" led (in addition to error).  The three LEDs on 
the WRAP are at GPIO lines 2,3,18 (WRAP LEDs from left to right).  This 
driver gives access to the second and third LEDs by twiddling GPIO lines 
3 & 18.

	Because these boards are so similar to the net48xx, I basically sed-ed 
that driver to form the basis for leds-wrap.c.  The only changes from 
leds-net48xx.c are:

- #define WRAP_EXTRA_LED_GPIO
- name changes
- duplicate relevant sections to provide support for the "extra" led
- reverse the various *_led_set values.  The WRAP is "backwards" from 
the net48xx, and these needed to be updated for that.

	This does need a little work though...  Due to my VERY limited 
knowledge of C (sorry), I don't know how to properly handle and return 
error status from multiple led_classdev_register() calls inside of 
wrap_led_probe().  I'm sure someone can fix this up in a jiffy :).

Signed-off-by: Kristian Kielhofner <kris@...sk.org>

My mail reader does not appear to let me insert text inline, so I have 
attached the patch.  Hopefully it will be rendered correctly by most 
mail readers (sure beats bad wrapping).  If it doesn't work out, I can 
try again.

View attachment "wrap-led.patch" of type "text/x-patch" (4674 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ