[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170612115651.8015-1-oneukum@suse.com>
Date: Mon, 12 Jun 2017 13:56:51 +0200
From: Oliver Neukum <oneukum@...e.com>
To: davem@...emloft.net, netdev@...r.kernel.org, hayeswang@...ltek.co
Cc: Oliver Neukum <oneukum@...e.com>
Subject: [PATCH] r8152: give the device version
Getting the device version out of the driver really aids debugging.
Signed-off-by: Oliver Neukum <oneukum@...e.com>
---
drivers/net/usb/r8152.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index ddc62cb69be8..1a419a45e2a2 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -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;
}
--
2.12.3
Powered by blists - more mailing lists