Skip to content

Commit cccb918

Browse files
lukaszlagunarodrigovivi
authored andcommitted
drm/xe/vf: Don't register I2C devices if VF
VF drivers can't access I2C devices, so skip their registration when running as VF. Signed-off-by: Lukasz Laguna <[email protected]> Fixes: f0e53aa ("drm/xe: Support for I2C attached MCUs") Reviewed-by: Rodrigo Vivi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rodrigo Vivi <[email protected]> (cherry picked from commit 9a220e065914b67b55d3d0ab91c3e215742fdd73) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent dc94168 commit cccb918

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/xe/xe_i2c.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ int xe_i2c_probe(struct xe_device *xe)
283283
if (xe->info.platform != XE_BATTLEMAGE)
284284
return 0;
285285

286+
if (IS_SRIOV_VF(xe))
287+
return 0;
288+
286289
xe_i2c_read_endpoint(xe_root_tile_mmio(xe), &ep);
287290
if (ep.cookie != XE_I2C_EP_COOKIE_DEVICE)
288291
return 0;

0 commit comments

Comments
 (0)