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 ddc62cb..1a419a4 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;
 }