]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
thunderbolt: Check for NVM authentication status after the operation started
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 21 Apr 2021 14:14:10 +0000 (17:14 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 1 Jun 2021 07:53:32 +0000 (10:53 +0300)
commit25335b30daf66f4cc03715c2ac9cdc3258fb5531
tree98eee4560f68d23d48317016b80239e01148fd57
parentfaa1c615f0bdd4f3ac5288bf2952f49dfeac916c
thunderbolt: Check for NVM authentication status after the operation started

If the NVM authentication fails immediately, like if the firmware
detects that the image is not valid for some reason, better to read the
status once and if set to non-zero fail the operation accordingly.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/retimer.c