20 Oct, 2014

1 commit


24 Oct, 2013

1 commit


15 Oct, 2013

1 commit


17 Sep, 2013

1 commit


12 May, 2013

1 commit


28 Apr, 2013

1 commit


20 Nov, 2012

3 commits


29 Aug, 2012

3 commits


18 Jun, 2012

1 commit


10 Apr, 2012

1 commit


12 Mar, 2012

1 commit


30 Dec, 2011

1 commit


24 Nov, 2011

1 commit

  • With device tree support for regulators, its needed that the
    regulator_dev->dev device has the right of_node attached.
    To be able to do this add an additional parameter to the
    regulator_register() api, wherein the dt-adapted driver can
    then pass this additional info onto the regulator core.

    Signed-off-by: Rajendra Nayak
    Signed-off-by: Mark Brown

    Rajendra Nayak
     

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

1 commit


27 May, 2011

1 commit

  • With the addition of a platform device mfd_cell pointer, MFD drivers
    can go back to passing platform data back to their sub drivers.
    This allows for an mfd_cell->mfd_data removal and thus keep the
    sub drivers MFD agnostic. This is mostly needed for non MFD aware
    sub drivers.

    Cc: Mark Brown
    Cc: Liam Girdwood
    Acked-by: Uwe Kleine-König
    Signed-off-by: Samuel Ortiz

    Samuel Ortiz
     

10 May, 2011

1 commit


23 Mar, 2011

1 commit

  • The cell's platform_data is now accessed with a helper function;
    change clients to use that, and remove the now-unused data_size.

    Note that mfd-core no longer makes a copy of platform_data, but the
    mc13xxx-core driver creates the pdata structures on the stack. In
    order to get around that, the various ARM mach types that set the
    pdata have been changed to hold the variable in static (global) memory.
    Also note that __initdata references in aforementioned pdata structs
    have been dropped.

    Signed-off-by: Andres Salomon
    Signed-off-by: Samuel Ortiz

    Andres Salomon
     

12 Jan, 2011

4 commits


30 Nov, 2010

1 commit


25 May, 2010

1 commit


19 Apr, 2010

1 commit


30 Mar, 2010

1 commit

  • …it slab.h inclusion from percpu.h

    percpu.h is included by sched.h and module.h and thus ends up being
    included when building most .c files. percpu.h includes slab.h which
    in turn includes gfp.h making everything defined by the two files
    universally available and complicating inclusion dependencies.

    percpu.h -> slab.h dependency is about to be removed. Prepare for
    this change by updating users of gfp and slab facilities include those
    headers directly instead of assuming availability. As this conversion
    needs to touch large number of source files, the following script is
    used as the basis of conversion.

    http://userweb.kernel.org/~tj/misc/slabh-sweep.py

    The script does the followings.

    * Scan files for gfp and slab usages and update includes such that
    only the necessary includes are there. ie. if only gfp is used,
    gfp.h, if slab is used, slab.h.

    * When the script inserts a new include, it looks at the include
    blocks and try to put the new include such that its order conforms
    to its surrounding. It's put in the include block which contains
    core kernel includes, in the same order that the rest are ordered -
    alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
    doesn't seem to be any matching order.

    * If the script can't find a place to put a new include (mostly
    because the file doesn't have fitting include block), it prints out
    an error message indicating which .h file needs to be added to the
    file.

    The conversion was done in the following steps.

    1. The initial automatic conversion of all .c files updated slightly
    over 4000 files, deleting around 700 includes and adding ~480 gfp.h
    and ~3000 slab.h inclusions. The script emitted errors for ~400
    files.

    2. Each error was manually checked. Some didn't need the inclusion,
    some needed manual addition while adding it to implementation .h or
    embedding .c file was more appropriate for others. This step added
    inclusions to around 150 files.

    3. The script was run again and the output was compared to the edits
    from #2 to make sure no file was left behind.

    4. Several build tests were done and a couple of problems were fixed.
    e.g. lib/decompress_*.c used malloc/free() wrappers around slab
    APIs requiring slab.h to be added manually.

    5. The script was run on all .h files but without automatically
    editing them as sprinkling gfp.h and slab.h inclusions around .h
    files could easily lead to inclusion dependency hell. Most gfp.h
    inclusion directives were ignored as stuff from gfp.h was usually
    wildly available and often used in preprocessor macros. Each
    slab.h inclusion directive was examined and added manually as
    necessary.

    6. percpu.h was updated not to include slab.h.

    7. Build test were done on the following configurations and failures
    were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
    distributed build env didn't work with gcov compiles) and a few
    more options had to be turned off depending on archs to make things
    build (like ipr on powerpc/64 which failed due to missing writeq).

    * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
    * powerpc and powerpc64 SMP allmodconfig
    * sparc and sparc64 SMP allmodconfig
    * ia64 SMP allmodconfig
    * s390 SMP allmodconfig
    * alpha SMP allmodconfig
    * um on x86_64 SMP allmodconfig

    8. percpu.h modifications were reverted so that it could be applied as
    a separate patch and serve as bisection point.

    Given the fact that I had only a couple of failures from tests on step
    6, I'm fairly confident about the coverage of this conversion patch.
    If there is a breakage, it's likely to be something in one of the arch
    headers which should be easily discoverable easily on most builds of
    the specific arch.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     

03 Mar, 2010

2 commits

  • GPO regulators are digital outputs that can be enabled or disabled by a
    dedicated bit in mc13783 POWERMISC register.
    In this family can be count in also Power Gates (PWGT1 and 2): enabled by
    a dedicated pin a Power Gate is an hardware driven supply where the output
    (PWGTnDRV) follow this law:

    Bit PWGTxSPIEN | Pin PWGTxEN | PWGTxDRV | Read Back
    0 = default | | | PWGTxSPIEN
    ---------------+-------------+----------+------------
    1 | x | Low | 0
    0 | 0 | High | 1
    0 | 1 | Low | 0

    As read back value of control bit reflects the PWGTxDRV state (not the
    control value previously written) and mc13783 POWERMISC register contain
    only regulator related bits, a dedicated function to manage these bits is
    created here with the aim of tracing the real value of PWGTxSPIEN bits
    and reproduce it on next writes.

    All POWERMISC users _must_ use the new function to not accidentally
    disable Power Gates supplies.

    v2 changes:
    -Better utilization of abstraction layers.
    -Voltage query support. GPO's and PWGTxDRV are fixed voltage regulator
    with voltage value of 3.1V and 5.5V respectively.

    Signed-off-by: Alberto Panizzo
    Acked-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Alberto Panizzo
     
  • This patch, complete the mc13783 regulator subsystem driver with
    voltage selecting capability.
    Main Switches (SW1AB, SW2AB) are not supported yet.

    version 2 diffs:
    - delete the "Switchers PLL" enable and multiplication factor value
    selecting capability because it is not a voltage or current regulator.
    This will be a part of Main switcher supporting task.
    - Correct many coding style problems pointed me out.

    Signed-off-by: Alberto Panizzo
    Acked-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Alberto Panizzo
     

17 Dec, 2009

3 commits

  • When the mc13783-regulator driver is built in kernel, probing it during
    the regulator subsystem initialisation result in a fault.

    That is because regulator subsystem is planned to be initialised very early
    in the boot process, before the mfd subsystem initialisation.

    The mc12783-regulator probing process need to access to the mc13783-core
    functionality to read/write mc13783 registers and so must be called after
    the mc13783-core driver initialisation.

    The way to do this is to let the kernel probe the mc13783-regulator driver when
    mc13783-core register his regulator subdevice.

    Signed-off-by: Alberto Panizzo
    Acked-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Alberto Panizzo
     
  • - define needed registers and bits in the driver
    - properly namespace functions and structs
    - fix locking as required by patch
    "mfd/mc13783: near complete rewrite"
    - use platform_data as provided by "mfd/mc13783: near complete rewrite"
    instead of accessing struct mc13783
    - struct mc13783_regulator_priv.desc is (and was) unused and so can go
    away
    - use cpp magic to initialize mc13783_regulators
    - bring MODULE_LICENSE in sync with actual copyright
    - minor style fixes

    This allows not including mc13783-private.h which I intend to remove
    soon.

    Signed-off-by: Uwe Kleine-König
    Cc: Sascha Hauer
    Cc: Liam Girdwood
    Cc: Mark Brown
    Cc: Samuel Ortiz
    Acked-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Uwe Kleine-König
     
  • One annoying thing about the old name was that the module was just
    called mc13783 which caused wrong expectations (at least for me).

    Signed-off-by: Uwe Kleine-König
    Cc: Sascha Hauer
    Cc: Liam Girdwood
    Cc: Mark Brown
    Cc: Samuel Ortiz
    Acked-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Uwe Kleine-König