31 Jul, 2019

1 commit


19 Jun, 2019

1 commit

  • Based on 2 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

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

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

27 Nov, 2017

1 commit


23 Oct, 2017

1 commit

  • The extcon has two type of extcon devices as following.
    - 'extcon provider deivce' adds new extcon device and detect the
    state/properties of external connector. Also, it notifies the
    state/properties to the extcon consumer device.
    - 'extcon consumer device' gets the change state/properties
    from extcon provider device.
    Prior to that, include/linux/extcon.h contains all exported API for
    both provider and consumer device driver. To clarify the meaning of
    header file and to remove the wrong use-case on consumer device,
    this patch separates into extcon.h and extcon-provider.h.

    [Description for include/linux/{extcon.h|extcon-provider.h}]
    - extcon.h includes the extcon API and data structure for extcon consumer
    device driver. This header file contains the following APIs:
    : Register/unregister the notifier to catch the change of extcon device
    : Get the extcon device instance
    : Get the extcon device name
    : Get the state of each external connector
    : Get the property value of each external connector
    : Get the property capability of each external connector

    - extcon-provider.h includes the extcon API and data structure for extcon
    provider device driver. This header file contains the following APIs:
    : Include 'include/linux/extcon.h'
    : Allocate the memory for extcon device instance
    : Register/unregister extcon device
    : Set the state of each external connector
    : Set the property value of each external connector
    : Set the property capability of each external connector

    Signed-off-by: Chanwoo Choi
    Acked-by: Sebastian Reichel
    Acked-by: Chen-Yu Tsai
    Acked-by: Charles Keepax
    Acked-by: Lee Jones
    Acked-by: Felipe Balbi
    Acked-by: Yoshihiro Shimoda
    Acked-by: Kishon Vijay Abraham I

    Chanwoo Choi
     

09 Jan, 2017

1 commit


13 Sep, 2016

1 commit

  • This patch alters the renamed extcon API to set the state of the external
    connectors instead of deprecated extcon_set_cable_state_().

    Because the patch[1] modifies the function name to maintain the function
    naming pattern.
    - extcon_set_cable_state_() -> extcon_set_state_sync()
    - extcon_get_cable_state_() -> extcon_get_state()

    [1] https://lkml.org/lkml/2016/8/4/729
    - extcon: Rename the extcon_set/get_state() to maintain the function naming pattern

    Signed-off-by: Chanwoo Choi
    Acked-by: Charles Keepax
    Acked-by: Roger Quadros

    Chanwoo Choi
     

08 Aug, 2016

2 commits


02 Jul, 2016

1 commit

  • adding suspend and resume funtionality for extcon-adc-jack
    driver to configure system wake up for extcon events,
    also adding support to enable/disable system wakeup
    through flag wakeup_source based on platform requirement.

    Signed-off-by: Venkat Reddy Talla
    Signed-off-by: Chanwoo Choi

    Venkat Reddy Talla
     

13 Jun, 2015

1 commit

  • This patch just redefine the unique id of supported external connectors without
    'enum extcon' type. Because unique id would be used on devictree file(*.dts) to
    indicate the specific external connectors like key number of input framework.
    So, I have the plan to move this definitions to following header file which
    includes the unique id of supported external connectors.
    - include/dt-bindings/extcon/extcon.h

    Fixes: 2a9de9c0f08d ("extcon: Use the unique id for external connector instead of string")
    Signed-off-by: Chanwoo Choi
    Signed-off-by: Greg Kroah-Hartman

    Chanwoo Choi
     

19 May, 2015

2 commits

  • This patch removes the optional name of extcon device. Instead,
    extcon_dev_register() set the device name as 'extcon[number]' naming pattern.
    - /sys/class/extcon/[hardcoded device name] -> /sys/class/extcon/extcon[number]

    Signed-off-by: Chanwoo Choi
    Acked-by: Krzysztof Kozlowski
    Cc: MyungJoo Ham
    Cc: Charles Keepax
    Cc: Graeme Gregory
    Cc: Kishon Vijay Abraham I
    Cc: Krzysztof Kozlowski
    Cc: Jaewon Kim

    Chanwoo Choi
     
  • This patch removes the 'num_cables' filed from 'struct adc_jack_pdata'
    because 'struct extcon_dev' contains the 'max_supported' field which
    means the number of supported cable of extcon device.

    Signed-off-by: Chanwoo Choi

    Chanwoo Choi
     

26 Jan, 2015

1 commit


20 Oct, 2014

1 commit


16 Jun, 2014

1 commit


29 Apr, 2014

1 commit


24 Apr, 2014

1 commit

  • Use the resource-managed extcon device register function (i.e.
    devm_extcon_dev_register()) instead of extcon_dev_register(). If extcon device
    is attached with this function, that extcon device is automatically unregistered
    on driver detach. That reduces tiresome managing code.

    Signed-off-by: Sangjung Woo
    Signed-off-by: Chanwoo Choi

    Sangjung Woo
     

27 Sep, 2013

4 commits


05 Aug, 2013

1 commit

  • The debounce timeout is generally quite long and the work not performance
    critical so allow the scheduler to run the work anywhere rather than in
    the normal per-CPU workqueue.

    Signed-off-by: Mark Brown
    Acked-by: Viresh Kumar
    Signed-off-by: Chanwoo Choi
    Signed-off-by: Myungjoo Ham

    Mark Brown
     

07 Feb, 2013

1 commit


27 Nov, 2012

3 commits


23 Oct, 2012

2 commits


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
     

06 Sep, 2012

1 commit

  • 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