]> git.hungrycats.org Git - linux/commitdiff
drm/xe/i2c: Drop manual VF check
authorRaag Jadav <raag.jadav@intel.com>
Tue, 30 Jun 2026 09:18:00 +0000 (14:48 +0530)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 1 Jul 2026 10:02:55 +0000 (12:02 +0200)
Clear has_i2c flag inside vf_update_device_info() instead of manually
checking for VF instance.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patch.msgid.link/20260630091800.403926-1-raag.jadav@intel.com
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_i2c.c

index d3fbcf10f8abe5c2294c8daa1b695dd606f1cb72..c9fa4bfed2b9da6ecdb4fdcb709f900b25bac811 100644 (file)
@@ -739,6 +739,7 @@ static void vf_update_device_info(struct xe_device *xe)
        xe->info.probe_display = 0;
        xe->info.has_heci_cscfi = 0;
        xe->info.has_heci_gscfi = 0;
+       xe->info.has_i2c = 0;
        xe->info.has_late_bind = 0;
        xe->info.skip_guc_pc = 1;
        xe->info.skip_pcode = 1;
index 706783863d07d66b4685005d6649b3cd143ecc3b..bd956776b10be29e342711f269d8a0b798c4e1f1 100644 (file)
@@ -334,9 +334,6 @@ int xe_i2c_probe(struct xe_device *xe)
        if (!xe->info.has_i2c)
                return 0;
 
-       if (IS_SRIOV_VF(xe))
-               return 0;
-
        xe_i2c_read_endpoint(xe_root_tile_mmio(xe), &ep);
        if (ep.cookie != XE_I2C_EP_COOKIE_DEVICE)
                return 0;