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 2D7ACCD8C83 for ; Fri, 5 Jun 2026 21:05:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B7E0E112C20; Fri, 5 Jun 2026 21:05:47 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="PSTq31uD"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1F1F9112C20; Fri, 5 Jun 2026 21:05:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1780693547; x=1812229547; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=n+pmT9aLIgIWmdlRu6E2QHM/4DPYbUSAGm4f0ZJ4Hj4=; b=PSTq31uDEN7WhUOcCECe6lYAhd0puvfpSEtbCXRuxQbWsqKbFUSrCnqR mUj9gYEG/oYfo3PRMMnmmVhojsFy0L7rGOSekeb2mfVrBibxwZE8lGBFo QNON1Ejfr9Ex4QWoTTZvCMRgUM7Rl111UMfB+YeZ8xkRih0u4cZJbajzY A+RNuHhx6yC5hUCfiyfFTIkwHgyqCw7znDQxyuI6ZTxBEq2wkJI9g82uo T3xvV2sID+xOVYPZKrRbLe1nHEPQYQ0n0JTgATZJeHRfZS1RvIp+fC3hx 4vyEtqxTXy6JbUkosif1+Px9/p2lKly6NYwEg88Qp3HwDiAZkJxjHo41c w==; X-CSE-ConnectionGUID: f1VQjwlRRVWFDlp5CtkdfQ== X-CSE-MsgGUID: cqwyh+a/SJWEj8zFXDMpzQ== X-IronPort-AV: E=McAfee;i="6800,10657,11808"; a="69064565" X-IronPort-AV: E=Sophos;i="6.24,189,1774335600"; d="scan'208";a="69064565" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2026 14:05:46 -0700 X-CSE-ConnectionGUID: yo8rwZWrQ2mIwsSV0eXoWg== X-CSE-MsgGUID: R647S36uS/qyDUD2q+b8Gg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,189,1774335600"; d="scan'208";a="244994705" Received: from osgc-sh-dragon.sh.intel.com ([10.239.81.44]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2026 14:05:45 -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 v3 3/5] drm/xe/i2c: Use xe print functions in xe_i2c.c Date: Sat, 6 Jun 2026 05:05:32 +0800 Message-ID: <20260605210534.3843211-4-jonathan.cavitt@intel.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260605210534.3843211-1-jonathan.cavitt@intel.com> References: <20260605210534.3843211-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 --- 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