06 Sep, 2012

2 commits

  • extcon-arizona uses input_*() functions so it should depend
    on INPUT.

    ERROR: "input_event" [drivers/extcon/extcon-arizona.ko] undefined!
    ERROR: "input_free_device" [drivers/extcon/extcon-arizona.ko] undefined!
    ERROR: "input_register_device" [drivers/extcon/extcon-arizona.ko] undefined!
    ERROR: "input_set_capability" [drivers/extcon/extcon-arizona.ko] undefined!
    ERROR: "input_allocate_device" [drivers/extcon/extcon-arizona.ko] undefined!
    ERROR: "input_unregister_device" [drivers/extcon/extcon-arizona.ko] undefined!

    Signed-off-by: Randy Dunlap
    Cc: MyungJoo Ham
    Cc: Chanwoo Choi
    Cc: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • External connector devices that decides connection information based on
    ADC values may use adc-jack device driver. The user simply needs to
    provide a table of adc range and connection states. Then, extcon
    framework will automatically notify others.

    Changes in V1:
    added Lars-Peter Clausen suggested changes:
    Using macros to get rid of boiler plate code such as devm_kzalloc
    and module_platform_driver.Other changes suggested are related to
    coding guidelines.

    Changes in V2:
    Removed some unnecessary checks and changed the way we are un-regitering
    extcon and freeing the irq while removing.

    Changes in V3:
    Renamed the files to comply with extcon naming.

    Changes in V4:
    Added the cancel_work_sync during removing of driver.

    Changes in V5:
    Added the dependency of IIO in Kconfig.

    Changes in V6:
    Some nitpicks related to naming.

    Changes in this version:
    V6 patch version patch broke the build:
    ERROR: "extcon_cable_name" [drivers/extcon/extcon-adc-jack.ko] undefined!

    Fixed it in this version.

    Acked-by: Jonathan Cameron
    Reviewed-by: Lars-Peter Clausen
    Signed-off-by: anish kumar
    Signed-off-by: MyungJoo Ham
    Signed-off-by: Greg Kroah-Hartman

    anish kumar
     

17 Aug, 2012

2 commits

  • This reverts commit 980d7929816236476967218645c30acc022042eb as it
    breaks the build with the error:
    ERROR: "extcon_cable_name" [drivers/extcon/extcon-adc-jack.ko] undefined!

    Cc: Lars-Peter Clausen
    Cc: anish kumar
    Cc: MyungJoo Ham
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • External connector devices that decides connection information based on
    ADC values may use adc-jack device driver. The user simply needs to
    provide a table of adc range and connection states. Then, extcon
    framework will automatically notify others.

    Changes in V1:
    added Lars-Peter Clausen suggested changes:
    Using macros to get rid of boiler plate code such as devm_kzalloc
    and module_platform_driver.Other changes suggested are related to
    coding guidelines.

    Changes in V2:
    Removed some unnecessary checks and changed the way we are un-regitering
    extcon and freeing the irq while removing.

    Changes in V3:
    Renamed the files to comply with extcon naming.

    Changes in V4:
    Added the cancel_work_sync during removing of driver.

    Changes in V5:
    Added the dependency of IIO in Kconfig.

    Changes in V6:
    Some nitpicks related to naming.

    Reviewed-by: Lars-Peter Clausen
    Signed-off-by: anish kumar
    Signed-off-by: MyungJoo Ham
    Signed-off-by: Greg Kroah-Hartman

    anish kumar
     

31 Jul, 2012

1 commit

  • Pull MFD bits from Samuel Ortiz:
    "We have support for a few new drivers:
    - Samsung s2mps11
    - Wolfson Microelectronics wm5102 and wm5110
    - Marvell 88PM800 and 88PM805
    - TI twl6041

    We also have our regular driver improvements:
    - Device tree and IRQ domain support for STE AB8500
    - Regmap and devm_* API conversion for TI tps6586x
    - Device tree support for Samsung max77686
    - devm_* API conversion for STE AB3100

    Besides that, quite a lot of fixing and cleanup for mc13xxx, tps65910,
    tps65090, da9052 and twl-core."

    Fix up mostly trivial conflicts, with the exception of
    drivers/usb/host/ehci-omap.c in particular, which had some
    re-organization of the reset sequence (commit 1a49e2ac9651: "EHCI:
    centralize controller initialization") that clashed with commit
    2761a6394516 ("mfd: USB: Fix the omap-usb EHCI ULPI PHY reset fix
    issues").

    In particular, commit 2761a6394516 moved the usb_add_hcd() to the
    *middle* of the reset sequence, which clashes fairly badly with the
    reset sequence re-organization (although it could have been done inside
    the new omap_ehci_init() function).

    I left that part of commit 2761a6394516 just undone.

    * tag 'mfd-3.6-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (110 commits)
    mfd: Ensure AB8500 platform data is passed through db8500-prcmu to MFD Core
    mfd: Arizone core should select MFD_CORE
    mfd: Fix arizona-irq.c build by selecting REGMAP_IRQ
    mfd: Add debug trace on entering and leaving arizone runtime suspend
    mfd: Correct tps65090 cell names
    mfd: Remove gpio support from tps6586x core driver
    ARM: tegra: defconfig: Enable tps6586x gpio
    gpio: tps6586x: Add gpio support through platform driver
    mfd: Cache tps6586x register through regmap
    mfd: Use regmap for tps6586x register access.
    mfd: Use devm managed resources for tps6586x
    input: Add onkey support for 88PM80X PMIC
    mfd: Add support for twl6041
    mfd: Fix twl6040 revision information
    mfd: Matches should be NULL when populate anatop child devices
    input: ab8500-ponkey: Create AB8500 domain IRQ mapping
    mfd: Add missing out of memory check for pcf50633
    Documentation: Describe the AB8500 Device Tree bindings
    mfd: Add tps65910 32-kHz-crystal-input init
    mfd: Drop modifying mc13xxx driver's id_table in probe
    ...

    Linus Torvalds
     

18 Jul, 2012

1 commit


09 Jul, 2012

1 commit

  • This patch add support irq domain for Maxim MAX8997 muic
    instead of irq_base in platform data and max8997 driver
    private data are instead. It is tested on TRATS board.

    Cc: Greg Kroah-Hartman
    Signed-off-by: Chanwoo Choi
    Signed-off-by: Myungjoo Ham
    Signed-off-by: Kyungmin Park
    Signed-off-by: Samuel Ortiz

    Chanwoo Choi
     

27 Jun, 2012

1 commit

  • Most Wolfson Arizona class audio hub CODECs include a flexible ultra low
    power accessory detection subsystem. This driver exposes initial support
    for this subsystem via the Extcon framework, implementing support for
    ultra low power detection of headphone and headset with the ability to
    detect the polarity of a headset.

    The functionality of the devices is much richer and more flexible than
    the current driver, future patches will extend the features of the
    driver to more fully exploit this.

    Signed-off-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Mark Brown
     

10 May, 2012

1 commit

  • This patch add extcon-max8997 driver to support the muic feature
    of Maxim max8997 by using Extcon framework.

    The extcon-max8997 driver is implemented based on 'drivers/misc/
    max8997-muic.c' and then use Extcon interface instead of callback
    function in struct max8997_muic_platform_data to notify cable state
    of notifee which want to know always newly cable state when external
    connector(e.g., USB, TA, JIG) is attached or detached.

    v1
    - Use Extcon interface to notify cable state of notifee instead of
    callback function when external connector is attached or detached.
    - Bug fix of getting platform_data for irq_base value.

    Signed-off-by: Chanwoo Choi
    Signed-off-by: Myungjoo Ham
    Signed-off-by: Kyungmin Park
    Signed-off-by: Greg Kroah-Hartman

    Chanwoo Choi
     

21 Apr, 2012

2 commits

  • The generic GPIO extcon driver (an external connector device based on
    GPIO control) and imported from Android kernel.

    switch: switch class and GPIO drivers. (splitted)
    Author: Mike Lockwood

    switch: gpio: Don't call request_irq with interrupts disabled
    Author: Arve Hjønnevåg

    switch_gpio: Add missing #include
    Author: Mike Lockwood

    Signed-off-by: MyungJoo Ham
    Signed-off-by: Kyungmin Park
    Reviewed-by: Mark Brown

    --
    Changed from v7:
    - Style updates mentioned by Stephen Boyd and Mark Brown
    Changed from v5:
    - Splitted at v5 from the main extcon patch.
    - Added debounce time for irq handlers.
    - Use request_any_context_irq instead of request_irq
    - User needs to specify irq flags for GPIO interrupts (was fixed to
    IRQF_TRIGGER_LOW before)
    - Use module_platform_driver().
    Signed-off-by: Greg Kroah-Hartman

    MyungJoo Ham
     
  • External connector class (extcon) is based on and an extension of
    Android kernel's switch class located at linux/drivers/switch/.

    This patch provides the before-extension switch class moved to the
    location where the extcon will be located (linux/drivers/extcon/) and
    updates to handle class properly.

    The before-extension class, switch class of Android kernel, commits
    imported are:

    switch: switch class and GPIO drivers. (splitted)
    Author: Mike Lockwood

    switch: Use device_create instead of device_create_drvdata.
    Author: Arve Hjønnevåg

    In this patch, upon the commits of Android kernel, we have added:
    - Relocated and renamed for extcon.
    - Comments, module name, and author information are updated
    - Code clean for successing patches
    - Bugfix: enabling write access without write functions
    - Class/device/sysfs create/remove handling
    - Added comments about uevents
    - Format changes for extcon_dev_register() to have a parent dev.

    Signed-off-by: MyungJoo Ham
    Signed-off-by: Kyungmin Park
    Reviewed-by: Mark Brown

    --
    Changes from v7
    - Compiler error fixed when it is compiled as a module.
    - Removed out-of-date Kconfig entry

    Changes from v6
    - Updated comment/strings
    - Revised "Android-compatible" mode.
    * Automatically activated if CONFIG_ANDROID && !CONFIG_ANDROID_SWITCH
    * Creates /sys/class/switch/*, which is a copy of /sys/class/extcon/*

    Changes from v5
    - Split the patch
    - Style fixes
    - "Android-compatible" mode is enabled by Kconfig option.

    Changes from v2
    - Updated name_show
    - Sysfs entries are handled by class itself.
    - Updated the method to add/remove devices for the class
    - Comments on uevent send
    - Able to become a module
    - Compatible with Android platform

    Changes from RFC
    - Renamed to extcon (external connector) from multistate switch
    - Added a seperated directory (drivers/extcon)
    - Added kerneldoc comments
    - Removed unused variables from extcon_gpio.c
    - Added ABI Documentation.
    Signed-off-by: Greg Kroah-Hartman

    MyungJoo Ham