1. 01 Jul, 2016 2 commits
  2. 30 Jun, 2016 1 commit
    • Arnd Bergmann's avatar
      extcon: link devres into core module · af61f961
      Arnd Bergmann authored
      Splitting the resource-managed functions into a separate module
      means that the extcon core now fails to build because the internal
      "extcon_dev_allocate" symbol is not exported:
      
      ERROR: extcon_dev_allocate [drivers/extcon/devres.ko] undefined!
      
      My guess is that the intention was not to have two separate
      modules (which could be fixed by adding an export, plus the
      normal MODULE_AUTHOR/MODULE_LICENSE/... fields), but have two
      source files in the same module.
      
      This fixes the Makefile accordingly, making the name of the
      module extcon_core.ko, which is created from building both
      extcon.c and devres.c.
      
      Fixes: b225d00f ("extcon: Split out the resource-managed functions from extcon core")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      af61f961
  3. 27 Jun, 2016 3 commits
  4. 23 Jun, 2016 1 commit
  5. 20 Jun, 2016 4 commits
  6. 15 Jun, 2016 1 commit
  7. 09 Jun, 2016 1 commit
    • Chanwoo Choi's avatar
      extcon: Remove the deprecated extcon functions · 830ae442
      Chanwoo Choi authored
      This patch removes the deprecated extcon functions using string type
      to identify the type of external connector. The Commit 2a9de9c0
      ("extcon: Use the unique id for external connector instead of string)
      uses the unique id to separate the type of external connector instead of
      string name.
      - extcon_register_interest()
      - extcon_unregister_interest()
      - extcon_set_cable_state()
      - extcon_get_cable_state()
      
      And, extcon_register_interest() finds the first extcon device to include the
      requested external connector from extcon client device and then register the
      notifier if extcon device argument is NULL. Instead, extcon_register_notifier()
      supports this feature.
      
      But, this patch remains the deprecatd function definition to prevent
      the build break.
      Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      830ae442
  8. 03 Apr, 2016 1 commit
    • Nishanth Menon's avatar
      extcon: palmas: Drop stray IRQF_EARLY_RESUME flag · f75587b8
      Nishanth Menon authored
      Palmas extcon IRQs are nested threaded and wired to the Palmas
      interrupt controller. So, this flag is not required for nested
      IRQs anymore, since commit 3c646f2c ("genirq: Don't suspend
      nested_thread irqs over system suspend") was merged. However, the
      fix in commit ae64e42c ("extcon: palmas: Drop IRQF_EARLY_RESUME
      flag") missed a stray flag causing the following crash on resume on
      BeagleBoard-X15 platform:
      
      [   53.670141] Unhandled fault: imprecise external abort (0x1406) at 0x00000000
      [..]
      [   53.670141] [<c04ae734>] (omap_set_gpio_triggering) from [<c04aeb94>] (omap_gpio_unmask_irq+0xc0/0xc4)
      [   53.670141] [<c04aeb94>] (omap_gpio_unmask_irq) from [<c01a0b88>] (irq_enable+0x30/0x44)
      [   53.670141] [<c01a0b88>] (irq_enable) from [<c019ebd8>] (__enable_irq+0x54/0x78)
      [   53.670141] [<c019ebd8>] (__enable_irq) from [<c01a4e60>] (resume_irqs+0xe8/0x100)
      [   53.670141] [<c01a4e60>] (resume_irqs) from [<c0514840>] (syscore_resume+0x94/0x298)
      [   53.670141] [<c0514840>] (syscore_resume) from [<c01981cc>] (suspend_devices_and_enter+0x790/0x9e4)
      [   53.670141] [<c01981cc>] (suspend_devices_and_enter) from [<c0198a60>] (pm_suspend+0x640/0x75c)
      [   53.670141] [<c0198a60>] (pm_suspend) from [<c0196bec>] (state_store+0x64/0xb8)
      [   53.670141] [<c0196bec>] (state_store) from [<c0307944>] (kernfs_fop_write+0xc0/0x1bc)
      [   53.670141] [<c0307944>] (kernfs_fop_write) from [<c028acb0>] (__vfs_write+0x1c/0xd8)
      [   53.670141] [<c028acb0>] (__vfs_write) from [<c028bba0>] (vfs_write+0x90/0x16c)
      [   53.670141] [<c028bba0>] (vfs_write) from [<c028c8c0>] (SyS_write+0x44/0x9c)
      [   53.670141] [<c028c8c0>] (SyS_write) from [<c0107840>] (ret_fast_syscall+0x0/0x1c)
      [..]
      
      Fixes: ae64e42c ("extcon: palmas: Drop IRQF_EARLY_RESUME flag")
      Cc: Grygorii Strashko <grygorii.strashko@ti.com>
      Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
      Cc: Chanwoo Choi <cw00.choi@samsung.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Lee Jones <lee.jones@linaro.org>
      Cc: Roger Quadros <rogerq@ti.com>
      Reviewed-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Acked-by: default avatarRoger Quadros <rogerq@ti.com>
      Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      f75587b8
  9. 28 Feb, 2016 1 commit
  10. 04 Feb, 2016 2 commits
  11. 24 Jan, 2016 4 commits
  12. 20 Dec, 2015 1 commit
    • Sergei Shtylyov's avatar
      extcon: add Maxim MAX3355 driver · 08a0a4f9
      Sergei Shtylyov authored
      Maxim Integrated MAX3355E chip integrates a charge pump and comparators to
      enable a system with an integrated USB OTG dual-role transceiver to
      function as an USB OTG dual-role device. In addition to sensing/controlling
      Vbus, the chip also passes thru the ID signal from the USB OTG connector.
      On some Renesas boards, this signal is just fed into the SoC thru a GPIO
      pin -- there's no real OTG controller, only host and gadget USB controllers
      sharing the same USB bus; however, we'd like to allow host or gadget
      drivers to be loaded depending on the cable type, hence the need for the
      MAX3355 extcon driver. The Vbus status signals are also wired to GPIOs
      (however, we aren't currently interested in them), the OFFVBUS# signal is
      controlled by the host controllers, there's also the SHDN# signal wired to
      a GPIO, it should be driven high for the normal operation.
      Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
      Acked-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      [cw00.choi: Add the GPIOLIB dependency]
      Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      08a0a4f9
  13. 14 Dec, 2015 4 commits
  14. 26 Nov, 2015 1 commit
  15. 23 Nov, 2015 2 commits
  16. 19 Nov, 2015 4 commits
  17. 15 Oct, 2015 1 commit
    • Chanwoo Choi's avatar
      extcon: Modify the id and name of external connector · 11eecf91
      Chanwoo Choi authored
      This patch modifies the id and name of external connector with the
      additional prefix to clarify both attribute and meaning of external
      connector as following:
      - EXTCON_CHG_* mean the charger connector.
      - EXTCON_JACK_* mean the jack connector.
      - EXTCON_DISP_* mean the display port connector.
      
      Following table show the new name of external connector with old name:
      --------------------------------------------------
      Old extcon name         | New extcon name        |
      --------------------------------------------------
      EXTCON_TA               | EXTCON_CHG_USB_DCP     |
      EXTCON_CHARGE_DOWNSTREAM| EXTCON_CHG_USB_CDP     |
      EXTCON_FAST_CHARGER     | EXTCON_CHG_USB_FAST    |
      EXTCON_SLOW_CHARGER     | EXTCON_CHG_USB_SLOW    |
      --------------------------------------------------
      EXTCON_MICROPHONE       | EXTCON_JACK_MICROPHONE |
      EXTCON_HEADPHONE        | EXTCON_JACK_HEADPHONE  |
      EXTCON_LINE_IN          | EXTCON_JACK_LINE_IN    |
      EXTCON_LINE_OUT         | EXTCON_JACK_LINE_OUT   |
      EXTCON_VIDEO_IN         | EXTCON_JACK_VIDEO_IN   |
      EXTCON_VIDEO_OUT        | EXTCON_JACK_VIDEO_OUT  |
      EXTCON_SPDIF_IN         | EXTCON_JACK_SPDIF_IN   |
      EXTCON_SPDIF_OUT        | EXTCON_JACK_SPDIF_OUT  |
      --------------------------------------------------
      EXTCON_HMDI             | EXTCON_DISP_HDMI       |
      EXTCON_MHL              | EXTCON_DISP_MHL        |
      EXTCON_DVI              | EXTCON_DISP_DVI        |
      EXTCON_VGA              | EXTCON_DISP_VGA        |
      --------------------------------------------------
      
      And, when altering the name of USB charger connector, EXTCON refers to the
      "Battery Charging v1.2 Spec and Adopters Agreement"[1] to use the standard
      name of USB charging port as following. Following name of USB charging port
      are already used in power_supply subsystem. We chan check it on patch[2].
      - EXTCON_CHG_USB_SDP	/* Standard Downstream Port */
      - EXTCON_CHG_USB_DCP	/* Dedicated Charging Port */
      - EXTCON_CHG_USB_CDP	/* Charging Downstream Port */
      - EXTCON_CHG_USB_ACA	/* Accessory Charger Adapter */
      
      [1] www.usb.org/developers/docs/devclass_docs/BCv1.2_070312.zip
      [2] commit 85efc8a1 ("power_supply: Add types for USB chargers")
      Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      [ckeepax: For the Arizona changes]
      Acked-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Reviewed-by: default avatarRoger Quadros <rogerq@ti.com>
      11eecf91
  18. 30 Sep, 2015 6 commits