projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea25835
)
cdc-acm: log message for serial state notification
author
Tobias Herzog
<t-herzog@gmx.de>
Thu, 30 Mar 2017 20:15:12 +0000
(22:15 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 1 Apr 2017 09:05:03 +0000
(11:05 +0200)
Adds a similar log message to USB_CDC_NOTIFY_SERIAL_STATE as it is
already done with USB_CDC_NOTIFY_NETWORK_CONNECTION.
Signed-off-by: Tobias Herzog <t-herzog@gmx.de>
Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/class/cdc-acm.c
b/drivers/usb/class/cdc-acm.c
index eb854dd4ed5b4c71ab8780e734b4930fb2a9fd55..5357d83bbda2b87d8823b24995dbfcd626c2262f 100644
(file)
--- a/
drivers/usb/class/cdc-acm.c
+++ b/
drivers/usb/class/cdc-acm.c
@@
-305,6
+305,8
@@
static void acm_process_notification(struct acm *acm, unsigned char *buf)
}
newctrl = get_unaligned_le16(data);
+ dev_dbg(&acm->control->dev,
+ "%s - serial state: 0x%x\n", __func__, newctrl);
if (!acm->clocal && (acm->ctrlin & ~newctrl & ACM_CTRL_DCD)) {
dev_dbg(&acm->control->dev,