Commit 44a20d78 authored by Michael Grzeschik's avatar Michael Grzeschik Committed by openeuler-sync-bot
Browse files

usb: dwc3: gadget: move cmd_endtransfer to extra function

stable inclusion
from stable-v5.10.177
commit ddb1973e67650dfdc66179b07895b20568a3b251
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ddb1973e67650dfdc66179b07895b20568a3b251



--------------------------------

[ Upstream commit e192cc7b ]

This patch adds the extra function __dwc3_stop_active_transfer to
consolidate the same codepath.

Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20220306211251.2281335-3-m.grzeschik@pengutronix.de


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: d8a2bb4e ("usb: dwc3: gadget: Add 1ms delay after end transfer command without IOC")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit be731e71)
parent 3da8ee77
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment