Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 60956CD8CAA for ; Mon, 8 Jun 2026 18:31:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C63DA10F884; Mon, 8 Jun 2026 18:31:06 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="BsMMqRGp"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id C9EE310E367; Mon, 8 Jun 2026 18:31:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1780943466; x=1812479466; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ocJQBUBlh44dStY5fbD6sQlojbEy+tQQ2QWDf6xOHjU=; b=BsMMqRGpsTdpqbvIOnMENg29R9bdOi88nBf/JY/kJwp4XZ9Fjv2NE4jS t8cz4otTBrUx0lab3+j1KEBPx2gt1g00OZmkNsoPCfE+2UAUx+CKpOiC4 Io1m58UdJEvfOWoNaf9kJ9ilt0uuEa+ueAY1oe7LVsEAMmBM/qNS2+IJX nxMkfecwkg3XxgKhztdjaBpQv0ioBv+jRjnqaoq6lHaC1RjTYu/y/tObc ozuYtuU+pFBqwJZq4fwndd+lNPhUHsAqPF/veixVJZ0VrlHuJ6SpZnCTe Mzyp2D6ocyBBEV/NLJAdVP9SNm4UsR/wFOZFuF7NUiIYhsHl10Y8sDJqb Q==; X-CSE-ConnectionGUID: PKBT4aEZSkqXuhAlwSegqg== X-CSE-MsgGUID: B6pYuH0pQM678XX9efZgBg== X-IronPort-AV: E=McAfee;i="6800,10657,11811"; a="85543999" X-IronPort-AV: E=Sophos;i="6.24,194,1774335600"; d="scan'208";a="85543999" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2026 11:31:06 -0700 X-CSE-ConnectionGUID: vbEPxKVlTtaUSlSd5ybrCA== X-CSE-MsgGUID: k6eKt0aRRJ+rGebgdA2Ukg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,194,1774335600"; d="scan'208";a="249542046" Received: from osgc-sh-dragon.sh.intel.com ([10.239.81.44]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2026 11:31:01 -0700 From: Jonathan Cavitt To: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: saurabhg.gupta@intel.com, alex.zuo@intel.com, jonathan.cavitt@intel.com, raag.jadav@intel.com, Michal.Wajdeczko@intel.com Subject: [PATCH v4 3/5] drm/xe/i2c: Use xe print functions in xe_i2c.c Date: Tue, 9 Jun 2026 02:30:48 +0800 Message-ID: <20260608183050.3875235-4-jonathan.cavitt@intel.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260608183050.3875235-1-jonathan.cavitt@intel.com> References: <20260608183050.3875235-1-jonathan.cavitt@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Update xe_i2c.c to use the xe error reporting helper functions in xe_printk.h instead of directly calling the associated drm print functions from drm_print.h Signed-off-by: Jonathan Cavitt Reviewed-by: Raag Jadav --- drivers/gpu/drm/xe/xe_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_i2c.c b/drivers/gpu/drm/xe/xe_i2c.c index 706783863d07..148e82e01ae8 100644 --- a/drivers/gpu/drm/xe/xe_i2c.c +++ b/drivers/gpu/drm/xe/xe_i2c.c @@ -5,7 +5,6 @@ * Copyright (C) 2025 Intel Corporation. */ -#include #include #include #include @@ -30,6 +29,7 @@ #include "xe_device.h" #include "xe_i2c.h" #include "xe_mmio.h" +#include "xe_printk.h" #include "xe_sriov.h" #include "xe_survivability_mode.h" @@ -285,7 +285,7 @@ void xe_i2c_pm_suspend(struct xe_device *xe) return; xe_mmio_rmw32(mmio, I2C_CONFIG_PMCSR, PCI_PM_CTRL_STATE_MASK, (__force u32)PCI_D3hot); - drm_dbg(&xe->drm, "pmcsr: 0x%08x\n", xe_mmio_read32(mmio, I2C_CONFIG_PMCSR)); + xe_dbg(xe, "pmcsr: 0x%08x\n", xe_mmio_read32(mmio, I2C_CONFIG_PMCSR)); } void xe_i2c_pm_resume(struct xe_device *xe, bool d3cold) @@ -299,7 +299,7 @@ void xe_i2c_pm_resume(struct xe_device *xe, bool d3cold) xe_mmio_rmw32(mmio, I2C_CONFIG_CMD, 0, PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER); xe_mmio_rmw32(mmio, I2C_CONFIG_PMCSR, PCI_PM_CTRL_STATE_MASK, (__force u32)PCI_D0); - drm_dbg(&xe->drm, "pmcsr: 0x%08x\n", xe_mmio_read32(mmio, I2C_CONFIG_PMCSR)); + xe_dbg(xe, "pmcsr: 0x%08x\n", xe_mmio_read32(mmio, I2C_CONFIG_PMCSR)); } static void xe_i2c_remove(void *data) -- 2.53.0