diff options
author | Thinh Nguyen <Thinh.Nguyen@synopsys.com> | 2020-02-03 18:05:32 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-24 07:57:09 +0200 |
commit | 927bfe33e202d53b6d79d43eba2899bfb7378482 (patch) | |
tree | 5b7f314d6d67ec753fc5aff1c0ef4b53540cc90a /sound | |
parent | 0a5849f103e2faa161b6e6840c27c8b1dd1f4844 (diff) |
usb: gadget: composite: Inform controller driver of self-powered
commit 5e5caf4fa8d3039140b4548b6ab23dd17fce9b2c upstream.
Different configuration/condition may draw different power. Inform the
controller driver of the change so it can respond properly (e.g.
GET_STATUS request). This fixes an issue with setting MaxPower from
configfs. The composite driver doesn't check this value when setting
self-powered.
Cc: stable@vger.kernel.org
Fixes: 88af8bbe4ef7 ("usb: gadget: the start of the configfs interface")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions