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 08BB44921A7 for ; Tue, 14 Jul 2026 14:58:14 +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=1784041095; cv=none; b=i0wTWW2qrEvZsWz59Z5u21c3gzD5TzMwtaa0/Pufzx+u1ZU1f2Xp6+iere4+2Ro6h20S5n2rq1HDKo92zYLMm7xwB1Rsddhl2phSTqqUkPkFPqLRDVRgHXrLP7dpCTLYzAiT91I0avKwcT4lZkpUGlFJO90DEe11YtKd0DuHWeg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784041095; c=relaxed/simple; bh=YSdWWEOQHkkTCX2BsG02AIp9ajsyyr2wLhD4hoo7TiQ=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=g+MF6FnHENHhmDlQRqr9ik6EAv3XS7rZF9SPqy6m+BbinaXFa/BuqJrjlFIJEKl4fzOBzcmGaydyAwFm08IJ7kVIvof/JzP7F2QI7xCR2AQWonhWap0pIQfm5EIZB4I2/xlNL8LO75HVKM6CKNcOKNQVTNMG+MXOtVKa8CNidZg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E7tNK+he; 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="E7tNK+he" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5149A1F00A3A; Tue, 14 Jul 2026 14:58:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784041093; bh=ADBAsJDYAzfFdhUaVT9pBsk8LlEoKYy1OLHGVwPf3ac=; h=Subject:To:Cc:From:Date; b=E7tNK+hemTLlQTRnV0MpZcxABRkgCCEVpkDCwSv7L/NhLzeF47y7eyUljAy2Xb0Rk gj8h3ynZTkaV//EwmDUftVKpFWqtJz1Ac9fS4ntxrvKPKW4gJTOV1Bx1jI8qBQDsmv wH/hUSXt3Dr6pphvs1N7n7GUUAGGUAD+GN3fHLmQ= Subject: FAILED: patch "[PATCH] HID: pidff: Use correct effect type in effect update" failed to apply to 6.6-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:45 +0200 Message-ID: <2026071445-massive-dimple-368f@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 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 b251598b8bf37300510868f739a79e07800d41ce # git commit -s git send-email --to '' --in-reply-to '2026071445-massive-dimple-368f@gregkh' --subject-prefix 'PATCH 6.6.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);