]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thunderbolt: Don't display nvm_version unless upgrade supported
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 9 Dec 2024 16:25:51 +0000 (10:25 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:29:56 +0000 (13:29 +0100)
commit326147e4c26764ba66788ee4bddedb2ef4c15467
treea01974e258219f8e631d05104b6711affbc3a232
parent616747731f81eca9822b57766a0885e08b7793b5
thunderbolt: Don't display nvm_version unless upgrade supported

[ Upstream commit e34f1717ef0632fcec5cb827e5e0e9f223d70c9b ]

The read will never succeed if NVM wasn't initialized due to an unknown
format.

Add a new callback for visibility to only show when supported.

Cc: stable@vger.kernel.org
Fixes: aef9c693e7e5 ("thunderbolt: Move vendor specific NVM handling into nvm.c")
Reported-by: Richard Hughes <hughsient@gmail.com>
Closes: https://github.com/fwupd/fwupd/issues/8200
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thunderbolt/retimer.c