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 this program is distributed in the
    hope that it will be useful but without any warranty without even
    the implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details you
    should have received a copy of the gnu general public license along
    with this program if not write to the free software foundation inc
    59 temple place suite 330 boston ma 02111 1307 usa

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

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

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

    Thomas Gleixner
     

27 Jul, 2018

1 commit

  • On ams AS3722, power on when AC OK is enabled by default.
    Making this option as disable by default and enable only
    when platform need this explicitly.

    Signed-off-by: Laxman Dewangan
    Reviewed-by: Bibek Basu
    Tested-by: Bibek Basu
    Signed-off-by: Marcel Ziswiler
    Acked-by: Rob Herring
    Signed-off-by: Lee Jones

    Marcel Ziswiler
     

09 May, 2016

1 commit


11 Jan, 2016

1 commit

  • The newly introduced as3722_i2c_suspend/resume functions are built
    unconditionally, but only used when power management is enabled,
    so we get a warning otherwise:

    drivers/mfd/as3722.c:427:12: warning: 'as3722_i2c_suspend' defined but not used [-Wunused-function]
    drivers/mfd/as3722.c:438:12: warning: 'as3722_i2c_resume' defined but not used [-Wunused-function]

    This marks them both as __maybe_unused, which avoids an ugly #ifdef
    and gives us best compile-time coverage. When they are unused, the
    compiler will silently drop the functions from its output.

    Signed-off-by: Arnd Bergmann
    Fixes: 35deff7eb212 ("mfd: as3722: Handle interrupts on suspend")
    Signed-off-by: Lee Jones

    Arnd Bergmann
     

04 Dec, 2015

1 commit

  • The as3722 device is registered as an irqchip and the as3722-rtc interrupt
    is one of it's interrupt sources. When using the as3722-rtc as a wake-up
    device from suspend, the following is seen:

    PM: Syncing filesystems ... done.
    Freezing user space processes ... (elapsed 0.001 seconds) done.
    Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
    Suspending console(s) (use no_console_suspend to debug)
    PM: suspend of devices complete after 161.119 msecs
    PM: late suspend of devices complete after 1.048 msecs
    PM: noirq suspend of devices complete after 0.756 msecs
    Disabling non-boot CPUs ...
    CPU1: shutdown
    CPU2: shutdown
    CPU3: shutdown
    Entering suspend state LP1
    Enabling non-boot CPUs ...
    CPU1 is up
    CPU2 is up
    CPU3 is up
    PM: noirq resume of devices complete after 0.487 msecs
    as3722 4-0040: Failed to read IRQ status: -16
    as3722 4-0040: Failed to read IRQ status: -16
    as3722 4-0040: Failed to read IRQ status: -16
    as3722 4-0040: Failed to read IRQ status: -16
    ...

    The reason why the as3722 interrupt status cannot be read is because the
    as3722 interrupt is not masked during suspend and when the as3722-rtc
    interrupt occurs, to wake-up the device, the interrupt is seen before the
    i2c controller has been resumed in order to read the as3722 interrupt
    status.

    The as3722-rtc driver sets it's interrupt as a wake-up source during
    suspend, which gets propagated to the parent as3722 interrupt. However,
    the as3722-rtc driver cannot disable it's interrupt during suspend
    otherwise we would never be woken up and so the as3722 must disable it's
    interrupt instead.

    Fix this by disabling the as3722 interrupt during suspend. To ensure that
    a wake-up event from the as3722 is not missing, enable the as3722 interrupt
    as a wake-up source before disabling the interrupt on entering suspend.

    Signed-off-by: Jon Hunter
    Signed-off-by: Lee Jones

    Jon Hunter
     

11 Aug, 2015

1 commit


19 Mar, 2014

1 commit

  • The FUSE7_REG register is not currently marked readable. This causes
    as3722_sd0_is_low_voltage() to emit an error during boot, and assume
    the range of the SD0 regulator:

    as3722-regulator as3722-regulator: Reg 0xa7 read failed: -5

    Fixes: d4807ad2c4c0 ("regmap: Check readable regs in _regmap_read")
    [exposed the bug, by checking for readability]
    Fixes: 762a8ee80897 ("regulator: as3722: detect SD0 low-voltage mode")
    [left out this register from the readable list]

    Signed-off-by: Stephen Warren
    Signed-off-by: Lee Jones

    Stephen Warren
     

06 Jan, 2014

2 commits


26 Oct, 2013

1 commit


23 Oct, 2013

1 commit

  • The ams AS3722 is a compact system PMU suitable for mobile phones,
    tablets etc. It has 4 DC/DC step-down regulators, 3 DC/DC step-down
    controller, 11 LDOs, RTC, automatic battery, temperature and
    over-current monitoring, 8 GPIOs, ADC and a watchdog.

    Add MFD core driver for the AS3722 to support core functionality.

    Acked-by: Stephen Warren
    Signed-off-by: Laxman Dewangan
    Signed-off-by: Florian Lobmaier
    Signed-off-by: Lee Jones

    Laxman Dewangan