Skip to content

Commit 4d92056

Browse files
committed
Implement i2c bus check for MSI GPUs
1 parent e8ea654 commit 4d92056

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Controllers/MSIGPUController/MSIGPUController/MSIGPUControllerDetect.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "Detector.h"
1111
#include "MSIGPUController.h"
1212
#include "RGBController_MSIGPU.h"
13+
#include "i2c_amd_gpu.h"
1314
#include "i2c_smbus.h"
1415
#include "pci_ids.h"
1516

@@ -27,6 +28,10 @@ void DetectMSIGPUControllers(i2c_smbus_interface* bus, uint8_t i2c_addr, const s
2728
{
2829
return;
2930
}
31+
if(bus->pci_vendor == AMD_GPU_VEN && !is_amd_gpu_i2c_bus(bus))
32+
{
33+
return;
34+
}
3035

3136
MSIGPUController* controller = new MSIGPUController(bus, i2c_addr, name);
3237
RGBController_MSIGPU* rgb_controller = new RGBController_MSIGPU(controller);

0 commit comments

Comments
 (0)