Re: [PATCH] usb: storage: Add ums-cros-aoa driver

From: Alan Stern
Date: Sat Sep 07 2019 - 15:10:23 EST

On Fri, 6 Sep 2019, Julius Werner wrote:

> FWIW, I found a suitable workaround now to get my use case working
> with existing kernels: I can do the mode switch from userspace, then
> after the device reenumerates I can manually disable any interfaces I
> don't like by writing 0 to their 'authorized' node, and then I write
> the VID/PID to usb-storage/new_id.

Okay, very good.

> I still think it would be nice in general to be able to force a driver
> to bind a specific device (rather than a VID/PID match), but it's not
> a pressing need for me anymore.

You _can_ do this currently, by writing the name of the interface to
/sys/bus/usb/drivers/usb-storage/bind. But as you know, this doesn't
work unless the VID & PID already match one of the driver's entries.

Alan Stern