Skip to contentSkip to conversation

usb: dwc3: make dwc3_get_device_id() return the id

PATCH Applied Dan Carpenter 3 participants 4 messages Feb 4, 2012 – Feb 6, 2012

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

PATCH 1/1 usb: dwc3: make dwc3_get_device_id() return the id

We always return zero instead of the id we found.

---
I don't have this hardware so it's not tested.

drivers/usb/dwc3/core.c +1 -1
index 7c9df63..73df745 100644
@@ -86,7 +86,7 @@ again:
 		id = -ENOMEM;
 	}
 
-	return 0;
+	return id;
 }
 EXPORT_SYMBOL_GPL(dwc3_get_device_id);
 
Applied
#1 lore raw
Quoted 3 lines · Dan Carpenter

We always return zero instead of the id we found.

Applied, thanks

Quoted 2 lines

---
I don't have this hardware so it's not tested.

This one is so obvious that I can't even believe we haven't seen that before, thanks ;-)

Signature · 1 line
balbi
#2 lore raw
In reply to Dan Carpenter

Am 06.02.2012 07:44, schrieb Felipe Balbi:

Quoted 5 lines · Dan Carpenter
Quoted 3 lines

We always return zero instead of the id we found.

Quoted 8 lines

Applied, thanks

Quoted 2 lines

---
I don't have this hardware so it's not tested.

This one is so obvious that I can't even believe we haven't seen that before, thanks ;-)

i was wondering why the driver worked at all, do you realy need that ?

re,
wh

#3 lore raw
In reply to Dan Carpenter
Quoted 10 lines · walter harms

Am 06.02.2012 07:44, schrieb Felipe Balbi:

Quoted 7 lines · Dan Carpenter
Quoted 3 lines

We always return zero instead of the id we found.

Applied, thanks

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

---
I don't have this hardware so it's not tested.

This one is so obvious that I can't even believe we haven't seen that before, thanks ;-)

i was wondering why the driver worked at all, do you realy need that ?

as of now we don't have usecases for that. But since it can work on PCIe, I was thinking of building an automated testmachine with two of those devices ;-)

Signature · 1 line
balbi