summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorMartino Fontana <tinozzo123@gmail.com>2023-09-24 16:06:01 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-25 12:03:11 +0200
commit60dc7e39dff870ab0660fa1972b9bb9dd626f62f (patch)
tree9d5ba9d48e6d16ea61009d5a2f6388c6aa22d39e /drivers/platform
parentef8cdee81ef52aebb5fc80b67a80f0215be784af (diff)
downloadlinux-60dc7e39dff870ab0660fa1972b9bb9dd626f62f.tar.gz
linux-60dc7e39dff870ab0660fa1972b9bb9dd626f62f.tar.bz2
linux-60dc7e39dff870ab0660fa1972b9bb9dd626f62f.zip
HID: nintendo: reinitialize USB Pro Controller after resuming from suspend
[ Upstream commit 95ea4d9fd385fe335b989f22d409df079a042b7a ] When suspending the computer, a Switch Pro Controller connected via USB will lose its internal status. However, because the USB connection was technically never lost, when resuming the computer, the driver will attempt to communicate with the controller as if nothing happened (and fail). Because of this, the user was forced to manually disconnect the controller (or to press the sync button on the controller to power it off), so that it can be re-initialized. With this patch, the controller will be automatically re-initialized after resuming from suspend. Closes: https://bugzilla.kernel.org/show_bug.cgi?id=216233 Signed-off-by: Martino Fontana <tinozzo123@gmail.com> Reviewed-by: Daniel J. Ogorchock <djogorchock@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions