From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4E0203370E1; Fri, 17 Oct 2025 15:06:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760713602; cv=none; b=X0JXOrfJiPM4A6uQVy8yhiRrZi7+85CFntjeJDNxCM+OUoovUSkbSnLmDVD3bRDXASNg2LTGU8sYnyx74kV+fxzVV1GDZH2xTBXQElJ8iXWiYf0xATwmXEYFXfo1NFJpJNTPHT1LCbtBxkftePYaw8ySEAA7TqVwKBojMQNs5TM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760713602; c=relaxed/simple; bh=2BKOXm6h4zi4sVsm7QVLj2FSh7Oyn2U59cwXnVRorXM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dZXbtDfeXNZ8aawRbZd4LlmN+423eFl4fu6bg/10v8ndG/t8x1PShv+peCe9Rpf1/hxZFPJ57wqX7ZaMH5qmWI6SnvjMwzSjT555zyEnjDRBDKK53/eybqiATy97loWi+/L61/RIetCIEJILT+92/+ONnsq47aWvOiaaqvcJc9I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z8y7TNZO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="z8y7TNZO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCDF1C4CEE7; Fri, 17 Oct 2025 15:06:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760713602; bh=2BKOXm6h4zi4sVsm7QVLj2FSh7Oyn2U59cwXnVRorXM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z8y7TNZOPjNswBCv5qgQuCuN0+ku1+blIgi51AuJnKB6wejt9SaWnx52/TJErVach ITUdC4FMorwiXC2p3mY6zf63bt7YooKUbMuHpOCT15AWnXAshaKcBVikrThYvatQfq GQVV32EOXpWvGZAqDBcvZeDTEJxxfPdkuVU88JX4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gunnar Kudrjavets , Justinien Bouron , Jarkko Sakkinen , Paul Menzel , Sasha Levin Subject: [PATCH 6.6 055/201] tpm_tis: Fix incorrect arguments in tpm_tis_probe_irq_single Date: Fri, 17 Oct 2025 16:51:56 +0200 Message-ID: <20251017145136.766610345@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145134.710337454@linuxfoundation.org> References: <20251017145134.710337454@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gunnar Kudrjavets [ Upstream commit 8a81236f2cb0882c7ea6c621ce357f7f3f601fe5 ] The tpm_tis_write8() call specifies arguments in wrong order. Should be (data, addr, value) not (data, value, addr). The initial correct order was changed during the major refactoring when the code was split. Fixes: 41a5e1cf1fe1 ("tpm/tpm_tis: Split tpm_tis driver into a core and TCG TIS compliant phy") Signed-off-by: Gunnar Kudrjavets Reviewed-by: Justinien Bouron Reviewed-by: Jarkko Sakkinen Reviewed-by: Paul Menzel Signed-off-by: Jarkko Sakkinen Signed-off-by: Sasha Levin --- drivers/char/tpm/tpm_tis_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/tpm/tpm_tis_core.c b/drivers/char/tpm/tpm_tis_core.c index c71e61ccb95a2..5e6ee5b82b8ff 100644 --- a/drivers/char/tpm/tpm_tis_core.c +++ b/drivers/char/tpm/tpm_tis_core.c @@ -977,8 +977,8 @@ static int tpm_tis_probe_irq_single(struct tpm_chip *chip, u32 intmask, * will call disable_irq which undoes all of the above. */ if (!(chip->flags & TPM_CHIP_FLAG_IRQ)) { - tpm_tis_write8(priv, original_int_vec, - TPM_INT_VECTOR(priv->locality)); + tpm_tis_write8(priv, TPM_INT_VECTOR(priv->locality), + original_int_vec); rc = -1; } -- 2.51.0