From f498dc2227c7edc88b3ba4fdfbbe30ec4205369a Mon Sep 17 00:00:00 2001 From: thompsa Date: Sun, 5 Apr 2009 18:20:38 +0000 Subject: MFp4 //depot/projects/usb@159909 - make usb2_power_mask_t 16-bit - remove "usb2_config_sub" structure from "usb2_config". To compensate for this "usb2_config" has a new field called "usb_mode" which select for which mode the current xfer entry is active. Options are: a) Device mode only b) Host mode only (default-by-zero) c) Both modes. This change was scripted using the following sed script: "s/\.mh\././g". - the standard packet size table in "usb_transfer.c" is now a function, hence the code for the function uses less memory than the table itself. Submitted by: Hans Petter Selasky --- sys/dev/usb/usb_handle_request.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/dev/usb/usb_handle_request.c') diff --git a/sys/dev/usb/usb_handle_request.c b/sys/dev/usb/usb_handle_request.c index aec9e02..7a9a697 100644 --- a/sys/dev/usb/usb_handle_request.c +++ b/sys/dev/usb/usb_handle_request.c @@ -398,9 +398,7 @@ usb2_handle_remote_wakeup(struct usb2_xfer *xfer, uint8_t is_on) USB_BUS_UNLOCK(bus); /* In case we are out of sync, update the power state. */ - usb2_bus_power_update(udev->bus); - return (0); /* success */ } -- cgit v1.1