Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1600867 > unrolled thread

[PATCH 3/4] cdc-acm: log message for serial state notification

Started byTobias Herzog <t-herzog@gmx.de>
First post2017-03-14 21:20 +0100
Last post2017-03-14 21:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/4] cdc-acm: log message for serial state notification Tobias Herzog <t-herzog@gmx.de> - 2017-03-14 21:20 +0100

#1600867 — [PATCH 3/4] cdc-acm: log message for serial state notification

FromTobias Herzog <t-herzog@gmx.de>
Date2017-03-14 21:20 +0100
Subject[PATCH 3/4] cdc-acm: log message for serial state notification
Message-ID<tl15f-5mY-7@gated-at.bofh.it>
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>
---
 drivers/usb/class/cdc-acm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index b99127e..2402b26 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -303,6 +303,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,
-- 
2.1.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web