From: Guenter Roeck <linux@roeck-us.net>
To: Chanwoo Choi <cw00.choi@samsung.com>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>,
linux-kernel@vger.kernel.org, Guenter Roeck <groeck@chromium.org>,
Chris Zhong <zyw@rock-chips.com>
Subject: [PATCH] extcon: Introduce EXTCON_PROP_USB_SUPERSPEED property
Date: Mon, 15 Aug 2016 06:15:35 -0700 [thread overview]
Message-ID: <1471266935-25287-1-git-send-email-linux@roeck-us.net> (raw)
From: Guenter Roeck <groeck@chromium.org>
EXTCON_PROP_USB_SUPERSPEED is necessary to distinguish between USB/USB2
and USB3 connections on USB Type-C cables.
Cc: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Guenter Roeck <groeck@chromium.org>
---
Applies on top of extcon-next.
include/linux/extcon.h | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/linux/extcon.h b/include/linux/extcon.h
index ad7a1606a7f3..38d2c0dec2c1 100644
--- a/include/linux/extcon.h
+++ b/include/linux/extcon.h
@@ -107,12 +107,18 @@
* @type: integer (intval)
* @value: 0 (normal) or 1 (flip)
* @default: 0 (normal)
+ * - EXTCON_PROP_USB_SUPERSPEED
+ * @type: integer (intval)
+ * @value: 0 (USB/USB2) or 1 (USB3)
+ * @default: 0 (USB/USB2)
+ *
*/
#define EXTCON_PROP_USB_VBUS 0
#define EXTCON_PROP_USB_TYPEC_POLARITY 1
+#define EXTCON_PROP_USB_SUPERSPEED 2
#define EXTCON_PROP_USB_MIN 0
-#define EXTCON_PROP_USB_MAX 1
+#define EXTCON_PROP_USB_MAX 2
#define EXTCON_PROP_USB_CNT (EXTCON_PROP_USB_MAX - EXTCON_PROP_USB_MIN + 1)
/* Properties of EXTCON_TYPE_CHG. */
--
2.5.0
next reply other threads:[~2016-08-15 13:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20160815131555epcas1p2866c4a7f64e521c7b7aea2b7a8acc0e4@epcas1p2.samsung.com>
2016-08-15 13:15 ` Guenter Roeck [this message]
2016-08-16 0:55 ` [PATCH] extcon: Introduce EXTCON_PROP_USB_SUPERSPEED property Chanwoo Choi
2016-08-16 1:41 ` Guenter Roeck
2016-08-18 0:37 ` Chanwoo Choi
2016-08-18 0:41 ` Guenter Roeck
2016-08-18 1:25 ` Chanwoo Choi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1471266935-25287-1-git-send-email-linux@roeck-us.net \
--to=linux@roeck-us.net \
--cc=cw00.choi@samsung.com \
--cc=groeck@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=zyw@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox