[PATCH 3/3] thunderbolt: Add vendor ASMedia in update_property_block for XDomain
From: Raju Rangoju
Date: Tue Jul 22 2025 - 13:52:09 EST
Replace vendor ID 0x174c with PCI_VENDOR_ID_ASMEDIA_USB4 for
better maintainability. Add vendor name ASMedia for XDomain
properties.
Co-developed-by: Sanath S <Sanath.S@xxxxxxx>
Signed-off-by: Sanath S <Sanath.S@xxxxxxx>
Signed-off-by: Raju Rangoju <Raju.Rangoju@xxxxxxx>
---
drivers/thunderbolt/nvm.c | 2 +-
drivers/thunderbolt/xdomain.c | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/thunderbolt/nvm.c b/drivers/thunderbolt/nvm.c
index 8901db2de327..b6ccd8ea16a4 100644
--- a/drivers/thunderbolt/nvm.c
+++ b/drivers/thunderbolt/nvm.c
@@ -191,7 +191,7 @@ static const struct tb_nvm_vendor_ops asmedia_switch_nvm_ops = {
/* Router vendor NVM support table */
static const struct tb_nvm_vendor switch_nvm_vendors[] = {
- { 0x174c, &asmedia_switch_nvm_ops },
+ { PCI_VENDOR_ID_ASMEDIA_USB4, &asmedia_switch_nvm_ops },
{ PCI_VENDOR_ID_INTEL, &intel_switch_nvm_ops },
{ 0x8087, &intel_switch_nvm_ops },
};
diff --git a/drivers/thunderbolt/xdomain.c b/drivers/thunderbolt/xdomain.c
index 749faa7c487f..f512aacb5f60 100644
--- a/drivers/thunderbolt/xdomain.c
+++ b/drivers/thunderbolt/xdomain.c
@@ -674,6 +674,9 @@ static void update_property_block(struct tb_xdomain *xd)
case PCI_VENDOR_ID_AMD:
tb_property_add_text(dir, "vendorid", "AMD");
break;
+ case PCI_VENDOR_ID_ASMEDIA_USB4:
+ tb_property_add_text(dir, "vendorid", "ASMedia");
+ break;
default:
tb_property_add_text(dir, "vendorid", "Unknown Vendor");
break;
--
2.34.1