31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    license terms gnu general public license gpl version 2

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

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

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

    Thomas Gleixner
     

13 Feb, 2017

1 commit

  • In the current boot, clients making use of the AB8500 sysctrl
    may be probed before the ab8500-sysctrl driver. This gives them
    -EINVAL, but should rather give -EPROBE_DEFER.

    Before this, the abx500 clock driver didn't probe properly,
    and as a result the codec driver in turn using the clocks did
    not probe properly. After this patch, everything probes
    properly.

    Also add OF compatible-string probing. This driver is all
    device tree, so let's just make a drive-by-fix of that as
    well.

    Signed-off-by: Linus Walleij
    Signed-off-by: Lee Jones

    Linus Walleij
     

29 Nov, 2016

1 commit

  • The Kconfig currently controlling compilation of this code is:

    drivers/mfd/Kconfig:config AB8500_CORE
    drivers/mfd/Kconfig: bool "ST-Ericsson AB8500 Mixed Signal Power Management chip"

    ...meaning that it currently is not being built as a module by anyone.

    Lets remove the couple traces of modular infrastructure use, so that
    when reading the driver there is no doubt it is builtin-only.

    We also delete the MODULE_LICENSE tag etc. since all that information
    was (or is now) contained at the top of the file in the comments.

    We replace module.h with init.h and export.h -- the latter since the file
    does make use of EXPORT_SYMBOL.

    Signed-off-by: Paul Gortmaker
    Acked-by: Linus Walleij
    Signed-off-by: Lee Jones

    Paul Gortmaker
     

12 Jul, 2016

1 commit


14 Jan, 2016

1 commit

  • WARNING: char * array declaration might be better as static const
    + static char *pss[] = {"ab8500_ac", "pm2301", "ab8500_usb"};

    WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then
    pr_info(... to printk(KERN_INFO ...
    + printk(KERN_INFO

    WARNING: quoted string split across lines
    + "Charger \"%s\" is connected with known battery."
    + " Rebooting.\n",

    WARNING: quoted string split across lines
    + "unable to set sysClkReq%dRfClkBuf: "
    + "%d\n", j + 1, ret);

    total: 0 errors, 4 warnings, 199 lines checked

    Cc: Linus Walleij
    Signed-off-by: Lee Jones

    Lee Jones
     

14 Mar, 2015

2 commits


15 Dec, 2014

1 commit

  • Pull driver core update from Greg KH:
    "Here's the set of driver core patches for 3.19-rc1.

    They are dominated by the removal of the .owner field in platform
    drivers. They touch a lot of files, but they are "simple" changes,
    just removing a line in a structure.

    Other than that, a few minor driver core and debugfs changes. There
    are some ath9k patches coming in through this tree that have been
    acked by the wireless maintainers as they relied on the debugfs
    changes.

    Everything has been in linux-next for a while"

    * tag 'driver-core-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (324 commits)
    Revert "ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries"
    fs: debugfs: add forward declaration for struct device type
    firmware class: Deletion of an unnecessary check before the function call "vunmap"
    firmware loader: fix hung task warning dump
    devcoredump: provide a one-way disable function
    device: Add dev__once variants
    ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries
    ath: use seq_file api for ath9k debugfs files
    debugfs: add helper function to create device related seq_file
    drivers/base: cacheinfo: remove noisy error boot message
    Revert "core: platform: add warning if driver has no owner"
    drivers: base: support cpu cache information interface to userspace via sysfs
    drivers: base: add cpu_device_create to support per-cpu devices
    topology: replace custom attribute macros with standard DEVICE_ATTR*
    cpumask: factor out show_cpumap into separate helper function
    driver core: Fix unbalanced device reference in drivers_probe
    driver core: fix race with userland in device_add()
    sysfs/kernfs: make read requests on pre-alloc files use the buffer.
    sysfs/kernfs: allow attributes to request write buffer be pre-allocated.
    fs: sysfs: return EGBIG on write if offset is larger than file size
    ...

    Linus Torvalds
     

26 Nov, 2014

1 commit


20 Oct, 2014

1 commit


22 May, 2013

1 commit

  • A check for a valid plat->sysctrl was introduced in:

    2377e52 mfd: ab8500-sysctrl: Error check clean up

    but the driver works just fine even without that initialization data,
    and enforcing it breaks existing platforms for no reason.

    This patch removes the check and let the driver go ahead with probe.

    Acked-by: Linus Walleij
    Signed-off-by: Fabio Baltieri
    Signed-off-by: Lee Jones
    Signed-off-by: Samuel Ortiz

    Fabio Baltieri
     

17 May, 2013

3 commits

  • AB8500 sysctrl driver implements a pm_power_off handler, but that is
    currently not registered until a specific platform data field is
    enabled.

    This patch drops the platform data field and always registers
    ab8500_power_off if no other pm_power_off handler was defined before,
    and also introduces the necessary cleanup code in the driver's remove
    function.

    Acked-by: Linus Walleij
    Signed-off-by: Fabio Baltieri
    Signed-off-by: Lee Jones
    Signed-off-by: Samuel Ortiz

    Fabio Baltieri
     
  • The driver requires sysctrl_dev to be set at probe, as it's used by
    other driver functions. This was dropped by mistake in:

    2377e52 mfd: ab8500-sysctrl: Error check clean up

    making all driver functions fail.

    Acked-by: Linus Walleij
    Signed-off-by: Fabio Baltieri
    Signed-off-by: Lee Jones
    Signed-off-by: Samuel Ortiz

    Fabio Baltieri
     
  • Fix sparse warning:

    drivers/mfd/ab8500-sysctrl.c:26:6: warning: symbol 'ab8500_power_off' was not declared. Should it be static?

    Acked-by: Linus Walleij
    Signed-off-by: Fabio Baltieri
    Signed-off-by: Lee Jones
    Signed-off-by: Samuel Ortiz

    Fabio Baltieri
     

09 Apr, 2013

1 commit

  • The abx500-clk driver is initiated at arch_initcall level. Moreover it
    is relying on the ab8500-sysctrl API to be available. Therefore move
    ab8500-sysctrl to arch_initcall level as well. The device is already
    added before the abx500 clk device, thus it will be probed before as
    well, which is exactly what we want.

    Signed-off-by: Ulf Hansson
    Signed-off-by: Samuel Ortiz

    Ulf Hansson
     

07 Mar, 2013

4 commits


04 Feb, 2013

6 commits


29 Nov, 2012

3 commits

  • CONFIG_HOTPLUG is going away as an option so __devexit is no
    longer needed.

    Signed-off-by: Bill Pemberton
    Cc: Srinidhi Kasagar
    Cc: Peter Tyser
    Cc: Daniel Walker
    Cc: Bryan Huntsman
    Acked-by: David Brown
    Acked-by: Linus Walleij
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     
  • CONFIG_HOTPLUG is going away as an option so __devinit is no longer
    needed.

    Signed-off-by: Bill Pemberton
    Cc: Srinidhi Kasagar
    Cc: Peter Tyser
    Cc: Daniel Walker
    Cc: Bryan Huntsman
    Acked-by: David Brown
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     
  • CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
    needed.

    Signed-off-by: Bill Pemberton
    Cc: Srinidhi Kasagar
    Cc: Peter Tyser
    Cc: Daniel Walker
    Cc: Bryan Huntsman
    Acked-by: David Brown
    Acked-by: Linus Walleij
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     

09 Jul, 2012

1 commit


20 May, 2012

1 commit


09 Jan, 2012

1 commit

  • This moves all the header files related to the abx500 family into
    a common include directory below mfd. From now on we place any
    subchip header in that directory. Headers previously in e.g.
    get prefixed and are now e.g.
    . The top-level abstract interface
    remains in .

    Signed-off-by: Linus Walleij
    Signed-off-by: Samuel Ortiz

    Linus Walleij
     

01 Nov, 2011

1 commit


23 Mar, 2011

1 commit

  • This adds a pretty straight-forward system control driver for the
    AB8500. This driver will be used from the core platform, e.g the
    clock tree implementation in the machine code, and is by nature
    singleton.

    There are a few simple functions to read, write, set and clear
    registers so that the machine code can control its own foundation.

    Cc: Mattias Wallin
    Signed-off-by: Mattias Nilsson
    Signed-off-by: Linus Walleij
    Signed-off-by: Samuel Ortiz

    Mattias Nilsson