Skip to contentSkip to conversation

r8152: give the device version

PATCH Applied Oliver Neukum 2 participants 2 messages Jun 12, 2017 – Jun 13, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 r8152: give the device version

Getting the device version out of the driver really aids debugging.

---
 drivers/net/usb/r8152.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/usb/r8152.c +2 -0
index ddc62cb69be8..1a419a45e2a2 100644
@@ -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;
 }
 
Signature · 1 line
2.12.3