l GPIOs
> that get initialized. We leave this information out since it is already
> printed with dev_dbg.
>
> Signed-off-by: Justin Chen
Looks like I'm a bit late on the response, but in case you feel like
adding it Linus:
Acked-by: Gregory Fong
l GPIOs
> that get initialized. We leave this information out since it is already
> printed with dev_dbg.
>
> Signed-off-by: Justin Chen
Looks like I'm a bit late on the response, but in case you feel like
adding it Linus:
Acked-by: Gregory Fong
hedge4li...@gmail.com>
Acked-by: Gregory Fong <gregory.0...@gmail.com>
On Sat, Dec 16, 2017 at 4:56 AM, Pravin Shedge
wrote:
> These duplicate includes have been found with scripts/checkincludes.pl
> but they have been removed manually to avoid removing false positives.
>
> Signed-off-by: Pravin Shedge
Acked-by: Gregory Fong
Hi Pravin,
On Mon, Dec 4, 2017 at 5:58 PM, Pravin Shedge
wrote:
> These duplicate includes have been found with scripts/checkincludes.pl but
> they have been removed manually to avoid removing false positives.
>
> Signed-off-by: Pravin Shedge
Hi Pravin,
On Mon, Dec 4, 2017 at 5:58 PM, Pravin Shedge
wrote:
> These duplicate includes have been found with scripts/checkincludes.pl but
> they have been removed manually to avoid removing false positives.
>
> Signed-off-by: Pravin Shedge
> ---
> drivers/gpio/gpio-brcmstb.c | 1 -
> 1 file
It is convenient to mask the non-wake parent
> when suspending to preserve the hardware state for proper wakeup
> accounting when the driver is resumed.
>
> Signed-off-by: Doug Berger <open...@gmail.com>
Acked-by: Gregory Fong <gregory.0...@gmail.com>
non-wake parent
> when suspending to preserve the hardware state for proper wakeup
> accounting when the driver is resumed.
>
> Signed-off-by: Doug Berger
Acked-by: Gregory Fong
mber of
> the GPIO should resolve. This domain can only map hwirq numbers
> 0-31 so interrupts on GPIO above that can't be mapped by the
> device-tree.
>
> This commit effectively reverts the patch from Gregory Fong [1]
> that was accepted upstream and replaces it with a consolidated
> irq
olve. This domain can only map hwirq numbers
> 0-31 so interrupts on GPIO above that can't be mapped by the
> device-tree.
>
> This commit effectively reverts the patch from Gregory Fong [1]
> that was accepted upstream and replaces it with a consolidated
> irq domain implementa
On Thu, Oct 19, 2017 at 11:39 AM, Doug Berger wrote:
>>> +static int brcmstb_gpio_resume(struct device *dev)
>>> +{
>>> +struct brcmstb_gpio_priv *priv = dev_get_drvdata(dev);
>>> +struct brcmstb_gpio_bank *bank;
>>> +u32 wake_mask = 0;
>>
>> This isn't really being
On Thu, Oct 19, 2017 at 11:39 AM, Doug Berger wrote:
>>> +static int brcmstb_gpio_resume(struct device *dev)
>>> +{
>>> +struct brcmstb_gpio_priv *priv = dev_get_drvdata(dev);
>>> +struct brcmstb_gpio_bank *bank;
>>> +u32 wake_mask = 0;
>>
>> This isn't really being used as a mask,
Hi Doug,
Nice description of the problem with dealing with a pending disabled
wake interrupt and the solution. A few remarks:
On Fri, Sep 29, 2017 at 08:40:57PM -0700, Doug Berger wrote:
> diff --git a/drivers/gpio/gpio-brcmstb.c b/drivers/gpio/gpio-brcmstb.c
> index 752a46ce3589..c964ed71a68d
Hi Doug,
Nice description of the problem with dealing with a pending disabled
wake interrupt and the solution. A few remarks:
On Fri, Sep 29, 2017 at 08:40:57PM -0700, Doug Berger wrote:
> diff --git a/drivers/gpio/gpio-brcmstb.c b/drivers/gpio/gpio-brcmstb.c
> index 752a46ce3589..c964ed71a68d
Hi Doug,
On Wed, Oct 04, 2017 at 02:24:37PM -0700, Doug Berger wrote:
> On 10/03/2017 08:03 PM, Gregory Fong wrote:
> > On Fri, Sep 29, 2017 at 8:40 PM, Doug Berger <open...@gmail.com> wrote:
> >> The GPIOLIB IRQ chip helpers were very appealing, but badly broke
>
Hi Doug,
On Wed, Oct 04, 2017 at 02:24:37PM -0700, Doug Berger wrote:
> On 10/03/2017 08:03 PM, Gregory Fong wrote:
> > On Fri, Sep 29, 2017 at 8:40 PM, Doug Berger wrote:
> >> The GPIOLIB IRQ chip helpers were very appealing, but badly broke
> >> the 1:1 mapping
On Tue, Oct 3, 2017 at 7:22 PM, Doug Berger <open...@gmail.com> wrote:
> On 10/03/2017 07:10 PM, Gregory Fong wrote:
>> Hi Doug,
>>
>> On Fri, Sep 29, 2017 at 8:40 PM, Doug Berger <open...@gmail.com> wrote:
>>> Mask the GPIO interrupt while its type
On Tue, Oct 3, 2017 at 7:22 PM, Doug Berger wrote:
> On 10/03/2017 07:10 PM, Gregory Fong wrote:
>> Hi Doug,
>>
>> On Fri, Sep 29, 2017 at 8:40 PM, Doug Berger wrote:
>>> Mask the GPIO interrupt while its type is being changed, just in case
>>> it can pr
On Tue, Oct 3, 2017 at 7:09 PM, Doug Berger <open...@gmail.com> wrote:
> On 10/03/2017 06:55 PM, Gregory Fong wrote:
>> Hi Doug,
>>
>> On Fri, Sep 29, 2017 at 8:40 PM, Doug Berger <open...@gmail.com> wrote:
>>> The basic memory-mapped GPIO controlle
On Tue, Oct 3, 2017 at 7:09 PM, Doug Berger wrote:
> On 10/03/2017 06:55 PM, Gregory Fong wrote:
>> Hi Doug,
>>
>> On Fri, Sep 29, 2017 at 8:40 PM, Doug Berger wrote:
>>> The basic memory-mapped GPIO controller lock must be released
>>> before calling
Hi Doug,
On Fri, Sep 29, 2017 at 8:40 PM, Doug Berger wrote:
> The GPIOLIB IRQ chip helpers were very appealing, but badly broke
> the 1:1 mapping between a GPIO controller's device_node and its
> interrupt domain.
Out of curiosity, what sort of problems have you seen from
Hi Doug,
On Fri, Sep 29, 2017 at 8:40 PM, Doug Berger wrote:
> The GPIOLIB IRQ chip helpers were very appealing, but badly broke
> the 1:1 mapping between a GPIO controller's device_node and its
> interrupt domain.
Out of curiosity, what sort of problems have you seen from this?
>
> This
Hi Doug,
On Fri, Sep 29, 2017 at 8:40 PM, Doug Berger wrote:
> Mask the GPIO interrupt while its type is being changed, just in case
> it can prevent a spurious interrupt.
"Just in case"? I don't have access to hardware documentation for
this anymore, but I'd expect to some
Hi Doug,
On Fri, Sep 29, 2017 at 8:40 PM, Doug Berger wrote:
> Mask the GPIO interrupt while its type is being changed, just in case
> it can prevent a spurious interrupt.
"Just in case"? I don't have access to hardware documentation for
this anymore, but I'd expect to some stronger claim that
; Fixes: 19a7b6940b78 ("gpio: brcmstb: Add interrupt and wakeup source support")
> Signed-off-by: Doug Berger <open...@gmail.com>
Acked-by: Gregory Fong <gregory.0...@gmail.com>
t;gpio: brcmstb: Add interrupt and wakeup source support")
> Signed-off-by: Doug Berger
Acked-by: Gregory Fong
Signed-off-by: Doug Berger <open...@gmail.com>
Acked-by: Gregory Fong <gregory.0...@gmail.com>
rq flow instead of the handle_simple_irq
> flow we get proper handling of interrupt masking as well as acking
> of interrupts. The irq_ack method is added to support this.
>
> Fixes: 19a7b6940b78 ("gpio: brcmstb: Add interrupt and wakeup source support")
> Signed-off-by: Doug Berger
Acked-by: Gregory Fong
Hi Doug,
On Fri, Sep 29, 2017 at 8:40 PM, Doug Berger wrote:
> The basic memory-mapped GPIO controller lock must be released
> before calling the registered GPIO interrupt handlers to allow
> the interrupt handlers to access the hardware. Otherwise, the
> hardware accesses
Hi Doug,
On Fri, Sep 29, 2017 at 8:40 PM, Doug Berger wrote:
> The basic memory-mapped GPIO controller lock must be released
> before calling the registered GPIO interrupt handlers to allow
> the interrupt handlers to access the hardware. Otherwise, the
> hardware accesses will deadlock when
_irq has been defined to
> indicate that the GPIO device can wake.
>
> Fixes: 19a7b6940b78 ("gpio: brcmstb: Add interrupt and wakeup source support")
> Signed-off-by: Doug Berger <open...@gmail.com>
Acked-by: Gregory Fong <gregory.0...@gmail.com>
cate that the GPIO device can wake.
>
> Fixes: 19a7b6940b78 ("gpio: brcmstb: Add interrupt and wakeup source support")
> Signed-off-by: Doug Berger
Acked-by: Gregory Fong
On Wed, Sep 20, 2017 at 12:13 AM, Arvind Yadav
wrote:
> devm_kasprintf() can fail here and we must check its return value.
>
> Signed-off-by: Arvind Yadav
> ---
> drivers/gpio/gpio-brcmstb.c | 3 +++
> 1 file changed, 3 insertions(+)
>
>
On Wed, Sep 20, 2017 at 12:13 AM, Arvind Yadav
wrote:
> devm_kasprintf() can fail here and we must check its return value.
>
> Signed-off-by: Arvind Yadav
> ---
> drivers/gpio/gpio-brcmstb.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpio/gpio-brcmstb.c
On Wed, Aug 9, 2017 at 3:51 PM, Masahiro Yamada
<yamada.masah...@socionext.com> wrote:
> Because gpiochip_irqchip_add() may fail, its return value should
> be checked.
>
> Signed-off-by: Masahiro Yamada <yamada.masah...@socionext.com>
Acked-by: Gregory Fong <gregory.0...@gmail.com>
On Wed, Aug 9, 2017 at 3:51 PM, Masahiro Yamada
wrote:
> Because gpiochip_irqchip_add() may fail, its return value should
> be checked.
>
> Signed-off-by: Masahiro Yamada
Acked-by: Gregory Fong
rian Fainelli <f.faine...@gmail.com>
Acked-by: Gregory Fong <gregory.0...@gmail.com>
g non-wakeup events, which would result in spurious
> wake-ups from sources that were not explicitly configured for wake-up.
>
> Fixes: 7f646e92766e ("irqchip: brcmstb-l2: Add Broadcom Set Top Box Level-2
> interrupt controller")
> Signed-off-by: Florian Fainelli
Acked-by: Gregory Fong
ff-by: Rob Herring <r...@kernel.org>
For the brcmstb part,
Acked-by: Gregory Fong <gregory.0...@gmail.com>
stb part,
Acked-by: Gregory Fong
t CMA region
> position")
> Signed-off-by: Angus Clark <an...@angusclark.org>
> Signed-off-by: Doug Berger <open...@gmail.com>
Acked-by: Gregory Fong <gregory.0...@gmail.com>
inclusion in stable.
>
> Also, the align_order arguments of cma_bitmap_aligned_mask() and
> cma_bitmap_aligned_offset() should not be negative so the argument
> type was made unsigned.
>
> Fixes: b5be83e308f7 ("mm: cma: align to physical address, not CMA region
> posit
On Fri, May 12, 2017 at 1:40 AM, Thomas Gleixner <t...@linutronix.de> wrote:
> On Thu, 11 May 2017, Gregory Fong wrote:
>> Hi Thomas,
>>
>> I noticed that when you changed arm irq handling to use the generic
>> implementation back in 2006 that you changed
On Fri, May 12, 2017 at 1:40 AM, Thomas Gleixner wrote:
> On Thu, 11 May 2017, Gregory Fong wrote:
>> Hi Thomas,
>>
>> I noticed that when you changed arm irq handling to use the generic
>> implementation back in 2006 that you changed do_bad_IRQ() to the
>> fol
Hi Thomas,
I noticed that when you changed arm irq handling to use the generic
implementation back in 2006 that you changed do_bad_IRQ() to the
following:
+#define do_bad_IRQ(irq,desc,regs) \
+do { \
+ spin_lock(>lock);
Hi Thomas,
I noticed that when you changed arm irq handling to use the generic
implementation back in 2006 that you changed do_bad_IRQ() to the
following:
+#define do_bad_IRQ(irq,desc,regs) \
+do { \
+ spin_lock(>lock);
Add device managed devm_misc_register() to allow simplifying some
miscdevice code.
Signed-off-by: Gregory Fong <gregory.f...@virginorbit.com>
---
This seemed like it would be handy for removing a large chunk of the cleanup
code in various miscdevice users. Let me know whether you thin
Add device managed devm_misc_register() to allow simplifying some
miscdevice code.
Signed-off-by: Gregory Fong
---
This seemed like it would be handy for removing a large chunk of the cleanup
code in various miscdevice users. Let me know whether you think it'd be worth
going ahead changing
oc: bcm: brcmstb: Match additional compatible strings")
> Reported-by: Andreas Oberritter <o...@saftware.de>
> Signed-off-by: Florian Fainelli <f.faine...@gmail.com>
Acked-by: Gregory Fong <gregory.0...@gmail.com>
tional compatible strings")
> Reported-by: Andreas Oberritter
> Signed-off-by: Florian Fainelli
Acked-by: Gregory Fong
ext line, this cast can be omitted.
> + value |= (u64)gisb_read(gdev, ARB_ERR_CAP_HI_ADDR) << 32;
> +
> + return value;
> +}
> [snip]
Acked-by: Gregory Fong <gregory.0...@gmail.com>
4)gisb_read(gdev, ARB_ERR_CAP_HI_ADDR) << 32;
> +
> + return value;
> +}
> [snip]
Acked-by: Gregory Fong
offset from the base address for writes as well as reads.
>
> Fixes: f80835875d3d ("bus: brcmstb_gisb: Look up register offsets in a table")
> Signed-off-by: Doug Berger <open...@gmail.com>
Acked-by: Gregory Fong <gregory.0...@gmail.com>
ess for writes as well as reads.
>
> Fixes: f80835875d3d ("bus: brcmstb_gisb: Look up register offsets in a table")
> Signed-off-by: Doug Berger
Acked-by: Gregory Fong
Hi all,
In arch/powerpc/sysdev/mpic.c , it looks like IRQ_TYPE_EDGE_BOTH is
handled the same way as IRQ_TYPE_EDGE_FALLING:
static unsigned int mpic_type_to_vecpri(struct mpic *mpic, unsigned int type)
{
/* Now convert sense value */
switch(type & IRQ_TYPE_SENSE_MASK) {
Hi all,
In arch/powerpc/sysdev/mpic.c , it looks like IRQ_TYPE_EDGE_BOTH is
handled the same way as IRQ_TYPE_EDGE_FALLING:
static unsigned int mpic_type_to_vecpri(struct mpic *mpic, unsigned int type)
{
/* Now convert sense value */
switch(type & IRQ_TYPE_SENSE_MASK) {
Signed-off-by: Gregory Fong
Cc: Florian Fainelli
Cc: Jonas Gorski
Cc: Joe Perches
---
v1->v2: Address Joe's comments on v1 (see
http://lkml.iu.edu/hypermail/linux/kernel/1508.3/03472.html )
arch/mips/bcm63xx/boards/board_bcm963xx.c | 14 +++---
arch/mips/bcm63xx/cp
Signed-off-by: Gregory Fong <gregory.0...@gmail.com>
Cc: Florian Fainelli <f.faine...@gmail.com>
Cc: Jonas Gorski <j...@openwrt.org>
Cc: Joe Perches <j...@perches.com>
---
v1->v2: Address Joe's comments on v1 (see
http://lkml.iu.edu/hypermail/linux/kernel/1508.3/03472
Signed-off-by: Gregory Fong
Cc: Florian Fainelli
Cc: Jonas Gorski
---
arch/mips/bcm63xx/boards/board_bcm963xx.c | 11 ++-
arch/mips/bcm63xx/cpu.c | 6 +++---
arch/mips/bcm63xx/dev-pcmcia.c| 2 +-
arch/mips/bcm63xx/irq.c | 2 +-
arch
Signed-off-by: Gregory Fong gregory.0...@gmail.com
Cc: Florian Fainelli f.faine...@gmail.com
Cc: Jonas Gorski j...@openwrt.org
---
arch/mips/bcm63xx/boards/board_bcm963xx.c | 11 ++-
arch/mips/bcm63xx/cpu.c | 6 +++---
arch/mips/bcm63xx/dev-pcmcia.c| 2
-00130-g7ddab73-dirty
After, starting from clean index:
$ ls -l Kbuild
-rw-rw-r-- 1 gregory gregory 2622 Aug 10 12:38 Kbuild
$ chmod u+w Kbuild # intentional no-op that updates ctime
$ CONFIG_LOCALVERSION_AUTO=y /bin/sh scripts/setlocalversion $PWD
-00131-gfa3477d
Signed-off-by: Greg
On Thu, Aug 13, 2015 at 4:11 AM, Linus Walleij wrote:
> On Sat, Aug 1, 2015 at 3:17 AM, Gregory Fong wrote:
>
>> Uses the gpiolib irqchip helpers. For this to work, the irq setup
>> function is called once per bank instead of once per device. Note
>> that all known
On Thu, Aug 13, 2015 at 4:11 AM, Linus Walleij linus.wall...@linaro.org wrote:
On Sat, Aug 1, 2015 at 3:17 AM, Gregory Fong gregory.0...@gmail.com wrote:
Uses the gpiolib irqchip helpers. For this to work, the irq setup
function is called once per bank instead of once per device. Note
-g7ddab73-dirty
After, starting from clean index:
$ ls -l Kbuild
-rw-rw-r-- 1 gregory gregory 2622 Aug 10 12:38 Kbuild
$ chmod u+w Kbuild # intentional no-op that updates ctime
$ CONFIG_LOCALVERSION_AUTO=y /bin/sh scripts/setlocalversion $PWD
-00131-gfa3477d
Signed-off-by: Gregory Fong
to mm/cma.c or make it inline here, and it's
simple enough for the latter to make sense.
Signed-off-by: Gregory Fong
---
mm/cma.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/cma.h b/mm/cma.h
index 1132d73..17c75a4 100644
--- a/mm/cma.h
+++ b/mm/cma.h
@@ -16,7 +16,7
to mm/cma.c or make it inline here, and it's
simple enough for the latter to make sense.
Signed-off-by: Gregory Fong gregory.0...@gmail.com
---
mm/cma.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/cma.h b/mm/cma.h
index 1132d73..17c75a4 100644
--- a/mm/cma.h
+++ b/mm
Broadcom STB (BRCMSTB) has some 64-bit capable DMA and therefore needs
dma_addr_t to be a 64-bit size. One user is the Broadcom SATA3 AHCI
controller driver.
Signed-off-by: Gregory Fong
---
arch/arm/mach-bcm/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-bcm/Kconfig
Broadcom STB (BRCMSTB) has some 64-bit capable DMA and therefore needs
dma_addr_t to be a 64-bit size. One user is the Broadcom SATA3 AHCI
controller driver.
Signed-off-by: Gregory Fong gregory.0...@gmail.com
---
arch/arm/mach-bcm/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch
Commit 04fcab32d3fa1d3f6afe97e0ab431c5572e07a2c ("ARM: 8111/1: Enable
erratum 798181 for Broadcom Brahma-B15") enables this erratum for
affected Broadcom Brahma-B15 CPUs when CONFIG_ARM_ERRATA_798181=y.
Let's make sure that config option is actually set.
Signed-off-by: Gregory Fong
---
Commit 04fcab32d3fa1d3f6afe97e0ab431c5572e07a2c (ARM: 8111/1: Enable
erratum 798181 for Broadcom Brahma-B15) enables this erratum for
affected Broadcom Brahma-B15 CPUs when CONFIG_ARM_ERRATA_798181=y.
Let's make sure that config option is actually set.
Signed-off-by: Gregory Fong gregory.0
iolib-of.c:
- of_gpiochip_find_and_xlate()
- of_get_named_gpiod_flags()
drivers/gpio/gpiolib.c:
- gpiochip_find()
Signed-off-by: Gregory Fong
---
v4:
- when checking parent_irq, use <= 0 or > 0 since 0 is NO_IRQ.
drivers/gpio/Kconfig| 1 +
drivers/gpio/gpio
gpio-cells, #interrupt-cells, and brcm,gpio-bank-widths from
hex to dec
- use phandles
Reviewed-by: Brian Norris
Acked-by: Florian Fainelli
Signed-off-by: Gregory Fong
---
v4: no changes from v3
.../devicetree/bindings/gpio/brcm,brcmstb-gpio.txt | 35 +-
1 file changed, 28 insert
/brcmstb-gpio/f04172c0.gpio/power/wakeup
enabled
# cat /sys/bus/platform/drivers/brcmstb-gpio/f04172c0.gpio/power/wakeup_count
1
Signed-off-by: Gregory Fong
---
v4: rename __brcmstb_gpio_irq_set_wake() to brcmstb_gpio_priv_set_wake().
drivers/gpio/gpio-brcmstb.c | 56
Need the aon_pm_l2_intc and irq0_aon_intc descriptions, so included
those as well.
Signed-off-by: Gregory Fong
---
New in v4.
arch/arm/boot/dts/bcm7445.dtsi | 50 ++
1 file changed, 50 insertions(+)
diff --git a/arch/arm/boot/dts/bcm7445.dtsi b/arch/arm
(merged from v2 to GPIO tree)
- ARM Kconfig changes (merged from v2 to arm-soc tree)
- fix for null ptr deref in driver remove (merged from v3)
Previous versions:
v1: https://lkml.org/lkml/2015/5/6/199
v2: https://lkml.org/lkml/2015/5/28/853
v3: https://lkml.org/lkml/2015/6/17/960
Gregory Fong (4
(merged from v2 to GPIO tree)
- ARM Kconfig changes (merged from v2 to arm-soc tree)
- fix for null ptr deref in driver remove (merged from v3)
Previous versions:
v1: https://lkml.org/lkml/2015/5/6/199
v2: https://lkml.org/lkml/2015/5/28/853
v3: https://lkml.org/lkml/2015/6/17/960
Gregory Fong (4
:
- of_gpiochip_find_and_xlate()
- of_get_named_gpiod_flags()
drivers/gpio/gpiolib.c:
- gpiochip_find()
Signed-off-by: Gregory Fong gregory.0...@gmail.com
---
v4:
- when checking parent_irq, use = 0 or 0 since 0 is NO_IRQ.
drivers/gpio/Kconfig| 1 +
drivers/gpio/gpio-brcmstb.c | 262
, #interrupt-cells, and brcm,gpio-bank-widths from
hex to dec
- use phandles
Reviewed-by: Brian Norris computersforpe...@gmail.com
Acked-by: Florian Fainelli f.faine...@gmail.com
Signed-off-by: Gregory Fong gregory.0...@gmail.com
---
v4: no changes from v3
.../devicetree/bindings/gpio/brcm,brcmstb
/brcmstb-gpio/f04172c0.gpio/power/wakeup
enabled
# cat /sys/bus/platform/drivers/brcmstb-gpio/f04172c0.gpio/power/wakeup_count
1
Signed-off-by: Gregory Fong gregory.0...@gmail.com
---
v4: rename __brcmstb_gpio_irq_set_wake() to brcmstb_gpio_priv_set_wake().
drivers/gpio/gpio-brcmstb.c | 56
Need the aon_pm_l2_intc and irq0_aon_intc descriptions, so included
those as well.
Signed-off-by: Gregory Fong gregory.0...@gmail.com
---
New in v4.
arch/arm/boot/dts/bcm7445.dtsi | 50 ++
1 file changed, 50 insertions(+)
diff --git a/arch/arm/boot/dts
urce this is coming
> from. To simplify things, associate an unique structure per parent interrupt
> handler to avoid multiplying the number of lookups.
>
> Fixes: a5042de2688d ("irqchip: bcm7120-l2: Add Broadcom BCM7120-style Level 2
> interrupt controller")
> Signed-off-by
an unique structure per parent interrupt
handler to avoid multiplying the number of lookups.
Fixes: a5042de2688d (irqchip: bcm7120-l2: Add Broadcom BCM7120-style Level 2
interrupt controller)
Signed-off-by: Florian Fainelli f.faine...@gmail.com
Acked-by: Gregory Fong gregory.0...@gmail.com
On Mon, Jul 13, 2015 at 6:03 AM, Linus Walleij wrote:
> On Thu, Jun 18, 2015 at 3:00 AM, Gregory Fong wrote:
>
>> For wake from S5, we need to:
>> - register a reboot handler
>> - set wakeup capability before requesting IRQ so wakeup count is
>> incremented
>
On Mon, Jul 13, 2015 at 5:58 AM, Linus Walleij wrote:
> On Thu, Jun 18, 2015 at 3:00 AM, Gregory Fong wrote:
>
>> Uses the gpiolib irqchip helpers. For this to work, the irq setup
>> function is called once per bank instead of once per device. Note
>> that all known
On Mon, Jul 13, 2015 at 5:58 AM, Linus Walleij linus.wall...@linaro.org wrote:
On Thu, Jun 18, 2015 at 3:00 AM, Gregory Fong gregory.0...@gmail.com wrote:
Uses the gpiolib irqchip helpers. For this to work, the irq setup
function is called once per bank instead of once per device. Note
On Mon, Jul 13, 2015 at 6:03 AM, Linus Walleij linus.wall...@linaro.org wrote:
On Thu, Jun 18, 2015 at 3:00 AM, Gregory Fong gregory.0...@gmail.com wrote:
For wake from S5, we need to:
- register a reboot handler
- set wakeup capability before requesting IRQ so wakeup count is
incremented
On Thu, Jun 18, 2015 at 5:11 PM, Brian Norris
wrote:
> Hi,
>
> This patch set introduces system suspend/resume support for Broadcom STB SoCs.
> There are two suspend modes (S2 and S3) as well as a related low-power
> shutdown
> mode (S5).
>
> Along with the core PM support, include a driver for
evice *pdev)
> +{
> [...]
> + /*
> +* Set wakeup capability before requesting wakeup interrupt, so we can
> +* process boot-time "wakeups" (e.g., from S5 soft-off)
> +*/
> + device_set_wakeup_capable(dev, true);
> + device_wakeu
On Thu, Jun 18, 2015 at 5:11 PM, Brian Norris
wrote:
> Signed-off-by: Brian Norris
Acked-by: Gregory Fong
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.
Norris
Acked-by: Gregory Fong
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Norris computersforpe...@gmail.com
Acked-by: Gregory Fong gregory.0...@gmail.com
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ
On Thu, Jun 18, 2015 at 5:11 PM, Brian Norris
computersforpe...@gmail.com wrote:
Hi,
This patch set introduces system suspend/resume support for Broadcom STB SoCs.
There are two suspend modes (S2 and S3) as well as a related low-power
shutdown
mode (S5).
Along with the core PM support,
On Thu, Jun 18, 2015 at 5:11 PM, Brian Norris
computersforpe...@gmail.com wrote:
Signed-off-by: Brian Norris computersforpe...@gmail.com
Acked-by: Gregory Fong gregory.0...@gmail.com
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord
this cast.
[snip]
Acked-by: Gregory Fong gregory.0...@gmail.com
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org
/brcmstb-gpio/f04172c0.gpio/power/wakeup
enabled
# cat /sys/bus/platform/drivers/brcmstb-gpio/f04172c0.gpio/power/wakeup_count
1
Signed-off-by: Gregory Fong
---
New in v3.
drivers/gpio/gpio-brcmstb.c | 56 -
1 file changed, 50 insertions(+), 6
iolib-of.c:
- of_gpiochip_find_and_xlate()
- of_get_named_gpiod_flags()
drivers/gpio/gpiolib.c:
- gpiochip_find()
Signed-off-by: Gregory Fong
---
v3:
- combine commits to add interrupt support and allow GPIOs to be wakeup sources
- change to use the gpiolib irqchip helpers, reducing unnecessary code
d
gpio-cells, #interrupt-cells, and brcm,gpio-bank-widths from
hex to dec
- use phandles
Reviewed-by: Brian Norris
Signed-off-by: Gregory Fong
---
v3: Update per Brian's suggestions described in above message.
.../devicetree/bindings/gpio/brcm,brcmstb-gpio.txt | 35 +-
1 file c
list head right after allocating the
priv struct to both avoid the null pointer dereference that could
occur today. To guard against potential future changes, check for
null pointer in remove.
Reported-by: Tim Ross
Signed-off-by: Gregory Fong
---
New in v3.
drivers/gpio/gpio-brcmstb.c | 14
v1 to GPIO tree)
- Initial GPIO support w/o interrupts (merged from v2 to GPIO tree)
- ARM Kconfig changes (merged from v2 to arm-soc tree)
Previous revisions:
v1: https://lkml.org/lkml/2015/5/6/199
v2: https://lkml.org/lkml/2015/5/28/853
Gregory Fong (4):
gpio: brcmstb: fix null ptr dereference
list head right after allocating the
priv struct to both avoid the null pointer dereference that could
occur today. To guard against potential future changes, check for
null pointer in remove.
Reported-by: Tim Ross tr...@broadcom.com
Signed-off-by: Gregory Fong gregory.0...@gmail.com
---
New in v3
1 - 100 of 226 matches
Mail list logo