usb_handle_request.c (188942) | usb_handle_request.c (188986) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_handle_request.c 188942 2009-02-23 18:31:00Z thompsa $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_handle_request.c 188986 2009-02-24 03:41:52Z thompsa $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 262 unchanged lines hidden (view full) --- 272 iface_index); 273 if (error) { 274 DPRINTF("alt setting failed %s\n", 275 usb2_errstr(error)); 276 goto tr_stalled; 277 } 278 break; 279 } | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 262 unchanged lines hidden (view full) --- 272 iface_index); 273 if (error) { 274 DPRINTF("alt setting failed %s\n", 275 usb2_errstr(error)); 276 goto tr_stalled; 277 } 278 break; 279 } |
280 /* 281 * Doing the alternate setting will detach the 282 * interface aswell: 283 */ |
|
280 error = usb2_set_alt_interface_index(udev, 281 iface_index, req.wValue[0]); 282 if (error) { 283 DPRINTF("alt setting failed %s\n", 284 usb2_errstr(error)); 285 goto tr_stalled; 286 } 287 error = usb2_probe_and_attach(udev, --- 469 unchanged lines hidden --- | 284 error = usb2_set_alt_interface_index(udev, 285 iface_index, req.wValue[0]); 286 if (error) { 287 DPRINTF("alt setting failed %s\n", 288 usb2_errstr(error)); 289 goto tr_stalled; 290 } 291 error = usb2_probe_and_attach(udev, --- 469 unchanged lines hidden --- |