Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1545591

[PATCH 1/3] extcon: Add documentation for EXTCON_CHG_USB_* and EXTCON_USB_*

From Baolin Wang <baolin.wang@linaro.org>
Newsgroups linux.kernel
Subject [PATCH 1/3] extcon: Add documentation for EXTCON_CHG_USB_* and EXTCON_USB_*
Date 2016-12-21 07:20 +0100
Message-ID <sQIpP-8aA-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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 <baolin.wang@linaro.org>
---
 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 */
-- 
1.7.9.5

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 1/3] extcon: Add documentation for EXTCON_CHG_USB_* and EXTCON_USB_* Baolin Wang <baolin.wang@linaro.org> - 2016-12-21 07:20 +0100
  [PATCH 2/3] extcon: axp288: Set EXTCON_USB when EXTCON_CHG_USB_SDP was set Baolin Wang <baolin.wang@linaro.org> - 2016-12-21 07:20 +0100
    Re: [PATCH 2/3] extcon: axp288: Set EXTCON_USB when EXTCON_CHG_USB_SDP  was set Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-21 08:30 +0100
      Re: [PATCH 2/3] extcon: axp288: Set EXTCON_USB when  EXTCON_CHG_USB_SDP was set Baolin Wang <baolin.wang@linaro.org> - 2016-12-21 09:00 +0100
        Re: [PATCH 2/3] extcon: axp288: Set EXTCON_USB when EXTCON_CHG_USB_SDP  was set Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-21 09:00 +0100
  [PATCH 3/3] phy: rockchip-inno-usb2: Set EXTCON_USB when EXTCON_CHG_USB_SDP was set Baolin Wang <baolin.wang@linaro.org> - 2016-12-21 07:20 +0100
    Re: [PATCH 3/3] phy: rockchip-inno-usb2: Set EXTCON_USB when  EXTCON_CHG_USB_SDP was set Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-21 08:30 +0100
      Re: [PATCH 3/3] phy: rockchip-inno-usb2: Set EXTCON_USB when  EXTCON_CHG_USB_SDP was set Baolin Wang <baolin.wang@linaro.org> - 2016-12-21 09:00 +0100
  Re: [PATCH 1/3] extcon: Add documentation for EXTCON_CHG_USB_* and  EXTCON_USB_* Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-21 08:30 +0100
    Re: [PATCH 1/3] extcon: Add documentation for EXTCON_CHG_USB_* and EXTCON_USB_* Baolin Wang <baolin.wang@linaro.org> - 2016-12-21 09:00 +0100
      Re: [PATCH 1/3] extcon: Add documentation for EXTCON_CHG_USB_* and  EXTCON_USB_* Chanwoo Choi <cw00.choi@samsung.com> - 2016-12-21 09:00 +0100
        Re: [PATCH 1/3] extcon: Add documentation for EXTCON_CHG_USB_* and EXTCON_USB_* Baolin Wang <baolin.wang@linaro.org> - 2016-12-21 09:00 +0100

csiph-web