]> 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>
Fri, 27 Dec 2024 13:02:09 +0000 (14:02 +0100)
commiteed704d8ab6782f90d2bdd6eb892542180730981
treea8736cba3b30d5b75813023209a62678e0b70eae
parent9e2ff33ce00303825d0dd6bfd49cdbb62d3ea7b8
thunderbolt: Don't display nvm_version unless upgrade supported

commit e34f1717ef0632fcec5cb827e5e0e9f223d70c9b upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/retimer.c