Hi Dmitry,

> in your usbnet-rndis patch you noted it was tested "on a little-endian
> host, talking to a peripheral running the Linux-USB RNDIS "gadget"
> stack". I'd like to test the driver with such peripheral too. Actually
> I've already tried it with pxa2xx udc but in that case the host doesn't
> set the rndis configuration (2) it always chooses the CDC Ethernet (1).
> Is it possible to made the host to set the rndis instead of CDC Ethernet?

Yes, use sysfs.  If your device is on bus 3 hub 2 port 1:

        # cd /sys/bus/usb/devices/usb
        # cd 3-2.1
        # echo 2 > bConfigurationValue

Echo "0" if you just want to deconfigure it totally (no Linux driver etc).


> Or maybe you can explain how to correct g_ether's device descriptor to
> work with usbnet-rndis.

The issue there is a policy we've needed to have in drivers/usb/core/hub.c
and commented there; see choose_configuration().  I don't think I'd want
to change that default very much.  Likewise with encouraging RNDIS-only
gadgets in any way.  :)

- Dave

p.s. Should you, or anyone, have time to figure out how RNDIS gadgets
     are really expected to handle a USB suspend/resume -- likely it'd
     just need some quality time with a USB sniffer -- I'd much like to
     see someone contribute code to make the RNDIS_PM and RNDIS_WAKEUP
     work against Windows hosts.  :)



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to