]> git.baikalelectronics.ru Git - kernel.git/commitdiff
r8152: give the device version
authorOliver Neukum <oneukum@suse.com>
Mon, 12 Jun 2017 11:56:51 +0000 (13:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jun 2017 16:50:15 +0000 (12:50 -0400)
Getting the device version out of the driver really aids debugging.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c

index ddc62cb69be828a730e6ed32ecc9ee951fef8d3b..1a419a45e2a2e77e07e1746c9035230da465424d 100644 (file)
@@ -4368,6 +4368,8 @@ static u8 rtl_get_version(struct usb_interface *intf)
                break;
        }
 
+       dev_dbg(&intf->dev, "Detected version 0x%04x\n", version);
+
        return version;
 }