* [PATCH] r8152: give the device version
@ 2017-06-12 11:56 Oliver Neukum
2017-06-13 17:00 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Oliver Neukum @ 2017-06-12 11:56 UTC (permalink / raw)
To: davem, netdev, hayeswang; +Cc: Oliver Neukum
Getting the device version out of the driver really aids debugging.
Signed-off-by: Oliver Neukum <oneukum@suse.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] r8152: give the device version
2017-06-12 11:56 [PATCH] r8152: give the device version Oliver Neukum
@ 2017-06-13 17:00 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-06-13 17:00 UTC (permalink / raw)
To: oneukum; +Cc: netdev, hayeswang
From: Oliver Neukum <oneukum@suse.com>
Date: Mon, 12 Jun 2017 13:56:51 +0200
> Getting the device version out of the driver really aids debugging.
>
> Signed-off-by: Oliver Neukum <oneukum@suse.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-13 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-12 11:56 [PATCH] r8152: give the device version Oliver Neukum
2017-06-13 17:00 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).