]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: Fix SET/CLEAR_FEATURE and GET_STATUS flows
authorMinas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Tue, 21 Jan 2020 10:17:07 +0000 (14:17 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 16:22:16 +0000 (17:22 +0100)
commit1242c8cce5064fe3a9fa5c3f5aff238185893704
tree552ca7a1cccb01d84111969b0e360849d33486f7
parent2635c979c470cba85bbbcfea4ceb1a0cf2d5bbfa
usb: dwc2: Fix SET/CLEAR_FEATURE and GET_STATUS flows

commit 775023499256f933f2ef39fa0ce40d79db85703f upstream.

SET/CLEAR_FEATURE for Remote Wakeup allowance not handled correctly.
GET_STATUS handling provided not correct data on DATA Stage.
Issue seen when gadget's dr_mode set to "otg" mode and connected
to MacOS.
Both are fixed and tested using USBCV Ch.9 tests.

Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Fixes: 523ff9f5ba78 ("usb: dwc2: gadget: Add remote_wakeup_allowed flag")
Tested-by: Jack Mitchell <ml@embed.me.uk>
Cc: stable@vger.kernel.org
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/gadget.c