Skip to content

Commit

Permalink
USB: serial: cp210x: add part-number debug printk
Browse files Browse the repository at this point in the history
Add a part-number debug printk to facilitate debugging.

Signed-off-by: Johan Hovold <[email protected]>
  • Loading branch information
jhovold committed Sep 23, 2021
1 parent c32dfec commit 90ca6e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/serial/cp210x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 90ca6e7

Please sign in to comment.