The host bridge device id varies over the different configurations of
the BX-56A and BX-59A. Only filter intel based devices and then depend
on the station id.

Signed-off-by: Tobias Schaffner <tobias.schaff...@siemens.com>
---
 drivers/watchdog/w83627hf_wdt.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog/w83627hf_wdt.c
index fd2950d..68cb42a 100644
--- a/drivers/watchdog/w83627hf_wdt.c
+++ b/drivers/watchdog/w83627hf_wdt.c
@@ -44,11 +44,6 @@
 #include "simatic.h"
 #include "utils.h"
 
-/* Use the host bridge device found on the BX-59A to limit probing to Intel
- * based machines that may be a BX59A; technically we do not use/need PCI
- * for this driver but only port I/Os */
-#define PCI_DEVICE_ID_INTEL_HOST_BRIDGE        0xa700
-
 #define WDT_EFER (wdt_io+0)   /* Extended Function Enable Registers */
 #define WDT_EFIR (wdt_io+0)   /* Extended Function Index Register
                                                        (same as EFER) */
@@ -198,12 +193,12 @@ static int wdt_set_time(unsigned int timeout)
 }
 
 static EFI_STATUS init(EFI_PCI_IO *pci_io, UINT16 pci_vendor_id,
-                      UINT16 pci_device_id, UINTN timeout)
+                      UINT16 __attribute__((unused)) pci_device_id,
+                      UINTN timeout)
 {
        int chip, ret;
 
-       if (!pci_io || pci_vendor_id != PCI_VENDOR_ID_INTEL ||
-           pci_device_id != PCI_DEVICE_ID_INTEL_HOST_BRIDGE) {
+       if (!pci_io || pci_vendor_id != PCI_VENDOR_ID_INTEL) {
                return EFI_UNSUPPORTED;
        }
 
-- 
2.34.1

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to efibootguard-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/20240327081944.175120-3-tobias.schaffner%40siemens.com.

Reply via email to