mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-23 11:55:58 -04:00
drm/xe/i2c: Drop manual VF check
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
This commit is contained in:
committed by
Michal Wajdeczko
parent
4c7b9c6ece
commit
9420abf8db
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user