04 Oct, 2016

1 commit


11 Aug, 2015

3 commits

  • It's pretty silly to do

    irq_data *d = irq_get_irq_data(irq_data->irq);

    because that results in d = irq_data, but goes through a lookup of the
    irq_data. Use irq_data directly.

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Lee Jones

    Thomas Gleixner
     
  • Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we
    already have a pointer to corresponding irq_desc.

    Do the same change to avoid the pattern "irq_get_chip_data(data->irq)".

    Signed-off-by: Jiang Liu
    Signed-off-by: Thomas Gleixner
    Signed-off-by: Lee Jones

    Jiang Liu
     
  • 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


09 Jul, 2012

1 commit

  • Add irq domain support for max8997 interrupts. The reverse mapping method
    used is linear mapping since the sub-drivers of max8997 such as regulator
    and charger drivers can use the max8997 irq_domain to get the linux irq
    number for max8997 interrupts. All uses of irq_base in platform data and
    max8997 driver private data are removed.

    Reviwed-by: Mark Brown
    Acked-by: MyungJoo Ham
    Acked-by: Grant Likely
    Signed-off-by: Thomas Abraham
    Signed-off-by: Chanwoo Choi
    Signed-off-by: Kyungmin Park
    Signed-off-by: Samuel Ortiz

    Thomas Abraham
     

01 Aug, 2011

1 commit

  • We either hit one of the case's or the default in the switch statement
    in get_i2c(), so the 'return ERR_PTR(-EINVAL);' at the end of the
    function is just dead code - remove it.

    Signed-off-by: Jesper Juhl
    Acked-by: MyungJoo Ham
    Signed-off-by: Samuel Ortiz

    Jesper Juhl
     

27 Mar, 2011

2 commits

  • Signed-off-by: Samuel Ortiz

    Samuel Ortiz
     
  • This patch enables IRQ handling for MAX8997/8966 chips.

    Please note that Fuel-Gauge-related IRQs are not implemented in this
    initial release. The fuel gauge module in MAX8997 is identical to
    MAX17042, which is already in Linux kernel. In order to use the
    already-existing MAX17042 driver for fuel gauge module in MAX8997, the
    main interrupt handler of MAX8997 should relay related interrupts to
    MAX17042 driver. However, in order to do this, we need to modify
    MAX17042 driver as well because MAX17042 driver does not have any
    interrupt handlers for now. We are not going to implement this in this
    initial release as it is not crucial in basic operations of MAX8997.

    Signed-off-by: MyungJoo Ham
    Signed-off-by: Kyungmin Park
    Signed-off-by: Samuel Ortiz

    MyungJoo Ham