03 Oct, 2012

1 commit

  • Pull workqueue changes from Tejun Heo:
    "This is workqueue updates for v3.7-rc1. A lot of activities this
    round including considerable API and behavior cleanups.

    * delayed_work combines a timer and a work item. The handling of the
    timer part has always been a bit clunky leading to confusing
    cancelation API with weird corner-case behaviors. delayed_work is
    updated to use new IRQ safe timer and cancelation now works as
    expected.

    * Another deficiency of delayed_work was lack of the counterpart of
    mod_timer() which led to cancel+queue combinations or open-coded
    timer+work usages. mod_delayed_work[_on]() are added.

    These two delayed_work changes make delayed_work provide interface
    and behave like timer which is executed with process context.

    * A work item could be executed concurrently on multiple CPUs, which
    is rather unintuitive and made flush_work() behavior confusing and
    half-broken under certain circumstances. This problem doesn't
    exist for non-reentrant workqueues. While non-reentrancy check
    isn't free, the overhead is incurred only when a work item bounces
    across different CPUs and even in simulated pathological scenario
    the overhead isn't too high.

    All workqueues are made non-reentrant. This removes the
    distinction between flush_[delayed_]work() and
    flush_[delayed_]_work_sync(). The former is now as strong as the
    latter and the specified work item is guaranteed to have finished
    execution of any previous queueing on return.

    * In addition to the various bug fixes, Lai redid and simplified CPU
    hotplug handling significantly.

    * Joonsoo introduced system_highpri_wq and used it during CPU
    hotplug.

    There are two merge commits - one to pull in IRQ safe timer from
    tip/timers/core and the other to pull in CPU hotplug fixes from
    wq/for-3.6-fixes as Lai's hotplug restructuring depended on them."

    Fixed a number of trivial conflicts, but the more interesting conflicts
    were silent ones where the deprecated interfaces had been used by new
    code in the merge window, and thus didn't cause any real data conflicts.

    Tejun pointed out a few of them, I fixed a couple more.

    * 'for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq: (46 commits)
    workqueue: remove spurious WARN_ON_ONCE(in_irq()) from try_to_grab_pending()
    workqueue: use cwq_set_max_active() helper for workqueue_set_max_active()
    workqueue: introduce cwq_set_max_active() helper for thaw_workqueues()
    workqueue: remove @delayed from cwq_dec_nr_in_flight()
    workqueue: fix possible stall on try_to_grab_pending() of a delayed work item
    workqueue: use hotcpu_notifier() for workqueue_cpu_down_callback()
    workqueue: use __cpuinit instead of __devinit for cpu callbacks
    workqueue: rename manager_mutex to assoc_mutex
    workqueue: WORKER_REBIND is no longer necessary for idle rebinding
    workqueue: WORKER_REBIND is no longer necessary for busy rebinding
    workqueue: reimplement idle worker rebinding
    workqueue: deprecate __cancel_delayed_work()
    workqueue: reimplement cancel_delayed_work() using try_to_grab_pending()
    workqueue: use mod_delayed_work() instead of __cancel + queue
    workqueue: use irqsafe timer for delayed_work
    workqueue: clean up delayed_work initializers and add missing one
    workqueue: make deferrable delayed_work initializer names consistent
    workqueue: cosmetic whitespace updates for macro definitions
    workqueue: deprecate system_nrt[_freezable]_wq
    workqueue: deprecate flush[_delayed]_work_sync()
    ...

    Linus Torvalds
     

02 Oct, 2012

1 commit

  • Pull driver core merge from Greg Kroah-Hartman:
    "Here is the big driver core update for 3.7-rc1.

    A number of firmware_class.c updates (as you saw a month or so ago),
    and some hyper-v updates and some printk fixes as well. All patches
    that are outside of the drivers/base area have been acked by the
    respective maintainers, and have all been in the linux-next tree for a
    while.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'driver-core-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (95 commits)
    memory: tegra{20,30}-mc: Fix reading incorrect register in mc_readl()
    device.h: Add missing inline to #ifndef CONFIG_PRINTK dev_vprintk_emit
    memory: emif: Add ifdef CONFIG_DEBUG_FS guard for emif_debugfs_[init|exit]
    Documentation: Fixes some translation error in Documentation/zh_CN/gpio.txt
    Documentation: Remove 3 byte redundant code at the head of the Documentation/zh_CN/arm/booting
    Documentation: Chinese translation of Documentation/video4linux/omap3isp.txt
    device and dynamic_debug: Use dev_vprintk_emit and dev_printk_emit
    dev: Add dev_vprintk_emit and dev_printk_emit
    netdev_printk/netif_printk: Remove a superfluous logging colon
    netdev_printk/dynamic_netdev_dbg: Directly call printk_emit
    dev_dbg/dynamic_debug: Update to use printk_emit, optimize stack
    driver-core: Shut up dev_dbg_reatelimited() without DEBUG
    tools/hv: Parse /etc/os-release
    tools/hv: Check for read/write errors
    tools/hv: Fix exit() error code
    tools/hv: Fix file handle leak
    Tools: hv: Implement the KVP verb - KVP_OP_GET_IP_INFO
    Tools: hv: Rename the function kvp_get_ip_address()
    Tools: hv: Implement the KVP verb - KVP_OP_SET_IP_INFO
    Tools: hv: Add an example script to configure an interface
    ...

    Linus Torvalds
     

28 Sep, 2012

1 commit


17 Sep, 2012

2 commits

  • This pulls in the fixes in that branch that are needed here as well.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • Pull mfd fixes from Samuel Ortiz:
    "This is the remaining MFD fixes for 3.6, with 5 pending fixes:

    - A tps65217 build error fix.
    - A lcp_ich regression fix caused by the MFD driver failing to
    initialize the watchdog sub device due to ACPI conflicts.
    - 2 MAX77693 interrupt handling bug fixes.
    - An MFD core fix, adding an IRQ domain argument to the MFD device
    addition API in order to prevent silent and potentially harmful
    remapping behaviour changes for drivers supporting non-DT
    platforms."

    * tag 'mfd-for-linus-3.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6:
    mfd: MAX77693: Fix NULL pointer error when initializing irqs
    mfd: MAX77693: Fix interrupt handling bug
    mfd: core: Push irqdomain mapping out into devices
    mfd: lpc_ich: Fix a 3.5 kernel regression for iTCO_wdt driver
    mfd: Move tps65217 regulator plat data handling to regulator

    Linus Torvalds
     

16 Sep, 2012

1 commit

  • This patch initialize register map of MUIC device because mfd driver
    of Maxim MAX77693 use regmap-muic instance of MUIC device when irqs of
    Maxim MAX77693 is initialized before call max77693-muic probe() function.

    Signed-off-by: Chanwoo Choi
    Signed-off-by: Myungjoo Ham
    Signed-off-by: Kyungmin Park
    Reported-by: Sylwester Nawrocki
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Samuel Ortiz

    Chanwoo Choi
     

10 Sep, 2012

1 commit

  • We can perform microphone detection with MICVDD in bypass mode so try to
    enable that during startup for minimal power - other users or machine
    constraints will prevent bypass mode being activated if it is unsuitable.

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

    Mark Brown
     

07 Sep, 2012

1 commit

  • Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci

    Make sure threaded IRQs without a primary handler are always
    requested with IRQF_ONESHOT.

    Signed-off-by: Fengguang Wu
    Signed-off-by: Greg Kroah-Hartman

    Fengguang Wu
     

06 Sep, 2012

6 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
     
  • Signed-off-by: Peter Meerwald
    Signed-off-by: Myungjoo Ham
    Signed-off-by: Greg Kroah-Hartman

    Peter Meerwald
     
  • Signed-off-by: Peter Meerwald
    Signed-off-by: Chanwoo Choi
    Signed-off-by: Greg Kroah-Hartman

    Peter Meerwald
     
  • Signed-off-by: Peter Meerwald
    Signed-off-by: MyungJoo Ham
    Signed-off-by: Greg Kroah-Hartman

    Peter Meerwald
     
  • Signed-off-by: Mark Brown
    Signed-off-by: Chanwoo Choi
    Signed-off-by: Greg Kroah-Hartman

    Mark Brown
     

27 Aug, 2012

1 commit


17 Aug, 2012

6 commits

  • The operation of lockdep requires that all dynamically allocated sysfs
    nodes are initialised using sysfs_attr_init() otherwise lots of warnings
    are generated. Ensure that all the dynamically allocated attributes that
    extcon generates have this done.

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

    Mark Brown
     
  • Replaced '_' with '-' in the extcon file names, which has been bogging
    since new drivers have been using the standard naming.

    Signed-off-by: MyungJoo Ham
    Signed-off-by: Greg Kroah-Hartman

    MyungJoo Ham
     
  • 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
     
  • As well as identifying accessories the accessory detection hardware on
    Arizona class devices can also detect a number of buttons which we should
    report via the input API.

    Signed-off-by: Mark Brown
    Acked-by: Chanwoo Choi
    Signed-off-by: Greg Kroah-Hartman

    Mark Brown
     
  • commit 01eaf24 "extcon: Convert extcon_gpio to devm_gpio_request_one"
    missed the replacement for devm_gpio_request_one. fix it.

    Signed-off-by: Axel Lin
    Signed-off-by: Chanwoo Choi
    Signed-off-by: Greg Kroah-Hartman

    Axel Lin
     

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

3 commits


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
     

05 Jul, 2012

1 commit


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
     

19 Jun, 2012

5 commits


15 Jun, 2012

2 commits


23 May, 2012

1 commit

  • Pull driver core updates from Greg Kroah-Hartman:
    "Here's the driver core, and other driver subsystems, pull request for
    the 3.5-rc1 merge window.

    Outside of a few minor driver core changes, we ended up with the
    following different subsystem and core changes as well, due to
    interdependancies on the driver core:
    - hyperv driver updates
    - drivers/memory being created and some drivers moved into it
    - extcon driver subsystem created out of the old Android staging
    switch driver code
    - dynamic debug updates
    - printk rework, and /dev/kmsg changes

    All of this has been tested in the linux-next releases for a few weeks
    with no reported problems.

    Signed-off-by: Greg Kroah-Hartman "

    Fix up conflicts in drivers/extcon/extcon-max8997.c where git noticed
    that a patch to the deleted drivers/misc/max8997-muic.c driver needs to
    be applied to this one.

    * tag 'driver-core-3.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (90 commits)
    uio_pdrv_genirq: get irq through platform resource if not set otherwise
    memory: tegra{20,30}-mc: Remove empty *_remove()
    printk() - isolate KERN_CONT users from ordinary complete lines
    sysfs: get rid of some lockdep false positives
    Drivers: hv: util: Properly handle version negotiations.
    Drivers: hv: Get rid of an unnecessary check in vmbus_prep_negotiate_resp()
    memory: tegra{20,30}-mc: Use dev_err_ratelimited()
    driver core: Add dev_*_ratelimited() family
    Driver Core: don't oops with unregistered driver in driver_find_device()
    printk() - restore prefix/timestamp printing for multi-newline strings
    printk: add stub for prepend_timestamp()
    ARM: tegra30: Make MC optional in Kconfig
    ARM: tegra20: Make MC optional in Kconfig
    ARM: tegra30: MC: Remove unnecessary BUG*()
    ARM: tegra20: MC: Remove unnecessary BUG*()
    printk: correctly align __log_buf
    ARM: tegra30: Add Tegra Memory Controller(MC) driver
    ARM: tegra20: Add Tegra Memory Controller(MC) driver
    printk() - restore timestamp printing at console output
    printk() - do not merge continuation lines of different threads
    ...

    Linus Torvalds
     

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
     

05 May, 2012

1 commit

  • Some accessory detection mechanisms are able to detect that something is
    physically present in the socket separately to identifying what is present
    in the socket. This information can be useful to applications, for example
    allowing them to indicate that a potentially broken accessory is present,
    so provide a standard way to report it to userspace.

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

    Mark Brown
     

03 May, 2012

1 commit


30 Apr, 2012

1 commit

  • This patch inform the state of only one cable instead of previous data
    including the state of 32 cables to notifee which use
    extcon_register_interest()
    function to monitor whether the specific cable is attachd or detached.

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

    Chanwoo Choi