]> git.baikalelectronics.ru Git - kernel.git/commit
USB: dummy-hcd: fix power budget for SuperSpeed mode
authorJacky.Cao@sony.com <Jacky.Cao@sony.com>
Thu, 5 Sep 2019 04:11:57 +0000 (04:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 09:02:59 +0000 (11:02 +0200)
commit8ebb43f45a2834ceea433964b5e36c4289864b15
tree5969e108e65fdcb1d2e620c8af2c1e09990d9094
parent03c673d2826955dad1e4cc33ee673e83d75e8b2a
USB: dummy-hcd: fix power budget for SuperSpeed mode

The power budget for SuperSpeed mode should be 900 mA
according to USB specification, so set the power budget
to 900mA for dummy_start_ss which is only used for
SuperSpeed mode.

If the max power consumption of SuperSpeed device is
larger than 500 mA, insufficient available bus power
error happens in usb_choose_configuration function
when the device connects to dummy hcd.

Signed-off-by: Jacky Cao <Jacky.Cao@sony.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/16EA1F625E922C43B00B9D82250220500871CDE5@APYOKXMS108.ap.sony.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/dummy_hcd.c