From: Jonas Gorski <jogo@openwrt.org>
To: "Jacek Anaszewski" <j.anaszewski@samsung.com>,
"Álvaro Fernández Rojas" <noltari@gmail.com>
Cc: linux-leds@vger.kernel.org, cooloney@gmail.com,
f.fainelli@gmail.com, cernekee@gmail.com
Subject: Re: [PATCH 2/2] leds: add BCM6328 LED driver
Date: Sat, 18 Apr 2015 11:14:55 +0200 [thread overview]
Message-ID: <5532208F.6070505@openwrt.org> (raw)
In-Reply-To: <552FC921.3050005@samsung.com>
Hi Jacek,
On 16.04.2015 16:37, Jacek Anaszewski wrote:
> Hi Alvaro,
>
> On 04/05/2015 05:08 PM, Álvaro Fernández Rojas wrote:
(snip)
>> +static int bcm6328_hwled(struct device *dev, struct device_node *nc, u32 reg,
>> + void __iomem *mem, spinlock_t *lock)
>> +{
>> + int i, cnt;
>> + unsigned long flags, val;
>> +
>> + spin_lock_irqsave(lock, flags);
>> + val = bcm6328_led_read(mem + REG_HWDIS);
>> + val &= ~BIT(reg);
>> + bcm6328_led_write(mem + REG_HWDIS, val);
>
> What is the purpose of REG_HWDIS register? Does it activate the LED or
> so?
The HWDIS register controls whether the led will be controlled by a
hardware signal, with 0 meaning hardware control enabled and 1 hardware
control disabled. This is usually 1:1 for hardware to led signals, but
through the activity/link registers you have some limited control over
rerouting it. Note that even with a bit cleared there is limited control
over the led; you can still let it blink and light it up if it isn't,
but not turn it off if the hardware decided to light it up.
The default is to disable all hardware signals, and only enable them to
be driven by hardware if requested.
Regards
Jonas
next prev parent reply other threads:[~2015-04-18 9:14 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-02 11:54 [PATCH 0/2] BCM6328 LED driver Álvaro Fernández Rojas
2015-04-02 11:54 ` [PATCH 1/2] leds: add DT binding for BCM6328 LED controller Álvaro Fernández Rojas
2015-04-03 2:06 ` Florian Fainelli
2015-04-03 12:19 ` Álvaro Fernández Rojas
2015-04-03 14:46 ` Jonas Gorski
2015-04-02 11:54 ` [PATCH 2/2] leds: add BCM6328 LED driver Álvaro Fernández Rojas
2015-04-05 15:08 ` [PATCH v2 0/2] " Álvaro Fernández Rojas
2015-04-05 15:08 ` [PATCH v2 1/2] leds: add DT binding for BCM6328 LED controller Álvaro Fernández Rojas
2015-04-16 14:39 ` Jacek Anaszewski
2015-04-05 15:08 ` [PATCH 2/2] leds: add BCM6328 LED driver Álvaro Fernández Rojas
2015-04-16 14:37 ` Jacek Anaszewski
2015-04-18 9:14 ` Jonas Gorski [this message]
2015-04-20 7:12 ` Jacek Anaszewski
2015-04-24 17:06 ` [PATCH v3 0/2] " Álvaro Fernández Rojas
2015-04-24 17:06 ` [PATCH v3 1/2] leds: add DT binding for BCM6328 LED controller Álvaro Fernández Rojas
2015-04-26 11:09 ` Jacek Anaszewski
2015-04-24 17:06 ` [PATCH v3 2/2] leds: add BCM6328 LED driver Álvaro Fernández Rojas
2015-04-26 12:15 ` [PATCH v4 0/2] " Álvaro Fernández Rojas
2015-04-26 12:15 ` [PATCH v4 1/2] leds: add DT binding for BCM6328 LED controller Álvaro Fernández Rojas
2015-04-28 8:18 ` Jacek Anaszewski
2015-04-26 12:15 ` [PATCH v4 2/2] leds: add BCM6328 LED driver Álvaro Fernández Rojas
2015-04-28 8:18 ` Jacek Anaszewski
2015-04-28 16:50 ` [PATCH v5 0/2] " Álvaro Fernández Rojas
2015-04-28 16:50 ` [PATCH v5 1/2] leds: add DT binding for BCM6328 LED controller Álvaro Fernández Rojas
2015-04-28 16:50 ` [PATCH v5 2/2] leds: add BCM6328 LED driver Álvaro Fernández Rojas
[not found] ` <1430239850-26120-1-git-send-email-noltari-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-04-29 0:46 ` [PATCH v5 0/2] " Bryan Wu
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=5532208F.6070505@openwrt.org \
--to=jogo@openwrt.org \
--cc=cernekee@gmail.com \
--cc=cooloney@gmail.com \
--cc=f.fainelli@gmail.com \
--cc=j.anaszewski@samsung.com \
--cc=linux-leds@vger.kernel.org \
--cc=noltari@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.