|
From: Alan S. <st...@ro...> - 2012-01-17 16:42:54
|
On Tue, 17 Jan 2012, Johannes Stezenbach wrote: > On Tue, Jan 17, 2012 at 10:42:53AM -0500, Alan Stern wrote: > > On Tue, 17 Jan 2012, Johannes Stezenbach wrote: > > > > > > Among other things, SET_CONFIGURATION resets the data toggle of > > > the endpoint to DATA0. > > > > Why would anybody want to do that? Isn't it easier and simpler just to > > keep using the endpoint's current data toggle value? > > USB spec section 9.1.1.5 "Configured" requires it. You misunderstood. I wasn't asking why you would want to put the device into the Configured state; I was asking why you would want to reset the endpoint's data toggle. Although, come to think of it, why _would_ you want to put the device into the Configured state? The only reason I can think of would be if the operating system didn't already take care of that for you. Alan Stern |