HID: logitech-hidpp: Don't restart communication if not necessary
authorBastien Nocera <hadess@hadess.net>
Wed, 25 Jan 2023 12:17:22 +0000 (13:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:34:00 +0000 (09:34 +0100)
commit337c3624bcb008f92bab38c8fc4cdf97ae5313a2
tree63acab5dc923e063c45cbf9e88c0ed95bafca6ea
parentcf45493432704786a0f8294c7723ad4eeb5fff24
HID: logitech-hidpp: Don't restart communication if not necessary

[ Upstream commit 498ba20690357691103de0f766960355247c78be ]

Don't stop and restart communication with the device unless we need to
modify the connect flags used because of a device quirk.

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Link: https://lore.kernel.org/r/20230125121723.3122-1-hadess@hadess.net
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-logitech-hidpp.c