]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: cdns3: gadget: reset EP_CLAIMED flag while unloading
authorSanket Parmar <sparmar@cadence.com>
Tue, 29 Oct 2019 12:24:41 +0000 (12:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Oct 2019 11:52:13 +0000 (12:52 +0100)
commitf5c8d290634a470600e1ce61733ec54d05a897e8
tree748724238ae3f416260c58e8422a946f05616e80
parent84968291d7924261c6a0624b9a72f952398e258b
usb: cdns3: gadget: reset EP_CLAIMED flag while unloading

EP_CLAIMED flag is used to track the claimed endpoints. While unloading the
module, Reset EP_CLAIMED flag for all enabled endpoints. So that it can be
reused.

Signed-off-by: Sanket Parmar <sparmar@cadence.com>
Acked-by: Peter Chen <peter.chen@nxp.com>
Reviewed-by: Roger Quadros <rogerq@ti.com>
Acked-by: Felipe Balbi <balbi@kernel.org>
Link: https://lore.kernel.org/r/20191029122441.5816-1-sparmar@cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/gadget.c