Hi David,

> > is an USB reset really needed to change the configuration?
> 
> Not at all.  But it's part of the other firmware update
> models I've gotten familiar with, and it's relatively
> well guaranteed to reset all the significant state on
> both host and device.

as I know this firmware loading model doesn't need a reset after
changing its configuration.

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 21 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs=  2
P:  Vendor=057c ProdID=2200 Rev= 1.00
S:  Manufacturer=AVM Berlin
S:  Product=Bluetooth Device
S:  SerialNumber=00100xxx
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=bfusb
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
C:  #Ifs= 1 Cfg#= 2 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

> > If I add the following two lines after the control message
> > 
> >     udev->toggle[0] = udev->toggle[1] = 0;
> >     udev->halted[0] = udev->halted[1] = 0;
> > 
> > everything is working as before.
> 
> I wouldn't rely on it for a minute.  Thing is, there's state inside
> usbcore that only gets properly adjusted by usb_set_configuration().
> It's not limited to endpoint halt and toggle status, there's also
> driver model state.  Even if you happen to fall into a special case
> that doesn't involve oopsing (for now), why risk it?

Me neither and this is why I am asking here. I don't see any need of a
re-enumeration. I will ask the company how they think there firmware
loading mechanism should work and what USB specific operation they
expected.

> Is there some problem calling usb_set_configuration() from keventd
> as I suggested?

It will make the driver more complex and I don't think it is needed.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to