22 Nov, 2011

1 commit

  • Some drivers set PF_NOFREEZE in their kthread functions which is
    completely unnecessary and racy - some part of freezer code doesn't
    consider cases where PF_NOFREEZE is set asynchronous to freezer
    operations.

    In general, there's no reason to allow setting PF_NOFREEZE explicitly.
    Remove them and change the documentation to note that setting
    PF_NOFREEZE directly isn't allowed.

    -v2: Dropped change to twl4030-irq.c as it no longer uses PF_NOFREEZE.

    Signed-off-by: Tejun Heo
    Acked-by: "Gustavo F. Padovan"
    Acked-by: Samuel Ortiz
    Cc: Marcel Holtmann
    Cc: wwang

    Tejun Heo
     

07 Nov, 2011

1 commit

  • * 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: (230 commits)
    Revert "tracing: Include module.h in define_trace.h"
    irq: don't put module.h into irq.h for tracking irqgen modules.
    bluetooth: macroize two small inlines to avoid module.h
    ip_vs.h: fix implicit use of module_get/module_put from module.h
    nf_conntrack.h: fix up fallout from implicit moduleparam.h presence
    include: replace linux/module.h with "struct module" wherever possible
    include: convert various register fcns to macros to avoid include chaining
    crypto.h: remove unused crypto_tfm_alg_modname() inline
    uwb.h: fix implicit use of asm/page.h for PAGE_SIZE
    pm_runtime.h: explicitly requires notifier.h
    linux/dmaengine.h: fix implicit use of bitmap.h and asm/page.h
    miscdevice.h: fix up implicit use of lists and types
    stop_machine.h: fix implicit use of smp.h for smp_processor_id
    of: fix implicit use of errno.h in include/linux/of.h
    of_platform.h: delete needless include
    acpi: remove module.h include from platform/aclinux.h
    miscdevice.h: delete unnecessary inclusion of module.h
    device_cgroup.h: delete needless include
    net: sch_generic remove redundant use of
    net: inet_timewait_sock doesnt need
    ...

    Fix up trivial conflicts (other header files, and removal of the ab3550 mfd driver) in
    - drivers/media/dvb/frontends/dibx000_common.c
    - drivers/media/video/{mt9m111.c,ov6650.c}
    - drivers/mfd/ab3550-core.c
    - include/linux/dmaengine.h

    Linus Torvalds
     

01 Nov, 2011

1 commit


24 Oct, 2011

5 commits

  • Module IRQs may still be disabled by DPM at the time the TWL6030
    ISR runs, causing handle_simple_irq() to silently do nothing.
    This may result in missing TWL RTC alarm wakeups, for example,
    since the RTC child module ISR is not called to ack the IRQ.

    Disable the TWL6030 IRQ during suspend, enable it at DPM resume
    time, at which time the child module IRQs will be re-enabled.

    Signed-off-by: Todd Poynor
    Acked-by: Santosh Shilimkar
    Signed-off-by: Samuel Ortiz

    Todd Poynor
     
  • LOCKDEP explicitly sets all irq_desc locks as a single lock-class,
    causing "possible recursive locking detected" when the TWL RTC
    driver calls through enable_irq_wake to twl6030_irq_set_wake,
    which recursively calls irq_set_irq_wake. Although the
    irq_desc and lock are different, LOCKDEP treats these as
    equivalent, presumably due to problems that can be incurred
    when locking more than one irq_desc, so best to avoid this.

    Suspend/resume actions implemented as PM notifiers to avoid
    touch the TWL core for this.

    Signed-off-by: Todd Poynor
    Acked-by: Santosh Shilimkar
    Signed-off-by: Samuel Ortiz

    Todd Poynor
     
  • This flag is a NOOP and can be removed now.

    Signed-off-by: Yong Zhang
    Signed-off-by: Samuel Ortiz

    Yong Zhang
     
  • TWL6030 devices have an interrupt line which is connected to
    application processor like OMAP. These devices support multiple features
    such as MMC card detect, USB cable detect, RTC interrupt, etc. that must
    wake up the application processor.

    With this change, TWL6030 client drivers can make use of
    irq_wake() if the wakeup is desirable on it's irq events.

    Signed-off-by: Santosh Shilimkar
    Signed-off-by: Samuel Ortiz

    Santosh Shilimkar
     
  • I was trying to fix the error handling part because in the case of
    request_irq failure, it should call kthread_stop instead of free_irq.
    But it seems more reasonable to do request_irq before calling kthread_run.

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

    Axel Lin
     

27 May, 2011

1 commit

  • The charger fault IRQs from the twl will in future patches be handled
    by a seperate IRQ handler in the charger driver than the general charger
    IRQ. Give them different IRQ numbers now to allow the charger driver to
    be merged in the future.

    Signed-off-by: Graeme Gregory
    Signed-off-by: Samuel Ortiz

    Graeme Gregory
     

31 Mar, 2011

1 commit


27 Mar, 2011

2 commits


14 Jan, 2011

1 commit


10 Dec, 2010

1 commit

  • With TWL6030-usb, VBUS SESS_VLD and SESS_END events are not generated
    as expected. When these interrupts are enabled, charger VBUS detection
    interrupt does not get generated. So USBOTG has to be dependent on charger
    VBUS interrupts.
    So added one bit for USBOTG and changed the handler to call the
    USBOTG handler whenever there is a charger VBUS interrpt.

    VBUS SESS_VLD and SESS_END event generation issue is under debug with
    HW team. This fix might not be required once after fixing the issue.

    Signed-off-by: Balaji TK
    Signed-off-by: Hema HK
    Cc: Samuel Ortiz
    Signed-off-by: Felipe Balbi

    Hema HK
     

29 Oct, 2010

2 commits

  • Fixes following sparse warnings for twl4030 and twl6030 irq files.

    drivers/mfd/twl4030-irq.c:783:5: warning: symbol 'twl4030_init_irq' was not
    declared. Should it be static?
    drivers/mfd/twl4030-irq.c:863:5: warning: symbol 'twl4030_exit_irq' was not
    declared. Should it be static?
    drivers/mfd/twl4030-irq.c:873:5: warning: symbol 'twl4030_init_chip_irq' was
    not declared. Should it be static?

    drivers/mfd/twl6030-irq.c:226:5: warning: symbol 'twl6030_init_irq' was not
    declared. Should it be static?
    drivers/mfd/twl6030-irq.c:290:5: warning: symbol 'twl6030_exit_irq' was not
    declared. Should it be static?

    Signed-off-by: G, Manjunath Kondaiah
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: Tony Lindgren
    Cc: Nishanth Menon
    Signed-off-by: Samuel Ortiz

    G, Manjunath Kondaiah
     
  • Adding card detect callback function and card detect configuration
    function for MMC1 Controller on OMAP4.

    Card detect configuration function does initial configuration of the
    MMC Control & PullUp-PullDown registers of Phoenix.

    For MMC1 Controller, card detect interrupt source is
    twl6030 which is non-gpio. The card detect call back function provides
    card present/absent status by reading MMC Control register present
    on twl6030.

    Since OMAP4 doesn't use any GPIO line as used in OMAP3 for card detect,
    the suspend/resume initialization which was done in omap_hsmmc_gpio_init
    previously is moved to the probe thus making it generic for both OMAP3 &
    OMAP4.

    Cc: Tony Lindgren
    Cc: Andrew Morton
    Cc: Madhusudhan Chikkature
    Cc: Adrian Hunter
    Signed-off-by: Kishore Kadiyala
    Signed-off-by: Samuel Ortiz

    kishore kadiyala
     

14 Dec, 2009

1 commit

  • This patch adds support for phoenix interrupt framework. New iInterrupt
    status register A, B, C are introduced in Phoenix and are cleared on write.
    Due to the differences in interrupt handling with respect to TWL4030,
    twl6030-irq.c is created for TWL6030 PMIC

    Signed-off-by: Rajendra Nayak
    Signed-off-by: Balaji T K
    Signed-off-by: Santosh Shilimkar
    Reviewed-by: Tony Lindgren
    Signed-off-by: Samuel Ortiz

    Balaji T K