31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 3029 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

11 Aug, 2015

2 commits

  • If we use the dev_get_platdata, pdata can be NULL in DT environments.
    Actually, NULL pointer exception is occurs with error messages like this:

    [ 1.226583] Unable to handle kernel NULL pointer dereference at virtual address 00000044
    [ 1.467910] [] (wm8994_irq_init) from [] (wm8994_i2c_probe+0x684/0x858)
    [ 1.476241] [] (wm8994_i2c_probe) from [] (i2c_device_probe+0x11c/0x17c)

    In wm8994-core, we already checked whether platform data is NULL and set the
    wm8994->pdata to platform data if platform data is not NULL.
    So, we can use wm8994->pdata instead of platform data.

    Signed-off-by: Inha Song
    Acked-by: Charles Keepax
    Signed-off-by: Lee Jones

    Inha Song
     
  • set_irq_flags is ARM specific with custom flags which have genirq
    equivalents. Convert drivers to use the genirq interfaces directly, so we
    can kill off set_irq_flags. The translation of flags is as follows:

    IRQF_VALID -> !IRQ_NOREQUEST
    IRQF_PROBE -> !IRQ_NOPROBE
    IRQF_NOAUTOEN -> IRQ_NOAUTOEN

    For IRQs managed by an irqdomain, the irqdomain core code handles clearing
    and setting IRQ_NOREQUEST already, so there is no need to do this in
    .map() functions and we can simply remove the set_irq_flags calls. Some
    users also modify IRQ_NOPROBE and this has been maintained although it
    is not clear that is really needed. There appears to be a great deal of
    blind copy and paste of this code.

    Signed-off-by: Rob Herring
    Acked-by: Linus Walleij
    Signed-off-by: Lee Jones

    Rob Herring
     

22 Jun, 2015

1 commit


26 Sep, 2014

1 commit


31 Jul, 2013

1 commit


12 Jun, 2013

1 commit


08 Aug, 2012

1 commit


09 Jul, 2012

1 commit


16 May, 2012

1 commit

  • Take advantage of the new regmap irq_domain support to dynamically
    allocate interrupts, using regmap_irq_get_virq() rather than irq_base
    to look up the interrupts. This means that most users should not need
    to specify an irq_base at all.

    Signed-off-by: Mark Brown
    Acked-by: Samuel Ortiz

    Mark Brown
     

13 Dec, 2011

2 commits


01 Aug, 2011

1 commit


27 Mar, 2011

1 commit


23 Mar, 2011

2 commits

  • For consistency with the write path push byte swaps of the WM8994 register
    data out of the bulk read data path into the per-register APIs. The only
    user of the bulk register read is the interrupt code which is updated to
    do the swaps itself part of this patch.

    Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     
  • The WM8994/58 interrupt masking support is a much better match for the genirq
    enable and disable operations than for the mask and unmask operations. The
    latter are intended to used during interrupt handling for temporary changes
    which isn't really practical on a slow bus. Convert the operations over to
    match this.

    Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     

14 Jan, 2011

2 commits


06 Apr, 2010

1 commit

  • The WM8994 has an interrupt controller which supports interrupts for
    both CODEC and GPIO portions of the chip. Support this using genirq,
    while allowing for systems that do not have an interrupt hooked up.

    Wrapper functions are provided for the IRQ request and free to simplify
    the code in consumer drivers when handling cases where IRQs are not
    set up.

    Signed-off-by: Mark Brown
    Acked-by: Samuel Ortiz

    Mark Brown