From mboxrd@z Thu Jan 1 00:00:00 1970 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 B8DCAC61DD6 for ; Wed, 2 Sep 2026 19:59:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 68BC110E64D; Wed, 2 Sep 2026 19:59:03 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Ca9f8gL2"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2449C10E64D for ; Wed, 2 Sep 2026 19:59:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1788379143; x=1819915143; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Qyr5iL7fMN/F6TF+GRS8zpJgQoDZ7pD/bRivKf4Doi4=; b=Ca9f8gL2ABP9WZs7YZstvW5U+194blMgOAZFYlU4XWWaIJwXUT0xh1T1 eui80FxIPfGkwA2K7OUgKWGEHJkMNT9XJx75b6hRvu8J6UTlYdv3guvxT PfsDdGUhNNvptVdk4WQ1hSGv1TlsMLGdMua4JjLhj8/0v9W89tOwOkS++ fWyA36tXtMgaY9MaaF0N5b+GbmtX0KaM+CKltfVwesrZewaZdvL1xfXWj 5JEHogn3W750U552f0g7/N4D1G1jdqS73enAkdZjKi4iPbWZf//cjKVne SZodoemeA6MWj7LCY+QWRK1+Q0zvHNSUJDudTIJw/3ef0DLf10L9faM69 Q==; X-CSE-ConnectionGUID: Cef8bKAFRrOrDwZNGK+qeA== X-CSE-MsgGUID: Vv3dyZ2/Qx6SpYK72Lbj7A== X-IronPort-AV: E=McAfee;i="6800,10657,11894"; a="106216473" X-IronPort-AV: E=Sophos;i="6.25,258,1779174000"; d="scan'208";a="106216473" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2026 12:59:02 -0700 X-CSE-ConnectionGUID: xecg2uFhRem21Y2g42UzFQ== X-CSE-MsgGUID: csZAIVIhQwirAEu6qEAQEg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,258,1779174000"; d="scan'208";a="266265729" Received: from osgc-sh-dragon.sh.intel.com ([10.239.81.44]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2026 12:59:00 -0700 From: Jonathan Cavitt To: intel-xe@lists.freedesktop.org Cc: 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 v6 3/3] drm/xe/i2c: Use xe print functions in xe_i2c.c Date: Thu, 3 Sep 2026 03:58:51 +0800 Message-ID: <20260902195851.306669-4-jonathan.cavitt@intel.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260902195851.306669-1-jonathan.cavitt@intel.com> References: <20260902195851.306669-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 d8fa68206f418..af43a093ddf19 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 @@ -32,6 +31,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" @@ -304,7 +304,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) @@ -318,7 +318,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