Changes in uspace/lib/ata/src/ata.c [3d2d455b:0dab4850] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ata/src/ata.c
r3d2d455b r0dab4850 1 1 /* 2 * Copyright (c) 202 4Jiri Svoboda2 * Copyright (c) 2025 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 257 257 258 258 for (i = 0; i < MAX_DEVICES; i++) { 259 if (chan->device[i].present == false) 260 continue; 261 259 262 rc = ata_device_remove(&chan->device[i]); 260 263 if (rc != EOK) { 261 264 ata_msg_error(chan, "Unable to remove device %d.", i); 262 break; 265 fibril_mutex_unlock(&chan->lock); 266 return rc; 263 267 } 264 268 } … … 266 270 ata_bd_fini_irq(chan); 267 271 fibril_mutex_unlock(&chan->lock); 272 free(chan); 268 273 269 274 return rc; … … 1532 1537 * exceed DMA buffer size. 1533 1538 */ 1534 dma_maxnb = d->chan->params.max_dma_xfer / d->block_size; 1535 if (dma_maxnb < maxnb) 1536 maxnb = dma_maxnb; 1539 if (d->chan->params.use_dma) { 1540 dma_maxnb = d->chan->params.max_dma_xfer / d->block_size; 1541 if (dma_maxnb < maxnb) 1542 maxnb = dma_maxnb; 1543 } 1537 1544 1538 1545 return maxnb;
Note:
See TracChangeset
for help on using the changeset viewer.