Skip to contentSkip to conversation

USB: storage: Ignore driver CD interface of SR9700 USB Ethernet adapters

PATCH In review Ethan Nelson-Moore 2 participants 5 messages Dec 11, 2025 – Jan 31

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

PATCH 1/1 USB: storage: Ignore driver CD interface of SR9700 USB Ethernet adapters

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. A separate patch to the sr9700 driver will add support for these devices.

---
 drivers/usb/storage/unusual_devs.h | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/usb/storage/unusual_devs.h +7 -0
index 47f50d7a385c..b5a764d1ed50 100644
@@ -1719,6 +1719,13 @@ UNUSUAL_DEV(  0x0fce, 0xe092, 0x0000, 0x0000,
 		USB_SC_DEVICE, USB_PR_DEVICE, NULL,
 		US_FL_IGNORE_RESIDUE ),
 
+/* Ignore driver CD interface of SR9700 USB Ethernet adapters */
+UNUSUAL_DEV( 0x0fe6, 0x9702, 0x0000, 0xffff,
+		"CoreChips",
+		"SR9700 USB Ethernet Adapter",
+		USB_SC_DEVICE, USB_PR_DEVICE, NULL,
+		US_FL_IGNORE_DEVICE ),
+
 /*
  * Reported by Kevin Cernekee <[email protected]>
  * Tested on hardware version 1.10.
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 5 lines · Ethan Nelson-Moore

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. A separate patch to the sr9700 driver will add support for these devices.

This just a statement of fact; it doesn't explain anything. For example, it doesn't explain what the patch does, and most importantly, it doesn't explain _why_ the patch does it.

In particular, is there any real reason for ignoring the CD interface? What's wrong with letting it bind to the usb-storage driver and be available to the user as a virtual CD?

Alan Stern

#2 lore raw

Hi, Alan,

Thanks for your feedback. Sorry for the extremely delayed response.

Quoted 3 lines · Alan Stern

This just a statement of fact; it doesn't explain anything. For example, it doesn't explain what the patch does, and most importantly, it doesn't explain _why_ the patch does it.

I will fix this in a new version if you think this patch is worth merging.

Quoted 3 lines

In particular, is there any real reason for ignoring the CD interface? What's wrong with letting it bind to the usb-storage driver and be available to the user as a virtual CD?

The driver works without this patch, but the CD is still visible, and it does not contain Linux drivers, so it is just an annoyance. Is that enough justification for blacklisting it?
Is there any way to have the storage device be ignored only when the sr9700 driver is loaded? Would that be better?

Ethan

maintainer
#3 lore raw
Quoted 8 lines · Ethan Nelson-Moore

Hi, Alan,

Thanks for your feedback. Sorry for the extremely delayed response.

Quoted 3 lines · Alan Stern

This just a statement of fact; it doesn't explain anything. For example, it doesn't explain what the patch does, and most importantly, it doesn't explain _why_ the patch does it.

Quoted 7 lines

I will fix this in a new version if you think this patch is worth merging.

Quoted 3 lines

In particular, is there any real reason for ignoring the CD interface? What's wrong with letting it bind to the usb-storage driver and be available to the user as a virtual CD?

The driver works without this patch, but the CD is still visible, and it does not contain Linux drivers, so it is just an annoyance.

Except for people who are interested in the drivers it contains, even though they aren't meant for Linux.

Quoted 1 line

Is that enough justification for blacklisting it?

IMO, no. I don't think kernel modifications and blacklist entries should be added merely because of somebody's personal preferences.

Quoted 2 lines

Is there any way to have the storage device be ignored only when the sr9700 driver is loaded? Would that be better?

No.

However, you can always create a local module parameter for usb-storage in a config file under /etc/modprobe.d, telling it to ignore the device:

options usb-storage VID:PID:i

where VID and PID and the Vendor and Product IDs of the device and the "i" stands for "ignore".

Alan Stern

#4 lore raw
Quoted 2 lines · Alan Stern

IMO, no. I don't think kernel modifications and blacklist entries should be added merely because of somebody's personal preferences.

Okay. That makes sense to me.

Quoted 7 lines

However, you can always create a local module parameter for usb-storage in a config file under /etc/modprobe.d, telling it to ignore the device:

options usb-storage VID:PID:i

where VID and PID and the Vendor and Product IDs of the device and the "i" stands for "ignore".

Thanks. I'll do that.

Ethan