Changes in uspace/lib/usb/src/devdrv.c [0b4e7ca:4ede178] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/devdrv.c
r0b4e7ca r4ede178 239 239 240 240 /* 241 * For further actions, we need open session on default control pipe. 241 * We will do some querying of the device, it is worth to prepare 242 * the long transfer. 242 243 */ 243 rc = usb_pipe_start_ session(&dev->ctrl_pipe);244 if (rc != EOK) { 245 usb_log_error("Failed to start an IPC session: %s.\n",244 rc = usb_pipe_start_long_transfer(&dev->ctrl_pipe); 245 if (rc != EOK) { 246 usb_log_error("Failed to start transfer: %s.\n", 246 247 str_error(rc)); 247 248 return rc; … … 252 253 &dev->descriptors.device); 253 254 if (rc != EOK) { 255 usb_pipe_end_long_transfer(&dev->ctrl_pipe); 254 256 usb_log_error("Failed to retrieve device descriptor: %s.\n", 255 257 str_error(rc)); … … 262 264 &dev->descriptors.configuration_size); 263 265 if (rc != EOK) { 264 usb_log_error("Failed retrieving configuration descriptor: %s.\n", 266 usb_pipe_end_long_transfer(&dev->ctrl_pipe); 267 usb_log_error("Failed retrieving configuration descriptor: %s. %s\n", 265 268 dev->ddf_dev->name, str_error(rc)); 266 269 return rc; … … 271 274 } 272 275 273 /* No checking here. */ 274 usb_pipe_end_session(&dev->ctrl_pipe); 276 usb_pipe_end_long_transfer(&dev->ctrl_pipe); 275 277 276 278 /* Rollback actions. */
Note:
See TracChangeset
for help on using the changeset viewer.