On Wednesday 16 January 2008, Thomi Aurel RUAG A wrote:

> > Alternatively, the issue might be the way the SET_LINE_CODING or
> > SET_CONTROL_LINE_STATE requests are rejected by the current serial
> > gadget code.  Fixing that should be a straightforward patchlet.  If
> > you're NOT getting one of the warning messages about unsupported
> > messages from gs_setup, that option becomes unlikely.

Were you getting such messages from the kernel?  "dmesg" would show
them if you were.


> I logged the USB transactions with a USB Sniffer.
> During my analysis (still ongoing) i found that in the "abstract control
> manangement functional descriptor" defines the bmCapabilities as 0 (zero)
> (found in the configuration descriptor).
> This means that non of the following features are supported:
> - Set_Comm_Feature
> - Clear_Comm_Feature
> - Get_Comm_Feature
> - Set_Line_Coding
> - Get_Line_Coding
> - Set_Control_Line_State
> - Serial_State notification
> - Send_Break
> - Network_Connection
> (found on USB Class Definitons for Communication Devices, Version 1.1,
>  Table 28, page 36, Rev. 1999-01-19)
> I found the definition of the descriptor in the source file
> (drivers/usb/gadget/serial.c) on line 429, where the bmCapabilities were
> defined.
> So, setting that to another value wouldn't be tricky but what does
> it means for the according features?

Set it to zero and see if it helps.  Maybe MS-Windoes demands som
of those features; I wouldn't know.  But again, if you're not
already getting warning messages, that's not the issue.


> You wrote "Fixing that should be a straightforward patchlet" could you
> explain that in more detail?

The FIXME comments there say exactly what should happen.  There's
similar control-OUT code in g_zero and the RNDIS code in g_ether.

But again:  if you're not already getting those warnings, don't
bother looking since that's not the problem.

- Dave
-
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to