Re: BUG - MODE SENSE residue miscount in g_file_storage bulk-only transport ?

Alan Stern
2009-02-21T20:55:56Z

On Sat, 21 Feb 2009, David Brownell wrote:

> On Monday 16 February 2009, Stanislaw Gruszka wrote:
> >
> > > The problem is in the Atmel hardware; it's not capable of halting a
> > > bulk endpoint correctly.  You need to invoke g_file_storage with the
> > > "stall=no" parameter.
> >
> > I see, it works now, thanks very much.
>
> Should the driver maybe
>
> if (gadget_is_at91(g))
> disable stalls;
>
> then?

Perhaps it should. I have not tried to keep track of which peripheral
drivers are incapable of halting bulk endpoints correctly. There's
already a similar test for gadget_is_sh(); maybe others should be added
too.

Alan Stern