usb: core: return -ENOTSUPP for all targeted hosts
authorPeter Chen <peter.chen@freescale.com>
Mon, 29 Sep 2014 02:09:31 +0000 (10:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 15:50:39 +0000 (11:50 -0400)
commite5a9d62199af2ae6c4e7aa13614199b6dbaf5eb2
tree595c684f56490bf89237638dcf6678500b9b3f8a
parentbb50564258b5414d434a383ea6b02443521eb5ce
usb: core: return -ENOTSUPP for all targeted hosts

The current code only returns -ENOTSUPP for OTG host, but in fact,
embedded host also needs to returns -ENOTSUPP if the peripheral
is not at TPL.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c