Skip to contentSkip to conversation

extcon: Introduce EXTCON_PROP_USB_SUPERSPEED property

PATCH In review Guenter Roeck 3 participants 6 messages Aug 15, 2016 – Aug 18, 2016 External connector subsystem (extcon)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extcon: Introduce EXTCON_PROP_USB_SUPERSPEED property

From: Guenter Roeck <[email protected]>

EXTCON_PROP_USB_SUPERSPEED is necessary to distinguish between USB/USB2 and USB3 connections on USB Type-C cables.

---
Applies on top of extcon-next.

 include/linux/extcon.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
include/linux/extcon.h +7 -1
index ad7a1606a7f3..38d2c0dec2c1 100644
@@ -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. */
Signature · 1 line
2.5.0
maintainer
#1 lore raw

Hi Guenter,

Looks good to me.
I'll add the reference[1] information on patch description and applied it.
[1] https://en.wikipedia.org/wiki/USB#Overview

Thanks,
Chanwoo Choi

Quoted 38 lines · Guenter Roeck

From: Guenter Roeck <[email protected]>

EXTCON_PROP_USB_SUPERSPEED is necessary to distinguish between USB/USB2 and USB3 connections on USB Type-C cables.

---
Applies on top of extcon-next.

 include/linux/extcon.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
include/linux/extcon.h +7 -1
index ad7a1606a7f3..38d2c0dec2c1 100644
@@ -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 lore raw
Quoted 6 lines · Chanwoo Choi

Hi Guenter,

Looks good to me.
I'll add the reference[1] information on patch description and applied it.
[1] https://en.wikipedia.org/wiki/USB#Overview

Thanks!

Guenter

Quoted 43 lines

Thanks,
Chanwoo Choi

Quoted 38 lines · Guenter Roeck

From: Guenter Roeck <[email protected]>

EXTCON_PROP_USB_SUPERSPEED is necessary to distinguish between USB/USB2 and USB3 connections on USB Type-C cables.

---
Applies on top of extcon-next.

 include/linux/extcon.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
include/linux/extcon.h +7 -1
index ad7a1606a7f3..38d2c0dec2c1 100644
@@ -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. */
#4 lore raw
In reply to Chanwoo Choi
Quoted 6 lines · Chanwoo Choi

Hi Guenter,

How about changing the property name for SuperSpeed as following? It is more simple and reduce the length of property name.
- EXTCON_PROP_USB_SUPERSPEED -> EXTCON_PROP_USB_SS

Whatever you prefer is fine.

Thanks,
Guenter

Quoted 63 lines

Regards,
Chanwoo Choi

Quoted 58 lines · Guenter Roeck
Quoted 6 lines · Chanwoo Choi

Hi Guenter,

Looks good to me.
I'll add the reference[1] information on patch description and applied it.
[1] https://en.wikipedia.org/wiki/USB#Overview

Thanks!

Guenter

Quoted 43 lines

Thanks,
Chanwoo Choi

Quoted 38 lines · Guenter Roeck

From: Guenter Roeck <[email protected]>

EXTCON_PROP_USB_SUPERSPEED is necessary to distinguish between USB/USB2 and USB3 connections on USB Type-C cables.

---
Applies on top of extcon-next.

 include/linux/extcon.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
include/linux/extcon.h +7 -1
index ad7a1606a7f3..38d2c0dec2c1 100644
@@ -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. */
maintainer
#3 lore raw
In reply to Guenter Roeck

Hi Guenter,

How about changing the property name for SuperSpeed as following? It is more simple and reduce the length of property name.
- EXTCON_PROP_USB_SUPERSPEED -> EXTCON_PROP_USB_SS

Regards,
Chanwoo Choi

Quoted 58 lines · Guenter Roeck
Quoted 6 lines · Chanwoo Choi

Hi Guenter,

Looks good to me.
I'll add the reference[1] information on patch description and applied it.
[1] https://en.wikipedia.org/wiki/USB#Overview

Thanks!

Guenter

Quoted 43 lines

Thanks,
Chanwoo Choi

Quoted 38 lines · Guenter Roeck

From: Guenter Roeck <[email protected]>

EXTCON_PROP_USB_SUPERSPEED is necessary to distinguish between USB/USB2 and USB3 connections on USB Type-C cables.

---
Applies on top of extcon-next.

 include/linux/extcon.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
include/linux/extcon.h +7 -1
index ad7a1606a7f3..38d2c0dec2c1 100644
@@ -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. */
maintainer
#5 lore raw
In reply to Guenter Roeck
Quoted 8 lines · Guenter Roeck
Quoted 6 lines · Chanwoo Choi

Hi Guenter,

How about changing the property name for SuperSpeed as following? It is more simple and reduce the length of property name.
- EXTCON_PROP_USB_SUPERSPEED -> EXTCON_PROP_USB_SS

Whatever you prefer is fine.

OK. Thanks. I'll change the property name.

Regards,
Chanwoo Choi

Quoted 70 lines

Thanks,
Guenter

Quoted 63 lines

Regards,
Chanwoo Choi

Quoted 58 lines · Guenter Roeck
Quoted 6 lines · Chanwoo Choi

Hi Guenter,

Looks good to me.
I'll add the reference[1] information on patch description and applied it.
[1] https://en.wikipedia.org/wiki/USB#Overview

Thanks!

Guenter

Quoted 43 lines

Thanks,
Chanwoo Choi

Quoted 38 lines · Guenter Roeck

From: Guenter Roeck <[email protected]>

EXTCON_PROP_USB_SUPERSPEED is necessary to distinguish between USB/USB2 and USB3 connections on USB Type-C cables.

---
Applies on top of extcon-next.

 include/linux/extcon.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
include/linux/extcon.h +7 -1
index ad7a1606a7f3..38d2c0dec2c1 100644
@@ -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. */