drm/amdgpu: Remove second moot switch to set EEPROM I2C address
authorjsg <jsg@openbsd.org>
Thu, 14 Dec 2023 05:31:54 +0000 (05:31 +0000)
committerjsg <jsg@openbsd.org>
Thu, 14 Dec 2023 05:31:54 +0000 (05:31 +0000)
From Luben Tuikov
a3049c9a30131639f056a2b3db934c70ff91068a in linux-6.1.y/6.1.68
1bb745d7596d2b368fd9afb90473f3581495e39d in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c

index 4356873..aeebae6 100644 (file)
@@ -214,15 +214,6 @@ static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev,
                return false;
        }
 
-       switch (adev->ip_versions[MP1_HWIP][0]) {
-       case IP_VERSION(13, 0, 0):
-               control->i2c_address = EEPROM_I2C_MADDR_4;
-               break;
-
-       default:
-               break;
-       }
-
        return true;
 }