diff options
author | Szuying Chen <Chloe_Chen@asmedia.com.tw> | 2022-09-03 09:39:18 +0200 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2022-09-07 08:06:51 +0200 |
commit | 7bfafaa5185be3088e57f046956d6db0155ddc17 (patch) | |
tree | 25c10caa09ba24f49777eb4d9800323bb957c36f /drivers/thunderbolt/tb.h | |
parent | thunderbolt: Extend NVM version fields to 32-bits (diff) | |
download | linux-7bfafaa5185be3088e57f046956d6db0155ddc17.tar.xz linux-7bfafaa5185be3088e57f046956d6db0155ddc17.zip |
thunderbolt: Rename and make nvm_read() available for other files
In order to support non-Intel NVM formats the vendor specific NVM
validation code that will live in nvm.c needs to be able to read various
parts of the NVM so make the function available outside of switch.c and
rename it accordingly.
Signed-off-by: Szuying Chen <Chloe_Chen@asmedia.com.tw>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/tb.h')
-rw-r--r-- | drivers/thunderbolt/tb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h index f8fbab1b49ec..f797adf8c7f4 100644 --- a/drivers/thunderbolt/tb.h +++ b/drivers/thunderbolt/tb.h @@ -759,6 +759,8 @@ int tb_nvm_write_data(unsigned int address, const void *buf, size_t size, unsigned int retries, write_block_fn write_next_block, void *write_block_data); +int tb_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf, + size_t size); struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent, u64 route); struct tb_switch *tb_switch_alloc_safe_mode(struct tb *tb, |