aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/cp210x.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-09-22 13:31:00 +0200
committerJohan Hovold <johan@kernel.org>2021-09-23 10:46:31 +0200
commit90ca6e7db83a06e9173bee5bb34ded3b37f4948d (patch)
tree01a473ea941fa24b5ad9f33e616327a0a6e3bbe5 /drivers/usb/serial/cp210x.c
parentUSB: serial: cp210x: fix dropped characters with CP2102 (diff)
downloadlinux-dev-90ca6e7db83a06e9173bee5bb34ded3b37f4948d.tar.xz
linux-dev-90ca6e7db83a06e9173bee5bb34ded3b37f4948d.zip
USB: serial: cp210x: add part-number debug printk
Add a part-number debug printk to facilitate debugging. Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/cp210x.c')
-rw-r--r--drivers/usb/serial/cp210x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c
index b98454fe08ea..fd51498ab108 100644
--- a/drivers/usb/serial/cp210x.c
+++ b/drivers/usb/serial/cp210x.c
@@ -2140,6 +2140,8 @@ static void cp210x_determine_type(struct usb_serial *serial)
return;
}
+ dev_dbg(&serial->interface->dev, "partnum = 0x%02x\n", priv->partnum);
+
switch (priv->partnum) {
case CP210X_PARTNUM_CP2102:
cp2102_determine_quirks(serial);