From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751725AbbFCBat (ORCPT ); Tue, 2 Jun 2015 21:30:49 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:23034 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751479AbbFCBaj (ORCPT ); Tue, 2 Jun 2015 21:30:39 -0400 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 X-AuditID: cbfee68e-f79c56d000006efb-b5-556e58bba603 Content-transfer-encoding: 8BIT Message-id: <556E58BB.1070509@samsung.com> Date: Wed, 03 Jun 2015 10:30:35 +0900 From: Chanwoo Choi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 To: Greg KH , =?UTF-8?B?Iuy1nOywrOyasCAoc2Ftcw==?= =?UTF-8?B?dW5nKSI=?= Cc: linux-kernel , "myungjoo.ham@samsung.com" , =?UTF-8?B?64yA7J246riw?= , Kyungmin Park Subject: [GIT PULL] extcon next for 4.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJLMWRmVeSWpSXmKPExsWyRsSkUHdPRF6owdQ+FovrX56zWjQvXs9m Men+BBaLs01v2C0u75rDZnG7cQWbA5vH/rlr2D36tqxi9Pi8SS6AOYrLJiU1J7MstUjfLoEr 48bZY6wFn40rbvdpNTAuUe9i5OSQEDCR+H7uBjOELSZx4d56ti5GLg4hgaWMEjueX2OEKfp8 6RoLRGIRo8TCAx1MIAleAUGJH5PvASU4OJgF5CWOXMoGCTMLqEtMmrcIbKiQwANGiWkHYyDK tSROnfgHFmcRUJWY3DsZbAwbUHz/ixtsILaoQJjEyulXwEaKCNRLHPiiC7KWWeAEo8S5oytY QGqEgea/uvuUHSQhITCPXeLMn+dMEEMFJL5NPgTWLCEgK7HpANRjkhIHV9xgmcAoMgvJ1bMQ rp6F5OoFjMyrGEVTC5ILipPSi4z0ih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RlB+fFawcduN6IREvp+2S9 f72TdcEK96s9z/e8f+S5caJa4hrBhlMmV1YweicWfNjd5D5LRkvO74j0qrI/Lrdn7u/j/fBd n3FSzWqtmcmnn32c+vKgL+97+d0Nl4rltn0vyZO+KnOMt0X+tRJLcUaioRZzUXEiAL0YoPTW AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Greg, This is extcon-next full request for v4.2. I add detailed description of this pull request on below. Please pull extcon with following updates. Best Regards, Chanwoo Choi The following changes since commit e26081808edadfd257c6c9d81014e3b25e9a6118: Linux 4.1-rc4 (2015-05-18 10:13:47 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon.git tags/extcon-next-for-4.2 for you to fetch changes up to f8df88081183bd4d3c461c617c3519445eb85642: extcon: Remove optional print_name() function pointer of extcon_dev (2015-05-29 19:56:11 +0900) ---------------------------------------------------------------- Update extcon for v4.2 This patchset include the huge update of extcon core and add the new one extcon driver and fix minor isseu of extcon drivers. Detailed description for patchset: 1. Update the extcon core. - Modify the extcon device name on sysfs from device name name to 'extcon[X]' as following because if same extcon device are included in H/W development board, the one of the two device driver might be failed on the probe(). : /sys/class/extcon/[device name] -> /sys/class/extcon/extcon[X] - Use the unique id for external connectors instead of legacy string name. Previously, extcon used the string name to identify the type of external connectors. This way have the many potential issues. So, extcon core define the unique id for each external connectors as following: enum extcon { EXTCON_NONE = 0x0, /* USB external connector */ EXTCON_USB = 0x1, EXTCON_USB_HOST = 0x2, /* Charger external connector */ EXTCON_TA = 0x10, EXTCON_FAST_CHARGER = 0x11, EXTCON_SLOW_CHARGER = 0x12, EXTCON_CHARGE_DOWNSTREAM = 0x13, /* Audio and video external connector */ EXTCON_LINE_IN = 0x20, EXTCON_LINE_OUT = 0x21, EXTCON_MICROPHONE = 0x22, EXTCON_HEADPHONE = 0x23, ... }; - Update tye prototype of extcon_register_notifier() by using the unique id (enum extcon) of external connectors. - Add extcon_get_edev_name() API to get the name of extcon device on extcon client driver because the name is included in 'struct extcon_dev' and 'struct extcon_dev' should be handled in only drivers/extcon directory. So. if extcon client need the name of extcon device, they could use this function. - Unify the jig/dock and MHL-TA cable name on extcon driver. : JIG-{USB-ON|USB-OFF|UART-ON|UART-OFF} -> JIG : Dock-{Smart|Desk|Audio|Card} -> DOCK : MHL-TA -> TA - Use the capital letter for the name of all external connectors. - Remove the optional print_name() function pointer from struct extcon_dev to maintain the consistent name of extcon device. 2. Add the new extcon-axp288.c extcon driver. - The extcon-axp288.c driver support for AXP288 PMIC which has the BC1.2 charger detection capability. So this extcon driver can detect the EXTCON_SLOW_CHARGER, EXTCON_CHARGE_DOWNSTREAM and EXTCON_FAST_CHARGER. 3. Update the extcon-arizona.c driver. - Add support for selective detection mode when headphone detection. - Apply HP clamps for WM8280 4. Clean-up the extcon core and drivers. - Add manufactor information of each extcon device. - Fix checkpatch warning and minor coding style on extcon.c.c - Fix build break if GPIOLIB is not enabled on extcon-usb-gpiio.c. - Set the direction of gpio when calling devm_gpiod_get() on extcon-usb-gpio.c ---------------------------------------------------------------- Chanwoo Choi (14): extcon: Add manufactor name of each extcon device extcon: Modify the device name as extcon[X] for sysfs extcon: Add extcon_get_edev_name() API to get the extcon device name extcon: Fix the checkpatch warning and minor coding style issue extcon: arizona: Remove the setting of device name extcon: Unify the jig cable names on rt8973 and max14577/77693/77843 extcon: Unify the dock device names on max8997/77693 extcon: Alter MHL-TA cable name to TA cable name extcon: adc-jack: Remove the unneeded num_cables field extcon: Remove the optional name of extcon device extcon: Use the unique id for external connector instead of string extcon: Use capital letter for the name of external connectors extcon: Update the prototype of extcon_register_notifier() with enum extcon extcon: Remove optional print_name() function pointer of extcon_dev Charles Keepax (1): extcon: arizona: Apply HP clamps correctly for WM8280 Geert Uytterhoeven (1): extcon: Allow compile test of GPIO consumers if !GPIOLIB Inha Song (2): extcon: arizona: Add support for select accessory detect mode when headphone detection mfd: arizona: Update DT binding to support hpdet channel Ramakrishna Pallala (1): extcon: axp288: Add axp288 extcon driver support Richard Fitzgerald (1): extcon: arizona: Rename hpdet_ip to make its purpose clearer Uwe Kleine-König (1): extcon: usb-gpio: use flags argument of devm_gpiod_get to set direction Documentation/devicetree/bindings/mfd/arizona.txt | 6 + drivers/extcon/Kconfig | 25 +- drivers/extcon/Makefile | 1 + drivers/extcon/extcon-adc-jack.c | 13 - drivers/extcon/extcon-arizona.c | 88 ++--- drivers/extcon/extcon-axp288.c | 381 ++++++++++++++++++++++ drivers/extcon/extcon-gpio.c | 1 - drivers/extcon/extcon-max14577.c | 60 +--- drivers/extcon/extcon-max77693.c | 140 +++----- drivers/extcon/extcon-max77843.c | 89 ++--- drivers/extcon/extcon-max8997.c | 64 ++-- drivers/extcon/extcon-palmas.c | 23 +- drivers/extcon/extcon-rt8973a.c | 55 +--- drivers/extcon/extcon-sm5502.c | 33 +- drivers/extcon/extcon-usb-gpio.c | 35 +- drivers/extcon/extcon.c | 316 ++++++++++-------- drivers/usb/phy/phy-tahvo.c | 9 +- include/dt-bindings/mfd/arizona.h | 4 + include/linux/extcon.h | 142 ++++---- include/linux/extcon/extcon-adc-jack.h | 5 +- include/linux/mfd/arizona/pdata.h | 3 + include/linux/mfd/axp20x.h | 5 + 22 files changed, 885 insertions(+), 613 deletions(-) create mode 100644 drivers/extcon/extcon-axp288.c