On Sun, Sep 21, 2014 at 8:28 PM, Ian Campbell <[email protected]> wrote:
> On Sun, 2014-09-21 at 16:43 +0800, Chen-Yu Tsai wrote:
>> FEL mode on the A80 changed the bulk transfer endpoint.
>> If we use the original binary, it timeouts waiting for
>> bulk transfer to be received, while the FEL BROM hangs
>> waiting to send the transfer.
>>
>> Add a macro and separate build rule for the A80 specific
>> version of the fel utility.
>
> That's not great from an enduser/packaging perspective. Is it not
> possible to enumerate all the end points on a device and therefore
> detect which to use?
>
> struct libusb_interface_descriptor->endpoint seems to contain such a
> list. Which in turn is in struct libusb_interface->altsetting, which is
> struct libusb_config_descriptor->interface, which it seems you can
> obtain via libusb_get_active_config_descriptor() or
> libusb_get_config_descriptor.
>
> So it looks like there's a fair amount of faff and chasing pointers, but
> it can be done.

I admit I'm not familiar with libusb. Thanks for the pointers,
I'll try to get this sorted later.


ChenYu

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to