RE: [PATCH] Change wMaxPacketSize default value for Full Speed EP0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Alan Stern [mailto:stern@xxxxxxxxxxxxxxxxxxx]
> Sent: Wednesday, June 25, 2014 11:46 AM
> To: Stalley, Sean
> Cc: linux-usb@xxxxxxxxxxxxxxx; Ismail, Abdul R
> Subject: Re: [PATCH] Change wMaxPacketSize default value for Full Speed EP0
> 
> On Wed, 25 Jun 2014, Sean O. Stalley wrote:
> 
> > From: "Sean O. Stalley" <sean.stalley@xxxxxxxxx>
> >
> > Change the default wMaxPacketSize value for EP0 of Full Speed devices
> > from the maximum possible size (64) to the minimum (8).
> > All full speed devices support a packet size of 8, but not all support
> > a size of 64.
> 
> You don't seem to understand what you are saying.  Supporting a packet size of
> 8 is very different from having a maxpacket size of 8.

I suppose I could have phrased that better. What I meant to say was: I do not understand why one would make the default wMaxPacketSize for EP0 of a full speed device 64.
To me, making the default 8 makes more sense.

> > No packet longer than 8 bytes is ever read from EP0 before this value
> > is changed from the default.
> 
> That is not true.

You are right, that statement is only true when using the old scheme. 
Would setting wMaxPacketSize conditionally (based on using the old/new scheme) be preferred?

> >  Changing the default max packet
> > size to 8 helps clarify that.
> 
> No.  Did you test this patch with full-speed devices having various maxpacket
> sizes?
> 
> Alan Stern

I was waiting for feedback on the patch before I did any in-depth testing.

Thanks,
Sean


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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux