From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4F5A3DD846 for ; Tue, 25 Aug 2026 10:58:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787655498; cv=none; b=IPxWk1uvl5kf9dFfccakOHW8iJAcbhgEqpSSgI+5hG8PyyshucMjKy3dlBbshGs1FUTzYSDZDdHI3z26mo0cWoET/HA9HT0fxq6kXtCi/wz8HfmGhWhqMMq7/A5l4ddTubOrFoZsm2jg6osV/PxO/kWTQM7HKlmMeDMJfNOn9EE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787655498; c=relaxed/simple; bh=8st5rJyQox3gVpe91esr+A5NBUS5GJGmVkBQNphIkTM=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=EkldYGu/8EILuKDGJKXAJ0n+K+4C7h0LUrGoi47Aoqj/JEzR3Gro4h1zyxjMO81KX+l6QsMOqZ5fwiPgZflryRdwWjK5Ej40NmNsPvpAt5DllpdCtDq2H35jHLBqLr94/NA2f+i0sQlIEASmdNl2oGFvaJsdGYadS+CMzg5AifY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gMUZXx7H; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="gMUZXx7H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6E261F000E9; Tue, 25 Aug 2026 10:58:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787655497; bh=LbG0WBwR7y76EMPHHMDI8iIZv+Uc6/99Cj9fYnVV0mE=; h=Subject:To:Cc:From:Date; b=gMUZXx7Hz+2DZTVYmvh0TWfz5v7hCCPjz9p1E2WnKgbBRFy6FkU+PFcwyuPm5lHO9 5FkVsv5cy67nvZaKK28kppuM8jkcvCOU1sk+1uwWCDVeb3fsccUSdi6plO5RQnj07m wbkkgUHf63N/OAzaC6FkUcH7mxIy8kcXRmUBpopU= Subject: FAILED: patch "[PATCH] HID: magicmouse: re-enable multitouch after reset-resume" failed to apply to 6.6-stable tree To: ckhordiasma@gmail.com,jkosina@suse.com Cc: From: Date: Tue, 25 Aug 2026 12:57:46 +0200 Message-ID: <2026082546-luncheon-applaud-c9ae@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x 4253fe22b137c4ee68f36b707fdb1b44b191edc4 # git commit -s git send-email --to '' --in-reply-to '2026082546-luncheon-applaud-c9ae@gregkh' --subject-prefix 'PATCH 6.6.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 4253fe22b137c4ee68f36b707fdb1b44b191edc4 Mon Sep 17 00:00:00 2001 From: Christopher Kodama Date: Sat, 25 Jul 2026 16:34:46 -0400 Subject: [PATCH] HID: magicmouse: re-enable multitouch after reset-resume When the Apple Magic Trackpad 2 (USB) is reset across a power transition (e.g. resume from hibernation) it drops out of multitouch mode: it keeps sending report ID 0x02 on its HID_TYPE_USBMOUSE interface, but the packet shrinks from 21 to 8 bytes and the trackpad2 handler drops it (size < 12). Clicks still work but pointer motion is lost until the device is re-plugged or the driver reloaded. Re-enable multitouch from .reset_resume via the workqueue. Only .reset_resume is needed; suspend-to-idle keeps the device powered and retains multitouch. Fixes: 87a2f10395c8 ("HID: magicmouse: Apple Magic Trackpad 2 USB-C driver support") Cc: stable@vger.kernel.org Assisted-by: Claude-Code:claude-opus-4-8 Signed-off-by: Christopher Kodama Signed-off-by: Jiri Kosina diff --git a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c index 7be01cb103d2..d637c0477379 100644 --- a/drivers/hid/hid-magicmouse.c +++ b/drivers/hid/hid-magicmouse.c @@ -1037,6 +1037,22 @@ static void magicmouse_remove(struct hid_device *hdev) hid_hw_stop(hdev); } +#ifdef CONFIG_PM +static int magicmouse_reset_resume(struct hid_device *hdev) +{ + struct magicmouse_sc *msc = hid_get_drvdata(hdev); + + /* The device drops out of multitouch mode on resume; re-send the + * enable report. Only the HID_TYPE_USBMOUSE interface accepts it, and + * it must be deferred. Sending it inline here is too early. + */ + if (msc && hdev->type == HID_TYPE_USBMOUSE) + schedule_delayed_work(&msc->work, msecs_to_jiffies(500)); + + return 0; +} +#endif + static const __u8 *magicmouse_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) { @@ -1100,6 +1116,9 @@ static struct hid_driver magicmouse_driver = { .event = magicmouse_event, .input_mapping = magicmouse_input_mapping, .input_configured = magicmouse_input_configured, +#ifdef CONFIG_PM + .reset_resume = magicmouse_reset_resume, +#endif }; module_hid_driver(magicmouse_driver);