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: 88670 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp2108055qgi; Tue, 20 Dec 2016 22:11:15 -0800 (PST) X-Received: by 10.99.101.65 with SMTP id z62mr5147269pgb.74.1482300675006; Tue, 20 Dec 2016 22:11:15 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j61si25337234plb.116.2016.12.20.22.11.14; Tue, 20 Dec 2016 22:11:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757247AbcLUGLJ (ORCPT + 25 others); Wed, 21 Dec 2016 01:11:09 -0500 Received: from mail-pg0-f45.google.com ([74.125.83.45]:36390 "EHLO mail-pg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756279AbcLUGLI (ORCPT ); Wed, 21 Dec 2016 01:11:08 -0500 Received: by mail-pg0-f45.google.com with SMTP id f188so81672963pgc.3 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=EttPSFGxUGHMpI930QkBaTR46do0hdbNlm4MnnaMAsJofEM5EOqcwE+Ze4g/sa9Wz3 hg3nx2RlbyLtMSaVBCEfShtwkPfDd0XEG/OnKjI/SEeGtEVa2PFGtjNkUK/RrPCbfA8O YGje2Aaqq7Yn/vt+9GCGp56WRfjzMXkqOGl/d0po4boXsdHOqLMbrpyPHLHnW17Kv1Tz gmW4FgcHc+kvIUt+I7D2D5eXhZsx4/ngZIc5beKjVzNkssibrrjHHONX5FmV2vqCAy6l VhybU4cwg0w+CljWEb9cqLkcVLspwMjGqFr7VAYza1ENyDzM0tjqjfVLWa0mndxpL5uA bycA== X-Gm-Message-State: AIkVDXKOlCSSALupUqleE/CF34HJ0HnJnFsAPD4hbntm+P6dCGPhFlWn8Meg2PkB0B214lXi 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 Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linaro-kernel@lists.linaro.org, baolin.wang@linaro.org, broonie@kernel.org, neilb@suse.com 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 1.7.9.5 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 */