Changeset d30e067 in mainline for uspace/drv/block/pci-ide/main.c


Ignore:
Timestamp:
2025-03-02T20:02:33Z (12 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
8cdf360
Parents:
7debda3 (diff), 4285f384 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge 'upstream/master' into helenraid-para

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/pci-ide/main.c

    r7debda3 rd30e067  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    133133        pci_ide_ctrl_t *ctrl;
    134134        pci_ide_hwres_t res;
     135        async_sess_t *parent_sess;
    135136        errno_t rc;
    136137
     
    164165        if (rc != EOK) {
    165166                ddf_msg(LVL_ERROR, "Failed initializing ATA controller.");
     167                rc = EIO;
     168                goto error;
     169        }
     170
     171        parent_sess = ddf_dev_parent_sess_get(dev);
     172        if (parent_sess == NULL) {
     173                rc = ENOMEM;
     174                goto error;
     175        }
     176
     177        /* Claim legacy I/O range to prevent ISA IDE from attaching there. */
     178        rc = hw_res_claim_legacy_io(parent_sess, hwc_isa_ide);
     179        if (rc != EOK) {
     180                ddf_msg(LVL_ERROR, "Failed claiming legacy I/O range.");
    166181                rc = EIO;
    167182                goto error;
Note: See TracChangeset for help on using the changeset viewer.