Skip to content

Commit e8ea654

Browse files
committed
Implement i2c bus check for Gigabyte Fusion 2 GPUs
1 parent 318fbeb commit e8ea654

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Controllers/GigabyteRGBFusion2GPUController/GigabyteRGBFusion2GPUControllerDetect.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "GigabyteRGBFusion2GPUController.h"
1313
#include "LogManager.h"
1414
#include "RGBController_GigabyteRGBFusion2GPU.h"
15+
#include "i2c_amd_gpu.h"
1516
#include "i2c_smbus.h"
1617
#include "pci_ids.h"
1718

@@ -28,6 +29,11 @@
2829

2930
bool TestForGigabyteRGBFusion2GPUController(i2c_smbus_interface* bus, unsigned char address)
3031
{
32+
if(bus->pci_vendor == AMD_GPU_VEN && !is_amd_gpu_i2c_bus(bus))
33+
{
34+
return false;
35+
}
36+
3137
bool pass = false;
3238
int res, pktsz;
3339
const int read_sz = 4;

0 commit comments

Comments
 (0)