Changeset 0d103aef in mainline
- Timestamp:
- 2011-10-12T21:21:30Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 612af1a0
- Parents:
- 32ec5671
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhcirh/port.c
r32ec5671 r0d103aef 165 165 continue; 166 166 167 usb_log_debug("%s: Connected change detected: %x.\n",168 instance->id_string, port_status);169 170 /* Remove any old device */171 if (instance->attached_device.fun) {172 usb_log_debug2("%s: Removing device.\n",173 instance->id_string);174 uhci_port_remove_device(instance);175 }176 177 167 int ret = 178 168 usb_hc_connection_open(&instance->hc_connection); … … 182 172 continue; 183 173 } 174 175 usb_log_debug("%s: Connected change detected: %x.\n", 176 instance->id_string, port_status); 177 178 /* Remove any old device */ 179 if (instance->attached_device.fun) { 180 usb_log_debug2("%s: Removing device.\n", 181 instance->id_string); 182 uhci_port_remove_device(instance); 183 } 184 184 185 185 186 if ((port_status & STATUS_CONNECTED) != 0) { -
uspace/lib/usbdev/src/hub.c
r32ec5671 r0d103aef 57 57 assert((conn)); \ 58 58 if (!usb_hc_connection_is_opened((conn))) { \ 59 return ENOENT; \ 59 usb_log_error("Connection not open.\n"); \ 60 return ENOTCONN; \ 60 61 } \ 61 62 } while (false)
Note:
See TracChangeset
for help on using the changeset viewer.