From: Alex Deucher Date: Tue, 17 Dec 2024 14:25:18 +0000 (-0500) Subject: drm/amd/display/dm: drop hw_support check in amdgpu_dm_i2c_xfer() X-Git-Tag: block-6.15-20250403~41^2~17^2~227 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=33da70bd1e115d7d73f45fb1c09f5ecc448f3f13;p=linux-block.git drm/amd/display/dm: drop hw_support check in amdgpu_dm_i2c_xfer() DC supports SW i2c as well. Drop the check. Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index a6b6fb64e482..1bbc512345ba 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -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);