extcon: Introduce EXTCON_PROP_USB_SUPERSPEED property
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
@@ -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
Chanwoo Choi
maintainerHi 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_SUPERSPEEDis necessary to distinguish between USB/USB2 and USB3 connections on USB Type-C cables.Cc Chris Zhong <[email protected]>Signed-off-by Guenter Roeck <[email protected]>---
Applies on top of extcon-next.include/linux/extcon.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)include/linux/extcon.h +7
-1@@ -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. */
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 ChoiQuoted 38 lines · Guenter Roeck
From: Guenter Roeck <[email protected]>
EXTCON_PROP_USB_SUPERSPEEDis necessary to distinguish between USB/USB2 and USB3 connections on USB Type-C cables.Cc Chris Zhong <[email protected]>Signed-off-by Guenter Roeck <[email protected]>---
Applies on top of extcon-next.include/linux/extcon.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)include/linux/extcon.h +7
-1@@ -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. */
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 ChoiQuoted 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#OverviewThanks!
Guenter
Quoted 43 lines
Thanks,
Chanwoo ChoiQuoted 38 lines · Guenter Roeck
From: Guenter Roeck <[email protected]>
EXTCON_PROP_USB_SUPERSPEEDis necessary to distinguish between USB/USB2 and USB3 connections on USB Type-C cables.Cc Chris Zhong <[email protected]>Signed-off-by Guenter Roeck <[email protected]>---
Applies on top of extcon-next.include/linux/extcon.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)include/linux/extcon.h +7
-1@@ -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. */
Chanwoo Choi
maintainerHi 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#OverviewThanks!
Guenter
Quoted 43 lines
Thanks,
Chanwoo ChoiQuoted 38 lines · Guenter Roeck
From: Guenter Roeck <[email protected]>
EXTCON_PROP_USB_SUPERSPEEDis necessary to distinguish between USB/USB2 and USB3 connections on USB Type-C cables.Cc Chris Zhong <[email protected]>Signed-off-by Guenter Roeck <[email protected]>---
Applies on top of extcon-next.include/linux/extcon.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)include/linux/extcon.h +7
-1@@ -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. */
Chanwoo Choi
maintainerQuoted 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_SSWhatever you prefer is fine.
OK. Thanks. I'll change the property name.
Regards,
Chanwoo Choi
Quoted 70 lines
Thanks,
GuenterQuoted 63 lines
Regards,
Chanwoo ChoiQuoted 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#OverviewThanks!
Guenter
Quoted 43 lines
Thanks,
Chanwoo ChoiQuoted 38 lines · Guenter Roeck
From: Guenter Roeck <[email protected]>
EXTCON_PROP_USB_SUPERSPEEDis necessary to distinguish between USB/USB2 and USB3 connections on USB Type-C cables.Cc Chris Zhong <[email protected]>Signed-off-by Guenter Roeck <[email protected]>---
Applies on top of extcon-next.include/linux/extcon.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)include/linux/extcon.h +7
-1@@ -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. */