]> git.baikalelectronics.ru Git - kernel.git/commitdiff
USB: serial: cp210x: add part-number debug printk
authorJohan Hovold <johan@kernel.org>
Wed, 22 Sep 2021 11:31:00 +0000 (13:31 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 23 Sep 2021 08:46:31 +0000 (10:46 +0200)
Add a part-number debug printk to facilitate debugging.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/cp210x.c

index b98454fe08ea856469b33c8ed8548d9361b7e02a..fd51498ab108a43721d0d335d2dd9be4c136e013 100644 (file)
@@ -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);