]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: gadget: f_tcm: Track BOT command kref
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Wed, 11 Dec 2024 00:34:15 +0000 (00:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Dec 2024 07:56:08 +0000 (08:56 +0100)
commitde92fb3fc2bd20ac9ad267af4dfb075b8e792fbc
treeb39a6414c93ba93e59cf83e9cb20c256abb00ef0
parent3ce3b2108f38059e0830222da4c3003aff2ab097
usb: gadget: f_tcm: Track BOT command kref

Set TARGET_SCF_ACK_KREF flag and allow f_tcm to take the BOT command
reference. A usb request may be canceled, the f_tcm knows this. Let it
decides if the command should be freed. This is the same as how the UAS
interface is done.

Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/e791c639e91b5d91a8787f5d6902e8c58f1dc172.1733876548.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_tcm.c