From patchwork Wed Dec 21 06:10:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 9482521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9713660821 for ; Wed, 21 Dec 2016 06:13:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 874D827FBE for ; Wed, 21 Dec 2016 06:13:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BE1128118; Wed, 21 Dec 2016 06:13:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8FBB227FBE for ; Wed, 21 Dec 2016 06:13:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cJa7m-0002Tp-Ph; Wed, 21 Dec 2016 06:11:38 +0000 Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cJa7c-0002DG-R0 for linux-arm-kernel@lists.infradead.org; Wed, 21 Dec 2016 06:11:29 +0000 Received: by mail-pg0-x22a.google.com with SMTP id g1so42380124pgn.0 for ; Tue, 20 Dec 2016 22:11:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=OTU0u9UvmDjzVmckxqPlfkMDmKaS79PlR+QypGNjH5s=; b=iQTGZsvNtQX7/XQ3ILVJ0sT/fDXkZzONFOZ2+zvk4J87Zmk5WvBHbs9OvCAo/Vxj69 mHP5/MPsJcJt7gDNO6AT7Ck2LBkSBPoNmsMtX2nbUHo1xp+ydBGz0XCLBQvzANvErTBa jEQrNzkPN3S99cV8Nh8TpOk1kQOYEYwC2306A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=OTU0u9UvmDjzVmckxqPlfkMDmKaS79PlR+QypGNjH5s=; b=smj/DLxljGw+Qd3bl1b1UTHtrem410yBPnCmbEsjgKvJyFUO3GMr+VT45wwY0sN/fJ KJ50E0/R/h2agM+EKBfbkIEzb4pfehFf0dQ8+sbyTGiGhpDY3IcKsVcbhQOyypj+xt5F D7ExXQan6zlNZWC0rfnP9ZOgUh9CEfydSnyT59Ew7TT+Fb4v3y/bRQTQP6j26dTUDMJa 8ZlldwzTz/dFu+nut5EkXW6zjXeJiZU8d6HXeNDQXCYVI/UK/b72FFK/1gJVJBrPe5rX t1q6m0B5ajs+rxy8+KopvqhRN7mF9k3U8x9z7Jr5Xh1Z/+n5L+IPGsdBvaqHzOHUVCoW 6ZXw== X-Gm-Message-State: AIkVDXKNBElvAgqzsxI4x4XHLAqw1DXF95BcDoDnHS9rTXZ2l79Of7DuLdcdWfph+QiK0uVD X-Received: by 10.98.223.203 with SMTP id d72mr2733348pfl.2.1482300667304; Tue, 20 Dec 2016 22:11:07 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id y89sm43302095pfk.83.2016.12.20.22.11.01 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Dec 2016 22:11:05 -0800 (PST) From: Baolin Wang To: myungjoo.ham@samsung.com, cw00.choi@samsung.com, wens@csie.org, kishon@ti.com, heiko@sntech.de Subject: [PATCH 1/3] extcon: Add documentation for EXTCON_CHG_USB_* and EXTCON_USB_* Date: Wed, 21 Dec 2016 14:10:47 +0800 Message-Id: <7b9836ce2ca34118a2acd1ea113605a5f13b4439.1482300213.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161220_221128_933503_BFE110BD X-CRM114-Status: GOOD ( 11.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linaro-kernel@lists.linaro.org, baolin.wang@linaro.org, linux-kernel@vger.kernel.org, neilb@suse.com, linux-rockchip@lists.infradead.org, broonie@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Current there is both "EXTCON_USB" and "EXTCON_CHG_USB_SDP" which both seem to suggest a standard downstream port. But there is no documentation describing how these relate. Thus add documentation to describe EXTCON_CHG_USB_SDP should always appear together with EXTCON_USB, and EXTCON_CHG_USB_ACA would normally appear with EXTCON_USB_HOST. Signed-off-by: Baolin Wang --- include/linux/extcon.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/linux/extcon.h b/include/linux/extcon.h index b871c0c..6498b05 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -46,7 +46,14 @@ #define EXTCON_USB 1 #define EXTCON_USB_HOST 2 -/* Charging external connector */ +/* + * Charging external connector + * + * When one SDP charger connector was reported, we should also report + * the USB connector, which means EXTCON_CHG_USB_SDP should always + * appear together with EXTCON_USB. The same as ACA charger connector, + * EXTCON_CHG_USB_ACA should always appear with EXTCON_USB_HOST. + */ #define EXTCON_CHG_USB_SDP 5 /* Standard Downstream Port */ #define EXTCON_CHG_USB_DCP 6 /* Dedicated Charging Port */ #define EXTCON_CHG_USB_CDP 7 /* Charging Downstream Port */