From: Andrew Morton <akpm@linux-foundation.org>
To: Tobias_Mueller@twam.info
Cc: linux-kernel@vger.kernel.org, Richard Purdie <rpurdie@rpsys.net>,
Constantin Baranov <const@mimas.ru>
Subject: Re: [PATCH 001/001] leds: alix-leds2 fixed for Award BIOS
Date: Wed, 13 May 2009 15:14:15 -0700 [thread overview]
Message-ID: <20090513151415.6e84fd82.akpm@linux-foundation.org> (raw)
In-Reply-To: <17be05570905130710s1192729cqafa09127f6c34bf9@mail.gmail.com>
On Wed, 13 May 2009 16:10:27 +0200
Tobias M__ller <Tobias_Mueller@twam.info> wrote:
> From: Tobias Mueller <Tobias_Mueller@twam.info>
>
> Added initialisation of GPIO ports for compatibility with boards with Award
> BIOS (e.g. ALIX.3D3).
> Signed-off-by: Tobias Mueller <Tobias_Mueller@twam.info>
> ---
> diff --git a/drivers/leds/leds-alix2.c b/drivers/leds/leds-alix2.c
> index ddbd773..bda9403 100644
> --- a/drivers/leds/leds-alix2.c
> +++ b/drivers/leds/leds-alix2.c
> @@ -14,7 +14,7 @@
>
> static int force = 0;
> module_param(force, bool, 0444);
> -MODULE_PARM_DESC(force, "Assume system has ALIX.2 style LEDs");
> +MODULE_PARM_DESC(force, "Assume system has ALIX.2/ALIX.3 style LEDs");
>
> struct alix_led {
> struct led_classdev cdev;
> @@ -155,6 +155,11 @@ static int __init alix_led_init(void)
> goto out;
> }
>
> + /* enable output on GPIO for LED 1,2,3 */
> + outl(1 << 6, 0x6104);
> + outl(1 << 9, 0x6184);
> + outl(1 << 11, 0x6184);
> +
> pdev = platform_device_register_simple(KBUILD_MODNAME, -1, NULL, 0);
> if (!IS_ERR(pdev)) {
> ret = platform_driver_probe(&alix_led_driver, alix_led_probe);
Will this cause problems on boards which are _not_ running that BIOS?
IOW, is this change backward-compatible?
next prev parent reply other threads:[~2009-05-13 22:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-13 14:10 [PATCH 001/001] leds: alix-leds2 fixed for Award BIOS Tobias Müller
2009-05-13 22:14 ` Andrew Morton [this message]
2009-05-14 9:08 ` Tobias Müller
2009-05-14 20:09 ` Constantin Baranov
2009-05-14 20:23 ` Tobias Müller
2009-05-14 21:32 ` Constantin Baranov
2009-05-16 9:52 ` Tobias Müller
2009-05-16 10:11 ` [PATCH v3 001/001] " Tobias Müller
2009-05-16 15:21 ` Constantin Baranov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090513151415.6e84fd82.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=Tobias_Mueller@twam.info \
--cc=const@mimas.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=rpurdie@rpsys.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox