Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Raag Jadav <raag.jadav@intel.com>
Cc: intel-xe@lists.freedesktop.org, rodrigo.vivi@intel.com,
	michal.wajdeczko@intel.com, matthew.d.roper@intel.com
Subject: Re: [PATCH v1] drm/xe/i2c: Drop manual VF check
Date: Tue, 30 Jun 2026 12:57:10 +0300	[thread overview]
Message-ID: <akOS9lXJjQhCSJGN@kuha> (raw)
In-Reply-To: <20260630091800.403926-1-raag.jadav@intel.com>

On Tue, Jun 30, 2026 at 02:48:00PM +0530, Raag Jadav wrote:
> 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>

FWIW:

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>

> ---
>  drivers/gpu/drm/xe/xe_device.c | 1 +
>  drivers/gpu/drm/xe/xe_i2c.c    | 3 ---
>  2 files changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> index e8b6afb29ab6..cfd4983be411 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -745,6 +745,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;
> diff --git a/drivers/gpu/drm/xe/xe_i2c.c b/drivers/gpu/drm/xe/xe_i2c.c
> index 706783863d07..bd956776b10b 100644
> --- a/drivers/gpu/drm/xe/xe_i2c.c
> +++ b/drivers/gpu/drm/xe/xe_i2c.c
> @@ -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;
> -- 
> 2.43.0

-- 
heikki

  reply	other threads:[~2026-06-30  9:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-30  9:18 [PATCH v1] drm/xe/i2c: Drop manual VF check Raag Jadav
2026-06-30  9:57 ` Heikki Krogerus [this message]
2026-06-30 10:50 ` ✓ CI.KUnit: success for " Patchwork
2026-06-30 11:26 ` ✓ Xe.CI.BAT: " Patchwork
2026-06-30 13:33 ` [PATCH v1] " Michal Wajdeczko
2026-07-01  1:10 ` ✓ Xe.CI.FULL: success for " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=akOS9lXJjQhCSJGN@kuha \
    --to=heikki.krogerus@linux.intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.d.roper@intel.com \
    --cc=michal.wajdeczko@intel.com \
    --cc=raag.jadav@intel.com \
    --cc=rodrigo.vivi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox