]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:29 +0000 (11:13 +0200)
[ Upstream commit 33da70bd1e115d7d73f45fb1c09f5ecc448f3f13 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 2cfc18401f3f2e5b71cdc819a468866ccff4dff3..7b1fd3b28e9b5a538b1d99fd69a0ca4d24e6f85f 100644 (file)
@@ -8382,7 +8382,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);