* [PATCH] usb : Report additional USB classes
@ 2020-05-31 12:23 Rob Gill
2020-05-31 12:32 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Rob Gill @ 2020-05-31 12:23 UTC (permalink / raw)
To: linux-usb; +Cc: Rob Gill
Changelog : Add #defines and strings for additional USB classes
0fh (Personal Healthcare), 10h (USB Type-C combined audio/video devices), 11h (USB billboard), 12h (USB Type-C bridge). [https://www.usb.org/defined-class-codes]
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
---
drivers/usb/core/devices.c | 4 ++++
include/uapi/linux/usb/ch9.h | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/drivers/usb/core/devices.c b/drivers/usb/core/devices.c
index 44f28a114..dda791e5b 100644
--- a/drivers/usb/core/devices.c
+++ b/drivers/usb/core/devices.c
@@ -133,6 +133,10 @@ static const struct class_info clas_info[] = {
{USB_CLASS_CSCID, "scard"},
{USB_CLASS_CONTENT_SEC, "c-sec"},
{USB_CLASS_VIDEO, "video"},
+ {USB_CLASS_PERSONAL_HEALTHCARE, "phlth"},
+ {USB_CLASS_AUDIO_VIDEO, "av"},
+ {USB_CLASS_BILLBOARD, "blbrd"},
+ {USB_CLASS_USB_TYPE_C_BRIDGE, "bridg"},
{USB_CLASS_WIRELESS_CONTROLLER, "wlcon"},
{USB_CLASS_MISC, "misc"},
{USB_CLASS_APP_SPEC, "app."},
diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/ch9.h
index 2b623f36a..90f63f55b 100644
--- a/include/uapi/linux/usb/ch9.h
+++ b/include/uapi/linux/usb/ch9.h
@@ -325,6 +325,10 @@ struct usb_device_descriptor {
#define USB_CLASS_CSCID 0x0b /* chip+ smart card */
#define USB_CLASS_CONTENT_SEC 0x0d /* content security */
#define USB_CLASS_VIDEO 0x0e
+#define USB_CLASS_PERSONAL_HEALTHCARE 0x0f
+#define USB_CLASS_AUDIO_VIDEO 0x10
+#define USB_CLASS_BILLBOARD 0x11
+#define USB_CLASS_USB_TYPE_C_BRIDGE 0x12
#define USB_CLASS_WIRELESS_CONTROLLER 0xe0
#define USB_CLASS_MISC 0xef
#define USB_CLASS_APP_SPEC 0xfe
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] usb : Report additional USB classes
2020-05-31 12:23 [PATCH] usb : Report additional USB classes Rob Gill
@ 2020-05-31 12:32 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2020-05-31 12:32 UTC (permalink / raw)
To: Rob Gill; +Cc: linux-usb
On Sun, May 31, 2020 at 12:23:03PM +0000, Rob Gill wrote:
> Changelog : Add #defines and strings for additional USB classes
I don't understand, what does "Changelog :" mean here?
>
> 0fh (Personal Healthcare), 10h (USB Type-C combined audio/video devices), 11h (USB billboard), 12h (USB Type-C bridge). [https://www.usb.org/defined-class-codes]
What is this a list of?
Please read the section entitled "The canonical patch format" in the
kernel file, Documentation/SubmittingPatches for what is needed in order
to properly describe the change.
thanks!
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb : Report additional USB classes
2020-05-31 11:10 Rob Gill
@ 2020-05-31 11:33 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2020-05-31 11:33 UTC (permalink / raw)
To: Rob Gill; +Cc: linux-usb
On Sun, May 31, 2020 at 11:10:55AM +0000, Rob Gill wrote:
> >From 77198692578122b24cf620209cd0fc289287fc8a Mon Sep 17 00:00:00 2001
> From: Rob Gill <rrobgill@protonmail.com>
> Date: Sun, 31 May 2020 20:49:57 +1000
> [PATCH] usb : Report additional USB classes
> 10h (USB Type-C combined audio/video devices), 11h (USB billboard), 12h (USB Type-C bridge). [https://www.usb.org/defined-class-codes]
Odd, why is this all in the body of the email message?
Please use git send-email.
>
> Signed-off-by: Rob Gill <rrobgill@protonmail.com>
No changelog text? I can't take patches without that :(
Can you fix this up and resend please?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] usb : Report additional USB classes
@ 2020-05-31 11:10 Rob Gill
2020-05-31 11:33 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Rob Gill @ 2020-05-31 11:10 UTC (permalink / raw)
To: linux-usb
From 77198692578122b24cf620209cd0fc289287fc8a Mon Sep 17 00:00:00 2001
From: Rob Gill <rrobgill@protonmail.com>
Date: Sun, 31 May 2020 20:49:57 +1000
[PATCH] usb : Report additional USB classes
10h (USB Type-C combined audio/video devices), 11h (USB billboard), 12h (USB Type-C bridge). [https://www.usb.org/defined-class-codes]
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
---
drivers/usb/core/devices.c | 4 ++++
include/uapi/linux/usb/ch9.h | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/drivers/usb/core/devices.c b/drivers/usb/core/devices.c
index 44f28a114..dda791e5b 100644
--- a/drivers/usb/core/devices.c
+++ b/drivers/usb/core/devices.c
@@ -133,6 +133,10 @@ static const struct class_info clas_info[] = {
{USB_CLASS_CSCID, "scard"},
{USB_CLASS_CONTENT_SEC, "c-sec"},
{USB_CLASS_VIDEO, "video"},
+ {USB_CLASS_PERSONAL_HEALTHCARE, "phlth"},
+ {USB_CLASS_AUDIO_VIDEO, "av"},
+ {USB_CLASS_BILLBOARD, "blbrd"},
+ {USB_CLASS_USB_TYPE_C_BRIDGE, "bridg"},
{USB_CLASS_WIRELESS_CONTROLLER, "wlcon"},
{USB_CLASS_MISC, "misc"},
{USB_CLASS_APP_SPEC, "app."},
diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/ch9.h
index 2b623f36a..90f63f55b 100644
--- a/include/uapi/linux/usb/ch9.h
+++ b/include/uapi/linux/usb/ch9.h
@@ -325,6 +325,10 @@ struct usb_device_descriptor {
#define USB_CLASS_CSCID 0x0b /* chip+ smart card */
#define USB_CLASS_CONTENT_SEC 0x0d /* content security */
#define USB_CLASS_VIDEO 0x0e
+#define USB_CLASS_PERSONAL_HEALTHCARE 0x0f
+#define USB_CLASS_AUDIO_VIDEO 0x10
+#define USB_CLASS_BILLBOARD 0x11
+#define USB_CLASS_USB_TYPE_C_BRIDGE 0x12
#define USB_CLASS_WIRELESS_CONTROLLER 0xe0
#define USB_CLASS_MISC 0xef
#define USB_CLASS_APP_SPEC 0xfe
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-31 12:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-31 12:23 [PATCH] usb : Report additional USB classes Rob Gill
2020-05-31 12:32 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2020-05-31 11:10 Rob Gill
2020-05-31 11:33 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).