]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: gadget: f_ecm: Add get_status callback
authorPrashanth K <prashanth.k@oss.qualcomm.com>
Tue, 22 Apr 2025 10:32:29 +0000 (16:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2025 06:24:08 +0000 (08:24 +0200)
commitdffa51cf2d3f5bcbc5cf4471b9f4dfbf2ef3c810
tree33fff3dff9d5a9a39f02e59a4e74673b789862e9
parent1981926eb34aeda0a1378e937d6a9d30a8735d45
usb: gadget: f_ecm: Add get_status callback

commit 8e3820271c517ceb89ab7442656ba49fa23ee1d0 upstream.

When host sends GET_STATUS to ECM interface, handle the request
from the function driver. Since the interface is wakeup capable,
set the corresponding bit, and set RW bit if the function is
already armed for wakeup by the host.

Cc: stable <stable@kernel.org>
Fixes: 481c225c4802 ("usb: gadget: Handle function suspend feature selector")
Signed-off-by: Prashanth K <prashanth.k@oss.qualcomm.com>
Reviewed-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20250422103231.1954387-2-prashanth.k@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_ecm.c