Commit 77f36df
committed
usbd: Don't reset the transfer state when reading config descriptor.
It seems Windows may read the configuration descriptor more than once after
a bus reset, so it's necessary not to clear the transfer state when this
happens.
The other changes are assumed to be idempotent (endpoint numbers will be
re-assigned again, but they should come back the same as the last time this
function was called.)
Signed-off-by: Angus Gratton <angus@redyak.com.au>1 parent f1a1101 commit 77f36df
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| |||
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
192 | | - | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
209 | | - | |
210 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
| |||
336 | 338 | | |
337 | 339 | | |
338 | 340 | | |
339 | | - | |
340 | | - | |
| 341 | + | |
341 | 342 | | |
342 | 343 | | |
343 | 344 | | |
| |||
0 commit comments