15 Jan, 2012

1 commit

  • Autogenerated GPG tag for Rusty D1ADB8F1: 15EE 8D6C AB0E 7F0C F999 BFCB D920 0E6C D1AD B8F1

    * tag 'for-linus' of git://github.com/rustyrussell/linux:
    module_param: check that bool parameters really are bool.
    intelfbdrv.c: bailearly is an int module_param
    paride/pcd: fix bool verbose module parameter.
    module_param: make bool parameters really bool (drivers & misc)
    module_param: make bool parameters really bool (arch)
    module_param: make bool parameters really bool (core code)
    kernel/async: remove redundant declaration.
    printk: fix unnecessary module_param_name.
    lirc_parallel: fix module parameter description.
    module_param: avoid bool abuse, add bint for special cases.
    module_param: check type correctness for module_param_array
    modpost: use linker section to generate table.
    modpost: use a table rather than a giant if/else statement.
    modules: sysfs - export: taint, coresize, initsize
    kernel/params: replace DEBUGP with pr_debug
    module: replace DEBUGP with pr_debug
    module: struct module_ref should contains long fields
    module: Fix performance regression on modules with large symbol tables
    module: Add comments describing how the "strmap" logic works

    Fix up conflicts in scripts/mod/file2alias.c due to the new linker-
    generated table approach to adding __mod_*_device_table entries. The
    ARM sa11x0 mcp bus needed to be converted to that too.

    Linus Torvalds
     

14 Jan, 2012

1 commit

  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (59 commits)
    rtc: max8925: Add function to work as wakeup source
    mfd: Add pm ops to max8925
    mfd: Convert aat2870 to dev_pm_ops
    mfd: Still check other interrupts if we get a wm831x touchscreen IRQ
    mfd: Introduce missing kfree in 88pm860x probe routine
    mfd: Add S5M series configuration
    mfd: Add s5m series irq driver
    mfd: Add S5M core driver
    mfd: Improve mc13xxx dt binding document
    mfd: Fix stmpe section mismatch
    mfd: Fix stmpe build warning
    mfd: Fix STMPE I2c build failure
    mfd: Constify aat2870-core i2c_device_id table
    gpio: Add support for stmpe variant 801
    mfd: Add support for stmpe variant 801
    mfd: Add support for stmpe variant 610
    mfd: Add support for STMPE SPI interface
    mfd: Separate out STMPE controller and interface specific code
    misc: Remove max8997-muic sysfs attributes
    mfd: Remove unused wm831x_irq_data_to_mask_reg()
    ...

    Fix up trivial conflict in drivers/leds/Kconfig due to addition of
    LEDS_MAX8997 and LEDS_TCA6507 next to each other.

    Linus Torvalds
     

13 Jan, 2012

2 commits

  • module_param_array(), unlike its non-array cousins, didn't check the type
    of the variable. Fixing this found two bugs.

    Cc: Luca Risolia
    Cc: Mauro Carvalho Chehab
    Cc: Eric Piel
    Cc: linux-media@vger.kernel.org
    Signed-off-by: Rusty Russell

    Rusty Russell
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (526 commits)
    ASoC: twl6040 - Add method to query optimum PDM_DL1 gain
    ALSA: hda - Fix the lost power-setup of seconary pins after PM resume
    ALSA: usb-audio: add Yamaha MOX6/MOX8 support
    ALSA: virtuoso: add S/PDIF input support for all Xonars
    ALSA: ice1724 - Support for ooAoo SQ210a
    ALSA: ice1724 - Allow card info based on model only
    ALSA: ice1724 - Create capture pcm only for ADC-enabled configurations
    ALSA: hdspm - Provide unique driver id based on card serial
    ASoC: Dynamically allocate the rtd device for a non-empty release()
    ASoC: Fix recursive dependency due to select ATMEL_SSC in SND_ATMEL_SOC_SSC
    ALSA: hda - Fix the detection of "Loopback Mixing" control for VIA codecs
    ALSA: hda - Return the error from get_wcaps_type() for invalid NIDs
    ALSA: hda - Use auto-parser for HP laptops with cx20459 codec
    ALSA: asihpi - Fix potential Oops in snd_asihpi_cmode_info()
    ALSA: hdsp - Fix potential Oops in snd_hdsp_info_pref_sync_ref()
    ALSA: hda/cirrus - support for iMac12,2 model
    ASoC: cx20442: add bias control over a platform provided regulator
    ALSA: usb-audio - Avoid flood of frame-active debug messages
    ALSA: snd-usb-us122l: Delete calls to preempt_disable
    mfd: Put WM8994 into cache only mode when suspending
    ...

    Fix up trivial conflicts in:
    - arch/arm/mach-s3c64xx/mach-crag6410.c:
    renamed speyside_wm8962 to tobermory, added littlemill right
    next to it
    - drivers/base/regmap/{regcache.c,regmap.c}:
    duplicate diff that had already come in with other changes in
    the regmap tree

    Linus Torvalds
     

12 Jan, 2012

1 commit

  • * git://git.infradead.org/battery-2.6: (68 commits)
    power_supply: Mark da9052 driver as broken
    power_supply: Drop usage of nowarn variant of sysfs_create_link()
    s3c_adc_battery: Average over more than one adc sample
    power_supply: Add DA9052 battery driver
    isp1704_charger: Fix missing check
    jz4740-battery: Fix signedness bug
    power_supply: Assume mains power by default
    sbs-battery: Fix devicetree match table
    ARM: rx51: Add bq27200 i2c board info
    sbs-battery: Change power supply name
    devicetree-bindings: Propagate bq20z75->sbs rename to dt bindings
    devicetree-bindings: Add vendor entry for Smart Battery Systems
    sbs-battery: Rename internals to new name
    bq20z75: Rename to sbs-battery
    wm97xx_battery: Use DEFINE_MUTEX() for work_lock
    max8997_charger: Remove duplicate module.h
    lp8727_charger: Some minor fixes for the header
    lp8727_charger: Add header file
    power_supply: Convert drivers/power/* to use module_platform_driver()
    power_supply: Add "unknown" in power supply type
    ...

    Linus Torvalds
     

10 Jan, 2012

3 commits

  • Driver specific changes

    Again, a lot of platforms have changes in here: pxa, samsung, omap,
    at91, imx, ...

    * tag 'drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (54 commits)
    ARM: sa1100: clean up of the clock support
    ARM: pxa: add dummy clock for sa1100-rtc
    RTC: sa1100: support sa1100, pxa and mmp soc families
    RTC: sa1100: remove redundant code of setting alarm
    RTC: sa1100: Clean out ost register
    Input: zylonite-wm97xx - replace IRQ_GPIO() with gpio_to_irq()
    pcmcia: pxa: replace IRQ_GPIO() with gpio_to_irq()
    ARM: EXYNOS: Modified files for SPI consolidation work
    ARM: S5P64X0: Enable SDHCI support
    ARM: S5P64X0: Add lookup of sdhci-s3c clocks using generic names
    ARM: S5P64X0: Add HSMMC setup for host Controller
    ARM: EXYNOS: Add USB OHCI support to ORIGEN board
    USB: Add Samsung Exynos OHCI diver
    ARM: EXYNOS: Add USB OHCI support to SMDKV310 board
    ARM: EXYNOS: Add USB OHCI device
    net: macb: fix build break with !CONFIG_OF
    i2c: tegra: Support DVC controller in device tree
    i2c: tegra: Add __devinit/exit to probe/remove
    net/at91_ether: use gpio_is_valid for phy IRQ line
    ARM: at91/net: add macb ethernet controller in 9g45/9g20 DT
    ...

    Linus Torvalds
     
  • New feature development

    This adds support for new features, and contains stuff from most
    platforms. A number of these patches could have fit into other
    branches, too, but were small enough not to cause too much
    confusion here.

    * tag 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (28 commits)
    mfd/db8500-prcmu: remove support for early silicon revisions
    ARM: ux500: fix the smp_twd clock calculation
    ARM: ux500: remove support for early silicon revisions
    ARM: ux500: update register files
    ARM: ux500: register DB5500 PMU dynamically
    ARM: ux500: update ASIC detection for U5500
    ARM: ux500: support DB8520
    ARM: picoxcell: implement watchdog restart
    ARM: OMAP3+: hwmod data: Add the default clockactivity for I2C
    ARM: OMAP3: hwmod data: disable multiblock reads on MMC1/2 on OMAP34xx/35xx <= ES2.1
    ARM: OMAP: USB: EHCI and OHCI hwmod structures for OMAP4
    ARM: OMAP: USB: EHCI and OHCI hwmod structures for OMAP3
    ARM: OMAP: hwmod data: Add support for AM35xx UART4/ttyO3
    ARM: Orion: Remove address map info from all platform data structures
    ARM: Orion: Get address map from plat-orion instead of via platform_data
    ARM: Orion: mbus_dram_info consolidation
    ARM: Orion: Consolidate the address map setup
    ARM: Kirkwood: Add configuration for MPP12 as GPIO
    ARM: Kirkwood: Recognize A1 revision of 6282 chip
    ARM: ux500: update the MOP500 GPIO assignments
    ...

    Linus Torvalds
     
  • Conflicts:
    arch/arm/mach-mxs/include/mach/common.h

    Pull in previous samsung conflict merges and do a trivial
    merge of an mxs double-add conflict.

    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     

09 Jan, 2012

32 commits

  • This is required by the ASoC driver for very low power modes where the
    device is fully idle but we want to update controls.

    Signed-off-by: Mark Brown

    Mark Brown
     
  • Signed-off-by: Kevin Liu
    Signed-off-by: Haojian Zhuang
    Signed-off-by: Samuel Ortiz

    Kevin Liu
     
  • The I2C suspend and resume functions have been deprecated since the driver
    was introduced.

    Signed-off-by: Mark Brown
    Acked-by: Jin Park
    Signed-off-by: Samuel Ortiz

    Mark Brown
     
  • It is possible that we will see another interrupt triggering at the same
    time as the touchscreen interrupts so it's still worth checking other
    possible sources. Almost all of the win from the fast path comes from only
    needing to read the primary register and saving the I/O costs.

    Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     
  • Error handling code following a kzalloc should free the allocated data. At
    this point, chip has been allocated and some fields have been initialized,
    but it has not been stored anywhere, so it should be freed before leaving
    the function.

    A simplified version of the semantic match that finds the problem is as
    follows: (http://coccinelle.lip6.fr)

    //
    @r exists@
    local idexpression x;
    statement S;
    identifier f1;
    position p1,p2;
    expression *ptr != NULL;
    @@

    x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
    ...
    if (x == NULL) S
    }
    x->f1
    ...>
    (
    return \(0\|\|ptr\);
    |
    return@p2 ...;
    )

    @script:python@
    p1 << r.p1;
    p2 << r.p2;
    @@

    print "* file: %s kmalloc %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Samuel Ortiz

    Julia Lawall
     
  • This patch add Samsung S5M Kconfig and Makefile entry.

    Signed-off-by: Sangbeom Kim
    Signed-off-by: Samuel Ortiz

    Sangbeom Kim
     
  • This patch support irq for s5m series.
    Basically, S5M8767 and S5M8763 irq can be handled by this patch.

    Signed-off-by: Sangbeom Kim
    Signed-off-by: Samuel Ortiz

    Sangbeom Kim
     
  • S5M series are pmic including mutiple functional devices.
    It can support PMIC, RTC, Battery charger, codec.
    This patch implement core driver for s5m series.

    Signed-off-by: Sangbeom Kim
    Reviewed-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Sangbeom Kim
     
  • This fixes:

    WARNING: drivers/built-in.o(.text+0xf368f): Section mismatch in reference from
    the function stmpe_probe() to the function .devinit.text:stmpe_chip_init()
    The function stmpe_probe() references the function __devinit stmpe_chip_init().

    Signed-off-by: Samuel Ortiz

    Samuel Ortiz
     
  • This fixes:

    drivers/mfd/stmpe.c:114:1: warning: data definition has no type or storage
    class [enabled by default]
    drivers/mfd/stmpe.c:114:1: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Wimplicit-int]

    Signed-off-by: Samuel Ortiz

    Samuel Ortiz
     
  • STMPE i2c is a bool and should depend on I2c=y.
    That fixes:

    drivers/built-in.o: In function `i2c_block_write':
    stmpe-i2c.c:(.text+0xf4553): undefined reference to
    +`i2c_smbus_write_i2c_block_data'
    drivers/built-in.o: In function `i2c_block_read':
    stmpe-i2c.c:(.text+0xf457f): undefined reference to
    +`i2c_smbus_read_i2c_block_data'
    drivers/built-in.o: In function `i2c_reg_write':
    stmpe-i2c.c:(.text+0xf45ab): undefined reference to
    `i2c_smbus_write_byte_data'
    drivers/built-in.o: In function `i2c_reg_read':
    stmpe-i2c.c:(.text+0xf45d4): undefined reference to `i2c_smbus_read_byte_data'
    drivers/built-in.o: In function `stmpe_init':
    stmpe-i2c.c:(.init.text+0xaf22): undefined reference to `i2c_register_driver'
    drivers/built-in.o: In function `stmpe_exit':
    stmpe-i2c.c:(.exit.text+0x5e5): undefined reference to `i2c_del_driver'

    Signed-off-by: Samuel Ortiz

    Samuel Ortiz
     
  • Signed-off-by: Axel Lin

    Axel Lin
     
  • STMPE801 is a GPIO expander. Registers for 801 are much different from other
    variants. This patch adds support for STMPE801 in stmpe mfd driver.

    Signed-off-by: Bhupesh Sharma
    Signed-off-by: Pratyush Anand
    Signed-off-by: Viresh Kumar
    Signed-off-by: Samuel Ortiz

    Viresh Kumar
     
  • STMPE610 is very much like STMPE811, except the number of gpio pins, which is 8
    in 811 and 6 in 610. This patch adds support for variant 610. STMPE610 will
    share most of the code with STMPE811.

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

    Viresh Kumar
     
  • Few STMPE controller can have register interface over SPI or I2C. Current
    implementation only supports I2C.

    This patch adds support for SPI interface for accessing STMPE's address space.

    Signed-off-by: Viresh Kumar
    Acked-by: Linus Walleij
    Signed-off-by: Samuel Ortiz

    Viresh Kumar
     
  • Few STMPE controller can have register interface over SPI or I2C. Current
    implementation only supports I2C and all code is present in a single file
    stmpe.c. It would be better to separate out I2C interface specific code from
    controller specific code. Later SPI specific code can be added in a separate
    file.

    This patch separates out I2C and controller specific code into separate files,
    making stmpe.c independent of I2C.

    Signed-off-by: Viresh Kumar
    Acked-by: Linus Walleij
    Signed-off-by: Samuel Ortiz

    Viresh Kumar
     
  • Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     
  • MAX8997 device does not support LED control function of it.
    To enable MAX8997-LED driver, platform data and devices for LED are updated.

    Signed-off-by: Donggeun Kim
    Signed-off-by: MyungJoo Ham
    Signed-off-by: Kyungmin Park
    Signed-off-by: Samuel Ortiz

    Donggeun Kim
     
  • TPS65910 can be used without interrupts.
    Hence let probe succeed in case interrupt can't be
    configured and let Kernel only to complain about it

    Signed-off-by: Afzal Mohammed
    Signed-off-by: Samuel Ortiz

    Afzal Mohammed
     
  • TWL family of PMICs, used in master mode, have a power off
    functionality. The resulting power off sequence shuts down all the SoC
    supplies, LDOs, etc. The sequence is described in the datasheets
    chapter "Power-Off Sequence".
    Note, that board must be wired correctly for the power off to work as
    expected.

    Signed-off-by: Igor Grinberg
    Signed-off-by: Samuel Ortiz

    Igor Grinberg
     
  • Add initial device-tree support for twl familly chips.
    The current version is missing the regulator entries due
    to the lack of DT regulator bindings for the moment.
    Only the simple sub-modules that do not depend on
    platform_data information can be initialized properly.

    Add irqdomain support.

    Add documentation for the Texas Instruments TWL Integrated Chip.

    Signed-off-by: Benoit Cousson
    Cc: Balaji T K
    Cc: Graeme Gregory
    Signed-off-by: Samuel Ortiz
    Acked-by: Rob Herring
    [grant.likely@secretlab.ca: Fix IRQ_DOMAIN dependency in kconfig]
    Cc: Grant Likely

    Benoit Cousson
     
  • Got dropped in the regmap conversion.

    Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     
  • Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     
  • 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
     
  • Use gpio_request_one() instead of multiple gpiolib calls.

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

    Axel Lin
     
  • Use gpio_request_one() instead of multiple gpiolib calls.

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

    Axel Lin
     
  • Use gpio_request_one() instead of multiple gpiolib calls.

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

    Axel Lin
     
  • Use gpio_request_one() instead of multiple gpiolib calls.

    Signed-off-by: Axel Lin
    Acked-by: Jin Park
    Signed-off-by: Samuel Ortiz

    Axel Lin
     
  • Convert static struct pci_device_id *[] to static DEFINE_PCI_DEVICE_TABLE
    tables.

    Cc: Andres Salomon
    Cc: Denis Turischev
    Cc: Ben Dooks
    Cc: Vincent Sanders
    Cc: Mocean Laboratories
    Cc: Harald Welte
    Signed-off-by: Axel Lin
    Signed-off-by: Samuel Ortiz

    Axel Lin
     
  • The WM1811A is a variant of the WM1811 with pin configuration changes.

    Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     
  • tc6393xb calls the clk API.

    Signed-off-by: Christoph Fritz
    Signed-off-by: Samuel Ortiz

    Christoph Fritz
     
  • Remove the const keyword to fix below warning:

    CC drivers/mfd/jz4740-adc.o
    drivers/mfd/jz4740-adc.c: In function 'jz4740_adc_probe':
    drivers/mfd/jz4740-adc.c:290: warning: passing argument 3 of 'mfd_add_devices' discards qualifiers from pointer target type
    include/linux/mfd/core.h:93: note: expected 'struct mfd_cell *' but argument is of type 'const struct mfd_cell *'

    Also make jz4740_adc_cells static, is not used outside
    this driver so no need to make the symbol global.

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

    Axel Lin