30 Nov, 2012

7 commits


27 Nov, 2012

2 commits

  • This fixes below build error:

    drivers/built-in.o: In function `tps65090_i2c_probe':
    drivers/mfd/tps65090.c:180: undefined reference to `regmap_add_irq_chip'
    drivers/mfd/tps65090.c:190: undefined reference to `regmap_irq_chip_get_base'
    drivers/mfd/tps65090.c:203: undefined reference to `regmap_del_irq_chip'
    drivers/built-in.o: In function `tps65090_i2c_remove':
    drivers/mfd/tps65090.c:213: undefined reference to `regmap_del_irq_chip'
    make: *** [vmlinux] Error 1

    Signed-off-by: Axel Lin
    Signed-off-by: Samuel Ortiz

    Axel Lin
     
  • Fix build errors when CONFIG_OF is not enabled by including
    (needs to be added in any case).
    An alternative fix could be to make the driver depend on OF.

    drivers/mfd/stmpe.c:1025:2: error: implicit declaration of function 'of_property_read_u32'
    drivers/mfd/stmpe.c:1030:2: error: implicit declaration of function 'for_each_child_of_node'
    drivers/mfd/stmpe.c:1030:36: error: expected ';' before '{' token

    Signed-off-by: Randy Dunlap
    Acked-by: Linus Walleij
    Signed-off-by: Samuel Ortiz

    Randy Dunlap
     

26 Nov, 2012

7 commits

  • Use devm_kzalloc and remove the error path free'ing and unload free'ing
    as the devm resource functions free them.

    Signed-off-by: Devendra Naga
    Signed-off-by: Samuel Ortiz

    Devendra Naga
     
  • Currently, few fields in stmpe_i2c_driver are initialized as:
    .driver.owner = THIS_MODULE,

    Group them under {}, like:
    .driver = {
    .owner = THIS_MODULE,
    ...
    },

    Signed-off-by: Viresh Kumar
    Signed-off-by: Samuel Ortiz

    Viresh Kumar
     
  • Historically, a driver would have to decide whether it required
    a Linear or Legacy IRQ domain when registering one. This can end
    up as quite a lot of code. A new Simple call now exists which
    simplifies this process. Let's make use of it here.

    Reviewed-by: Viresh Kumar
    Signed-off-by: Lee Jones
    Signed-off-by: Samuel Ortiz

    Lee Jones
     
  • I got below build warning while compiling this driver.
    It's obviously RC5T583_MAX_INTERRUPT_MASK_REGS is 9 but irq_en_add
    array only has 8 elements.

    CC drivers/mfd/rc5t583-irq.o
    drivers/mfd/rc5t583-irq.c: In function 'rc5t583_irq_sync_unlock':
    drivers/mfd/rc5t583-irq.c:227: warning: array subscript is above array bounds
    drivers/mfd/rc5t583-irq.c: In function 'rc5t583_irq_init':
    drivers/mfd/rc5t583-irq.c:349: warning: array subscript is above array bounds

    Since the number of interrupt enable registers is 8, this patch adds
    define for RC5T583_MAX_INTERRUPT_EN_REGS to fix this bug.

    Signed-off-by: Axel Lin
    Acked-by: Laxman Dewangan
    Signed-off-by: Samuel Ortiz

    Axel Lin
     
  • The query for the viperboard version was done with memory buffer
    on the stack but usb transfers need dma capable memory buffer.
    This is fixed now.

    Signed-off-by: Lars Poeschel
    Signed-off-by: Samuel Ortiz

    Lars Poeschel
     
  • Pass on the correct error message from platform_get_irq()
    instead of hard coding it to "EINVAL".

    Also change label from "err" to "ret" for better
    readability and update the same in error path.

    Signed-off-by: Patil, Rachna
    Signed-off-by: Samuel Ortiz

    Patil, Rachna
     
  • reg_offset is offset of the status/mask registers. Now, since status_base
    and mask_base are pointing to corresponding first registers, reg_offset
    should start from 0 otheriwse regmap_add_irq_chip will fail during probe.

    Signed-off-by: Inderpal Singh
    Signed-off-by: Samuel Ortiz

    Inderpal Singh
     

23 Nov, 2012

4 commits


22 Nov, 2012

2 commits

  • At every boot of an (outdated) laptop lpc_ich prints an error:
    lpc_ich 0000:00:1f.0: I/O space for GPIO uninitialized

    But if one looks at lpc_ich's probe function one notices that the code
    only cares if both lpc_ich_init_wdt() and lpc_ich_init_gpio() fail to
    add any cells. So stop treating the failure to add a single cell as an
    error. Those messages can be printed at notice level. And then only warn
    if no cells were added.

    Signed-off-by: Paul Bolle
    Signed-off-by: Samuel Ortiz

    Paul Bolle
     
  • The older southbridges supported by the lpc_ich driver do not
    provide memory-mapped space of the root complex. The driver
    correctly avoids computing the iomem address in this case, yet
    submits a zeroed resource request anyway (via mfd_add_devices()).

    Remove the iomem resource from the resource array submitted to the
    mfd core for the older southbridges.

    Acked-by: Aaron Sierra
    Cc: Peter Tyser
    Signed-off-by: Peter Hurley
    Signed-off-by: Samuel Ortiz

    Peter Hurley
     

21 Nov, 2012

18 commits