]> git.hungrycats.org Git - linux/commit
usb: misc: ljca: move usb_autopm_put_interface() after wait for response
authorStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Tue, 12 Nov 2024 07:55:12 +0000 (08:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:54:24 +0000 (13:54 +0100)
commit817180ec0797ebe2699cd4c7e6d008ba7ab69211
treef94a2e572ce1a01a87003142a84cf112226d9765
parent2acc0372e8b42906843e1317f55b17f3872cbd14
usb: misc: ljca: move usb_autopm_put_interface() after wait for response

commit 5c5d8eb8af06df615e8b1dc88e5847196c846045 upstream.

Do not mark interface as ready to suspend when we are still waiting
for response messages from the device.

Fixes: acd6199f195d ("usb: Add support for Intel LJCA device")
Cc: stable@vger.kernel.org
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com> # ThinkPad X1 Yoga Gen 8, ov2740
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://lore.kernel.org/r/20241112075514.680712-1-stanislaw.gruszka@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usb-ljca.c