]> 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)
committerFelipe Balbi <balbi@kernel.org>
Tue, 11 Feb 2020 06:45:45 +0000 (08:45 +0200)
commit775023499256f933f2ef39fa0ce40d79db85703f
treeeae40bc9f381bb916b84158fdadd27f32a2b0437
parent94ef0997a7e050f23059014cd0dfe0f63d9c8cf5
usb: dwc2: Fix SET/CLEAR_FEATURE and GET_STATUS flows

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>
drivers/usb/dwc2/gadget.c