thunderbolt: Expose active parts of NVM even if upgrade is not supported
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 5 Feb 2019 09:51:40 +0000 (12:51 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 26 Aug 2019 09:15:01 +0000 (12:15 +0300)
commit3f415e5ee18b0097755afc3ac3a5640b196a239e
tree93ae3207625e8135dd471ae69cb909ec3cf1eacc
parent58f414fa435cf728a82f435bac4781da86afb623
thunderbolt: Expose active parts of NVM even if upgrade is not supported

Ice Lake Thunderbolt controller NVM firmware is part of the BIOS image
which means it is not writable through the DMA port anymore. However, we
can still read it so we can keep nvm_version and active parts of NVM.
This way users still can find out the active NVM version and other
potentially useful information directly from Linux.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Yehezkel Bernat <YehezkelShB@gmail.com>
Tested-by: Mario Limonciello <mario.limonciello@dell.com>
drivers/thunderbolt/switch.c