]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tpm_tis: Fix incorrect arguments in tpm_tis_probe_irq_single
authorGunnar Kudrjavets <gunnarku@amazon.com>
Thu, 18 Sep 2025 15:49:40 +0000 (18:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:33:43 +0000 (16:33 +0200)
commitd9839dbaae6a9e54bc80cdb2122a1367bbbe0850
treeaf8dcf088a4b49d3cc702d5e552048592bc1c3bc
parentfc2f2011d3d84b56f536b4a25a4bb2fa1b13d520
tpm_tis: Fix incorrect arguments in tpm_tis_probe_irq_single

[ 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 <gunnarku@amazon.com>
Reviewed-by: Justinien Bouron <jbouron@amazon.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/tpm/tpm_tis_core.c