Changeset 9ff99e8 in mainline
- Timestamp:
- 2018-01-15T20:12:32Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 957ea3a
- Parents:
- a1732929
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/trb_ring.c
ra1732929 r9ff99e8 194 194 size_t trbs, uintptr_t *phys) 195 195 { 196 int err; 196 197 assert(trbs > 0); 197 198 fibril_mutex_lock(&ring->guard); … … 209 210 for (size_t i = 0; i < trbs; ++i, ++trb) { 210 211 if (phys && trb_generates_interrupt(trb)) { 211 if (*phys) 212 return ENOTSUP; 212 if (*phys) { 213 err = ENOTSUP; 214 goto err; 215 } 213 216 *phys = trb_ring_enqueue_phys(ring); 214 217 } … … 219 222 trb_ring_resolve_link(ring); 220 223 221 if (trb_ring_enqueue_phys(ring) == ring->dequeue) 222 goto err_again; 224 if (trb_ring_enqueue_phys(ring) == ring->dequeue) { 225 err = EAGAIN; 226 goto err; 227 } 223 228 } 224 229 … … 252 257 return EOK; 253 258 254 err _again:259 err: 255 260 ring->enqueue_segment = saved_enqueue_segment; 256 261 ring->enqueue_trb = saved_enqueue_trb; 257 262 fibril_mutex_unlock(&ring->guard); 258 return EAGAIN;263 return err; 259 264 } 260 265
Note:
See TracChangeset
for help on using the changeset viewer.