Changeset 95c675b in mainline for uspace/drv/bus/usb/uhci/main.c
- Timestamp:
- 2017-10-17T13:11:35Z (7 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/main.c
rdbf32b1 r95c675b 36 36 #include <assert.h> 37 37 #include <ddf/driver.h> 38 #include <devman.h>39 38 #include <errno.h> 40 39 #include <io/log.h> … … 123 122 assert(device); 124 123 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) 128 126 return ENOMEM; 129 127 130 128 /* See UHCI design guide page 45 for these values. 131 129 * 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); 136 131 } 137 132
Note:
See TracChangeset
for help on using the changeset viewer.