Changeset 95c675b in mainline for uspace/drv/bus/usb/uhci/main.c


Ignore:
Timestamp:
2017-10-17T13:11:35Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60af4cdb
Parents:
dbf32b1 (diff), a416d070 (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 mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/main.c

    rdbf32b1 r95c675b  
    3636#include <assert.h>
    3737#include <ddf/driver.h>
    38 #include <devman.h>
    3938#include <errno.h>
    4039#include <io/log.h>
     
    123122        assert(device);
    124123
    125         async_sess_t *parent_sess = devman_parent_device_connect(
    126             ddf_dev_get_handle(device), IPC_FLAG_BLOCKING);
    127         if (!parent_sess)
     124        async_sess_t *parent_sess = ddf_dev_parent_sess_get(device);
     125        if (parent_sess == NULL)
    128126                return ENOMEM;
    129127
    130128        /* See UHCI design guide page 45 for these values.
    131129         * Write all WC bits in USB legacy register */
    132         const int rc = pci_config_space_write_16(parent_sess, 0xc0, 0xaf00);
    133 
    134         async_hangup(parent_sess);
    135         return rc;
     130        return pci_config_space_write_16(parent_sess, 0xc0, 0xaf00);
    136131}
    137132
Note: See TracChangeset for help on using the changeset viewer.