File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ static enum tco_reg_layout tco_reg_layout(struct pci_dev *dev)
96
96
sp5100_tco_pci -> device == PCI_DEVICE_ID_AMD_KERNCZ_SMBUS &&
97
97
sp5100_tco_pci -> revision >= AMD_ZEN_SMBUS_PCI_REV ) {
98
98
return efch_mmio ;
99
- } else if (dev -> vendor == PCI_VENDOR_ID_AMD &&
99
+ } else if (( dev -> vendor == PCI_VENDOR_ID_AMD || dev -> vendor == PCI_VENDOR_ID_HYGON ) &&
100
100
((dev -> device == PCI_DEVICE_ID_AMD_HUDSON2_SMBUS &&
101
101
dev -> revision >= 0x41 ) ||
102
102
(dev -> device == PCI_DEVICE_ID_AMD_KERNCZ_SMBUS &&
@@ -579,6 +579,8 @@ static const struct pci_device_id sp5100_tco_pci_tbl[] = {
579
579
PCI_ANY_ID , },
580
580
{ PCI_VENDOR_ID_AMD , PCI_DEVICE_ID_AMD_KERNCZ_SMBUS , PCI_ANY_ID ,
581
581
PCI_ANY_ID , },
582
+ { PCI_VENDOR_ID_HYGON , PCI_DEVICE_ID_AMD_KERNCZ_SMBUS , PCI_ANY_ID ,
583
+ PCI_ANY_ID , },
582
584
{ 0 , }, /* End of list */
583
585
};
584
586
MODULE_DEVICE_TABLE (pci , sp5100_tco_pci_tbl );
You can’t perform that action at this time.
0 commit comments