linux/drivers
Bastien Nocera 6199d23c91 HID: logitech-hidpp: Handle timeout differently from busy
If an attempt at contacting a receiver or a device fails because the
receiver or device never responds, don't restart the communication, only
restart it if the receiver or device answers that it's busy, as originally
intended.

This was the behaviour on communication timeout before commit 586e8fede7
("HID: logitech-hidpp: Retry commands when device is busy").

This fixes some overly long waits in a critical path on boot, when
checking whether the device is connected by getting its HID++ version.

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Suggested-by: Mark Lord <mlord@pobox.com>
Fixes: 586e8fede7 ("HID: logitech-hidpp: Retry commands when device is busy")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=217412
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2023-05-31 16:08:24 +02:00
..
accel drm-next fixes for 6.4-rc1 2023-04-27 08:28:08 -07:00
accessibility
acpi Power management updates for 6.4-rc1 2023-04-25 18:44:10 -07:00
amba
android
ata SCSI misc on 20230426 2023-04-26 15:39:25 -07:00
atm
auxdisplay
base Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
bcma
block for-6.4/block-2023-04-21 2023-04-26 12:52:58 -07:00
bluetooth Bluetooth: btusb: Add WCN6855 devcoredump support 2023-04-23 22:07:27 -07:00
bus Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
cdrom
char Minor bug fixes for the IPMI driver 2023-04-27 11:07:18 -07:00
clk
clocksource Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
comedi
connector
counter
cpufreq Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
cpuidle Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
crypto This update includes the following changes: 2023-04-26 08:32:52 -07:00
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac ARM: SoC drivers for v6.4 2023-04-25 12:02:16 -07:00
eisa
extcon
firewire
firmware sound updates for 6.4-rc1 2023-04-27 10:58:37 -07:00
fpga ACPI updates for 6.4-rc1 2023-04-25 18:37:41 -07:00
fsi
gnss
gpio gpio updates for v6.4-rc1 2023-04-25 17:18:18 -07:00
gpu drm-next fixes for 6.4-rc1 2023-04-27 08:28:08 -07:00
greybus
hid HID: logitech-hidpp: Handle timeout differently from busy 2023-05-31 16:08:24 +02:00
hsi
hte Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
hv - Add the necessary glue so that the kernel can run as a confidential 2023-04-25 10:48:08 -07:00
hwmon Thermal control updates for 6.4-rc1 2023-04-25 18:32:43 -07:00
hwspinlock
hwtracing
i2c Mostly fixes for DTs or DT handling this time. And a few driver 2023-04-27 11:15:36 -07:00
i3c
idle
iio spi: Updates for v6.4 2023-04-27 11:02:26 -07:00
infiniband SCSI misc on 20230426 2023-04-26 15:39:25 -07:00
input Thermal control updates for 6.4-rc1 2023-04-25 18:32:43 -07:00
interconnect
iommu
ipack
irqchip Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
isdn
leds
macintosh
mailbox remoteproc updates for v6.4 2023-04-25 17:38:25 -07:00
mcb
md - Split dm-bufio's rw_semaphore and rbtree. Offers improvements to 2023-04-26 13:05:21 -07:00
media gpio updates for v6.4-rc1 2023-04-25 17:18:18 -07:00
memory ARM: SoC drivers for v6.4 2023-04-25 12:02:16 -07:00
memstick
message
mfd Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
misc drm next for 6.4-rc1 2023-04-25 16:12:15 -07:00
mmc
most
mtd spi: Updates for v6.4 2023-04-27 11:02:26 -07:00
mux
net spi: Updates for v6.4 2023-04-27 11:02:26 -07:00
nfc drivers: nfc: nfcsim: remove return value check of dev_dir 2023-04-24 18:12:42 -07:00
ntb
nubus
nvdimm
nvme for-6.4/block-2023-04-21 2023-04-26 12:52:58 -07:00
nvmem
of Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
opp Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
parisc
parport
pci pci-v6.4-changes 2023-04-27 10:45:30 -07:00
pcmcia
peci
perf arm64 updates for 6.4 2023-04-25 12:39:01 -07:00
phy
pinctrl gpio updates for v6.4-rc1 2023-04-25 17:18:18 -07:00
platform spi: Updates for v6.4 2023-04-27 11:02:26 -07:00
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator Thermal control updates for 6.4-rc1 2023-04-25 18:32:43 -07:00
remoteproc remoteproc updates for v6.4 2023-04-25 17:38:25 -07:00
reset
rpmsg
rtc
s390 Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
sbus Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
scsi Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
sh
siox
slimbus
soc sound updates for 6.4-rc1 2023-04-27 10:58:37 -07:00
soundwire
spi spi: Updates for v6.4 2023-04-27 11:02:26 -07:00
spmi
ssb
staging spi: Updates for v6.4 2023-04-27 11:02:26 -07:00
target
tc
tee This update includes the following changes: 2023-04-26 08:32:52 -07:00
thermal Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
thunderbolt
tty Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
ufs SCSI misc on 20230426 2023-04-26 15:39:25 -07:00
uio
usb for-linus-2023042601 2023-04-27 11:23:36 -07:00
vdpa
vfio
vhost Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
video fbdev updates for kernel 6.4-rc1: 2023-04-27 11:19:51 -07:00
virt Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
virtio
vlynq
w1 Devicetree updates for v6.4, part 2: 2023-04-27 10:09:05 -07:00
watchdog
xen SCSI misc on 20230426 2023-04-26 15:39:25 -07:00
zorro
Kconfig
Makefile