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 0308D48125E for ; Tue, 14 Jul 2026 14:58:19 +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=1784041101; cv=none; b=rLTfM68nS3N9SSCYF6bWCJvj7SJ6WSmiZiJ9CN37g2ZcbooiPqT/Jwe2QFAPKXKg8QLJj9SlpwlOD0OvGH6JYzIOrKYJjG8EagqSxcm0f/b81uBjkoak5IWfEQ2czAU3WCcwGvqgx2t8A4YQb4TCIe2KZBbU+udq88S9LJi6yIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784041101; c=relaxed/simple; bh=MuYPrT7YAAz6acc9XNCfACjID+bA9wVMDujw/AoKy4k=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Qo9mRAX9i5Dzbh208Qrl/epZ8Vsr/o1+AGddGh3SxRKrtvytstuJ9j5EFbYBmKpj/s6Fn/aIoLAqU2jN4mD6GkbgdjCa3EcNJ6FH6IICi1dY29J6v2KnHkuwTOeJOp4DraVFpBKnwNsv09jluK2MYb++L1xrB5IjHgxXLJkxCOc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a/AV9yql; 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="a/AV9yql" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 906101F000E9; Tue, 14 Jul 2026 14:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784041099; bh=hxLms9WXuAeNQQNTzSx1Pr0+KF2A3zOVb/nUOkaVO/U=; h=Subject:To:Cc:From:Date; b=a/AV9yqlBsfkLtbgm03rQ7QQJPgUBfFLNbZZ9v9ctA5CEWE3TuebgHS7V4031fboe 6LydCqyC8ZEqh82qwNT419CcoDEmyDLcaSawSscgBIWhzB4ZmgG/cYpHhQIBFlhaeI S3mluzaubwMaklGoVTxGK3bAFpLZEDasq7PGfIeY= Subject: FAILED: patch "[PATCH] HID: pidff: Use correct effect type in effect update" failed to apply to 5.15-stable tree To: oleg@makarenk.ooo,jkosina@suse.com,lemon.xah@gmail.com,oroundtree1@gmail.com Cc: From: Date: Tue, 14 Jul 2026 16:55:46 +0200 Message-ID: <2026071446-matron-moisten-ba6b@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=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-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-5.15.y git checkout FETCH_HEAD git cherry-pick -x b251598b8bf37300510868f739a79e07800d41ce # git commit -s git send-email --to '' --in-reply-to '2026071446-matron-moisten-ba6b@gregkh' --subject-prefix 'PATCH 5.15.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From b251598b8bf37300510868f739a79e07800d41ce Mon Sep 17 00:00:00 2001 From: Oleg Makarenko Date: Tue, 9 Jun 2026 19:00:27 +0300 Subject: [PATCH] HID: pidff: Use correct effect type in effect update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When updating an existing effect, the effect type from the last created effect was sent to the device instead of the updated one. This caused incorrect reports when a game creates multiple different effects and updates only one that is not the last created. Fixes FFB in multiple games that create multiple simultaneous effects (Forza Horizon 5/6). Fixes: 224ee88fe395 ("Input: add force feedback driver for PID devices") Cc: stable@vger.kernel.org Tested-by: Oliver Roundtree Co-developed-by: Ryno Kotzé Signed-off-by: Ryno Kotzé Signed-off-by: Oleg Makarenko Signed-off-by: Jiri Kosina diff --git a/drivers/hid/usbhid/hid-pidff.c b/drivers/hid/usbhid/hid-pidff.c index c45f182d0448..5f4395f7c645 100644 --- a/drivers/hid/usbhid/hid-pidff.c +++ b/drivers/hid/usbhid/hid-pidff.c @@ -522,7 +522,7 @@ static void pidff_set_effect_report(struct pidff_device *pidff, pidff->set_effect[PID_EFFECT_BLOCK_INDEX].value[0] = pidff->block_load[PID_EFFECT_BLOCK_INDEX].value[0]; pidff->set_effect_type->value[0] = - pidff->create_new_effect_type->value[0]; + pidff_get_effect_type_id(pidff, effect); pidff_set_duration(&pidff->set_effect[PID_DURATION], effect->replay.length);