projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b8e926
)
net: usb: sr9700: support devices with virtual driver CD
author
Ethan Nelson-Moore
<enelsonmoore@gmail.com>
Thu, 11 Dec 2025 06:24:51 +0000
(22:24 -0800)
committer
Paolo Abeni
<pabeni@redhat.com>
Mon, 22 Dec 2025 11:03:36 +0000
(12:03 +0100)
Some SR9700 devices have an SPI flash chip containing a virtual driver
CD, in which case they appear as a device with two interfaces and
product ID 0x9702. Interface 0 is the driver CD and interface 1 is the
Ethernet device.
Link:
https://github.com/name-kurniawan/usb-lan
Link:
https://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=2185
Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Link:
https://patch.msgid.link/20251211062451.139036-1-enelsonmoore@gmail.com
[pabeni@redhat.com: fixes link tags]
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/usb/sr9700.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/sr9700.c
b/drivers/net/usb/sr9700.c
index
091bc2a
..
d8ffb59
100644
(file)
--- a/
drivers/net/usb/sr9700.c
+++ b/
drivers/net/usb/sr9700.c
@@
-539,6
+539,11
@@
static const struct usb_device_id products[] = {
USB_DEVICE(0x0fe6, 0x9700), /* SR9700 device */
.driver_info = (unsigned long)&sr9700_driver_info,
},
+ {
+ /* SR9700 with virtual driver CD-ROM - interface 0 is the CD-ROM device */
+ USB_DEVICE_INTERFACE_NUMBER(0x0fe6, 0x9702, 1),
+ .driver_info = (unsigned long)&sr9700_driver_info,
+ },
{}, /* END */
};