-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
driver/usbloader: rename RKUSBDriver to reflect rkdeveloptool usage #1542
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -301,7 +301,12 @@ class RKUSBLoader(USBResource): | |
def filter_match(self, device): | ||
match = (device.properties.get('ID_VENDOR_ID'), device.properties.get('ID_MODEL_ID')) | ||
|
||
if match not in [("2207", "110a")]: | ||
if match not in [("2207", "110a"), ("2207", "301a"), | ||
a3f marked this conversation as resolved.
Show resolved
Hide resolved
|
||
("2207", "310c"), ("2207", "320b"), | ||
("2207", "320a"), ("2207", "320c"), | ||
("2207", "330a"), ("2207", "330c"), | ||
("2207", "350a"), ("2207", "350b") | ||
]: | ||
Comment on lines
+304
to
+309
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (non-blocking): please comment on the SoC model those represents This would make it easier to spot what's supported and what's not. 330c is RK3399 I also have: 330d for PX30 (but I can add myself, not an issue) c.f. https://github.com/rockchip-linux/rkdeveloptool/blob/master/99-rk-rockusb.rules for some model ID https://elixir.bootlin.com/u-boot/v2024.10/source/drivers/usb/gadget/Kconfig#L69 probably could help too :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't do that before, because I didn't know what the original VID/PID was for, but I can annotate them now. Thanks! |
||
return False | ||
|
||
return super().filter_match(device) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We usually let the old
RKUSBDriver
raise aDeprecationWarning
and instead use the new driver, i.e. seeNetworkUSBStorageDriver
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work transparently, because I am changing the name of the tool key as well, but I can do this, so users are nudged into the right direction.