]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: make usb_port flags atomic, rename did_runtime_put to child_usage
authorDan Williams <dan.j.williams@intel.com>
Wed, 21 May 2014 01:08:52 +0000 (18:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 23:38:53 +0000 (16:38 -0700)
commitd5c3834e4af3acc4d7fc52faba2711c666655632
tree78f1249a5347f81e8250fd8f26261f98fd024ccc
parentb7e38eac88265c4cb779edc72a5906116fc6c000
usb: make usb_port flags atomic, rename did_runtime_put to child_usage

We want to manipulate ->did_runtime_put in usb_port_runtime_resume(),
but we don't want that to collide with other updates.  Move usb_port
flags to new port-bitmap fields in usb_hub. "did_runtime_put" is renamed
"child_usage_bits" to reflect that it is strictly standing in for the
fact that usb_devices are not the device_model children of their parent
port.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c
drivers/usb/core/hub.h
drivers/usb/core/port.c