]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: pidff: Support device error response from PID_BLOCK_LOAD
authorTomasz Pakuła <tomasz.pakula.oficjalny@gmail.com>
Tue, 11 Feb 2025 14:35:11 +0000 (15:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:30 +0000 (10:15 +0200)
commit239c8ac58cfc35dc61e53770f0bd24ea8d685d72
treed8e3d4901df978d97be922bc4e998567dd092b61
parent2d698115f9b3e44caf03b9899a3100f2a1075000
HID: pidff: Support device error response from PID_BLOCK_LOAD

[ Upstream commit 9d4174dc4a234408d91fd83725e1899766cd1731 ]

If an error happens on the device, the driver will no longer fall
into the trap of reading this status 60 times before it decides that
this reply won't change to success/memory full.

Greatly reduces communication overhead during device error situation.

Signed-off-by: Tomasz Pakuła <tomasz.pakula.oficjalny@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/usbhid/hid-pidff.c