Changeset 63862a0 in mainline
- Timestamp:
- 2011-05-30T20:01:42Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 06f9d8fb, d754f59
- Parents:
- 173922f (diff), be8d907 (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. - Location:
- uspace/drv/usbhub
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/ports.c
r173922f r63862a0 95 95 * @param port port number, starting from 1 96 96 */ 97 void usb_hub_process_ interrupt(usb_hub_info_t *hub,97 void usb_hub_process_port_interrupt(usb_hub_info_t *hub, 98 98 uint16_t port) { 99 99 usb_log_debug("Interrupt at port %zu\n", (size_t) port); -
uspace/drv/usbhub/ports.h
r173922f r63862a0 70 70 71 71 72 void usb_hub_process_ interrupt(usb_hub_info_t *hub,72 void usb_hub_process_port_interrupt(usb_hub_info_t *hub, 73 73 uint16_t port); 74 74 -
uspace/drv/usbhub/usbhub.c
r173922f r63862a0 168 168 bool change = (change_bitmap[port / 8] >> (port % 8)) % 2; 169 169 if (change) { 170 usb_hub_process_ interrupt(hub, port);170 usb_hub_process_port_interrupt(hub, port); 171 171 } 172 172 } … … 266 266 267 267 if (!has_individual_port_powering) { 268 usb_log_debug("Has_global powering\n"); 269 opResult = usb_hub_set_feature(hub_info->control_pipe, 270 USB_HUB_FEATURE_C_HUB_LOCAL_POWER); 271 if (opResult != EOK) { 272 usb_log_error("Cannot power hub: %s\n", 273 str_error(opResult)); 274 } 268 //this setting actually makes no difference 269 usb_log_debug("Hub has global powering\n"); 275 270 } 276 271 … … 280 275 port, USB_HUB_FEATURE_PORT_POWER); 281 276 if (opResult != EOK) { 282 usb_log_error(" cannot power on port %zu: %s.\n",277 usb_log_error("Cannot power on port %zu: %s.\n", 283 278 port, str_error(opResult)); 284 279 }
Note:
See TracChangeset
for help on using the changeset viewer.