drm/amd/display/dm: drop hw_support check in amdgpu_dm_i2c_xfer()
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Dec 2024 14:25:18 +0000 (09:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:02:54 +0000 (21:02 -0500)
DC supports SW i2c as well.  Drop the check.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index a6b6fb64e482ff7c70d148082ddff5ab6475d167..1bbc512345ba2fdbd042f928716f3db58ebb2437 100644 (file)
@@ -8282,7 +8282,7 @@ static int amdgpu_dm_i2c_xfer(struct i2c_adapter *i2c_adap,
        int i;
        int result = -EIO;
 
-       if (!ddc_service->ddc_pin || !ddc_service->ddc_pin->hw_info.hw_supported)
+       if (!ddc_service->ddc_pin)
                return result;
 
        cmd.payloads = kcalloc(num, sizeof(struct i2c_payload), GFP_KERNEL);