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>
This commit is contained in:
Johan Hovold 2021-09-22 13:31:00 +02:00
parent c32dfec6c1
commit 90ca6e7db8
1 changed files with 2 additions and 0 deletions

View 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);