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 87099CDB480 for ; Tue, 23 Jun 2026 20:21:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4F1BB10EC95; Tue, 23 Jun 2026 20:21:05 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="m/JCrmRg"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 85B0710EC95 for ; Tue, 23 Jun 2026 20:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1782246064; x=1813782064; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ocJQBUBlh44dStY5fbD6sQlojbEy+tQQ2QWDf6xOHjU=; b=m/JCrmRg9UI77reEyZStn84NaxTCfbB4xGqij6gThcnPP8WgWe8sajms d9vtwJFjIqhKt7WjT+9CbzovP60NpOEC9SwWINEqQD3/BGI+sno8kK+y+ uFCu9IyrUqblLv1BQtOX3i6e/2TqKpKFLu3Z3k29lqjRtyfhbZBv0zGMm 7ikmcyc13zhvaTPAUi7bqZh6w63hdHqbuQFF9fVHiLpBuSg0PayfYyfZd dg2VF9mHD5UYI2Y8HFdVzYyEzzDeYqKlOiS6Ate80JVrHeyJpuvHOczwK 0TjvCllRkLJwNlfJcZI7CK76PwEFAi4lskr75cr0we0+nXCgmlVmhQedX A==; X-CSE-ConnectionGUID: itlLaWBOSF61kQskd8LtUg== X-CSE-MsgGUID: zVg6Vme+S4C7hudmEk8Mfw== X-IronPort-AV: E=McAfee;i="6800,10657,11826"; a="83001317" X-IronPort-AV: E=Sophos;i="6.24,221,1774335600"; d="scan'208";a="83001317" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2026 13:21:04 -0700 X-CSE-ConnectionGUID: bnQ9shl8R+uLkdsvh2Y4mQ== X-CSE-MsgGUID: NpggnQTlTriXXqSZ4YKlzQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,221,1774335600"; d="scan'208";a="273308627" Received: from osgc-sh-dragon.sh.intel.com ([10.239.81.44]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2026 13:21:02 -0700 From: Jonathan Cavitt To: intel-xe@lists.freedesktop.org Cc: saurabhg.gupta@intel.com, alex.zuo@intel.com, jonathan.cavitt@intel.com, michal.wajdeczko@intel.com, raag.jadav@intel.com, andi.shyti@linux.intel.com, jani.nikula@intel.com Subject: [PATCH v5 3/4] drm/xe/i2c: Use xe print functions in xe_i2c.c Date: Wed, 24 Jun 2026 04:20:52 +0800 Message-ID: <20260623202053.1023598-4-jonathan.cavitt@intel.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260623202053.1023598-1-jonathan.cavitt@intel.com> References: <20260623202053.1023598-1-jonathan.cavitt@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" 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