From 4d92056b970f6e49b21c094d8caa4690158d933b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Mal=C3=BD?= Date: Wed, 6 Aug 2025 23:53:04 +0200 Subject: [PATCH] Implement i2c bus check for MSI GPUs --- .../MSIGPUController/MSIGPUControllerDetect.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Controllers/MSIGPUController/MSIGPUController/MSIGPUControllerDetect.cpp b/Controllers/MSIGPUController/MSIGPUController/MSIGPUControllerDetect.cpp index 11016d61..6a91f91c 100644 --- a/Controllers/MSIGPUController/MSIGPUController/MSIGPUControllerDetect.cpp +++ b/Controllers/MSIGPUController/MSIGPUController/MSIGPUControllerDetect.cpp @@ -10,6 +10,7 @@ #include "Detector.h" #include "MSIGPUController.h" #include "RGBController_MSIGPU.h" +#include "i2c_amd_gpu.h" #include "i2c_smbus.h" #include "pci_ids.h" @@ -27,6 +28,10 @@ void DetectMSIGPUControllers(i2c_smbus_interface* bus, uint8_t i2c_addr, const s { return; } + if(bus->pci_vendor == AMD_GPU_VEN && !is_amd_gpu_i2c_bus(bus)) + { + return; + } MSIGPUController* controller = new MSIGPUController(bus, i2c_addr, name); RGBController_MSIGPU* rgb_controller = new RGBController_MSIGPU(controller);