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: 9482509 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 3CCAE60821 for ; Wed, 21 Dec 2016 06:11:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AF4D27FBE for ; Wed, 21 Dec 2016 06:11:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C9C428118; Wed, 21 Dec 2016 06:11:37 +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 9460727FBE for ; Wed, 21 Dec 2016 06:11:36 +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 1cJa7f-0002S2-Jb; Wed, 21 Dec 2016 06:11:31 +0000 Received: from mail-pg0-x229.google.com ([2607:f8b0:400e:c05::229]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cJa7c-0002DF-R5 for linux-rockchip@lists.infradead.org; Wed, 21 Dec 2016 06:11:29 +0000 Received: by mail-pg0-x229.google.com with SMTP id g1so42380122pgn.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=A8jCklYmccVyurrCI0fKjN6ZzD8TZxnfSz4k2QsXeFVbsM42SF0lgWuTVoPWhQd2JE T3zdGVpTcNiAragGP0RKBh9CfUA61g1o+6kzXlAXHLHkiaHnIeVKkbwl1G4n9C3T9k/S KKJWcXdnrQLxFC1Y0DOlvWGdNh2t7UND6fAa4UKUCx6upCDKAvbJYSNW165K7zQaHqJb z9Pz1WcCWL3SQyB8Vg2NaBrpbWqGXwhivqdLEEH1yS+Yfmt1hT2dVOX14maVU/0ihfjh +6VuUBzCD5B5fA0kBfIjgOXS5lsPS/+x+IZO+L7HH8sP+M1SExm7BeuJym5s0f5dfBcy fjzQ== X-Gm-Message-State: AIkVDXL+2XFClHR8I3k0XXEDr8fVvApQDbBR/i9RGWnw91oqA+TAc45eIBkgTLTdoXm7T089 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_939464_63BC85FF X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms 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-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=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 */