From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=68.232.153.233 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796373313; b=bqk9EaW7/AkMdLQDm3H1fUYI3qL8ivRtxnuRvOw0fn3IV4zw5I7eJqyrNSSfYs6FTY1T giO+FDZ2cVcUTbDjJoNIpC+4MRnNprqHuERXyKnnCnB9qLc1+RAEzC+tzFn+Si0kFuTeP qRPYn9wXBVrmn8+BjzW8Q97skFN+Oc1q/ak+miHVjtEYtiGcaP7Lbmx1o4PFYZz19asID xwuxMvpV0GK0lCm6I7me4wdVaBQvTTdm6tCnRPjbQnKGYhTMHTTGr0AihIjBBtvvd+o2Y UwH1i3arbvRa03nt19Iz/ZLsLtmlTllH6yJBjTgwoY4PW9ulJAmnMibxh+OkgeKmKpg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796373313; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-Amp-Result:Received:Received:Received:From:To:CC: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:Content-Type; bh=yYyQsv+9MAnbNaugRDVTeC5aGJbSGUeVlfkT9Wsy7/s=; b=t5/rSdWfEYAf15Rz3QdYGrS/80tx/9QXmmnEZDCTM2XX7bPT5fUJtrI70PuhWRBxLJjO OY6GFR7QKCs0eEHNa3BSCS18u+6CfbGR2DRuGS306jnsywvXIgviSUkVvu1CQolaSJItz YF9Gzr8WO1pfbs10+oQIAcSCSewFejAycCXdoZi7Xurd62Svy/WlDQFF/3u+Hg9HfK3S0 5sG2ceC/r5GjRqvhkNDQJYZzEZrqjpPf2w2HSUr5yFMfPpKYM9w+n+Kj94KsbopeYFjAo 4FU2/q++lbvoK3tM/pLazSMn3xAVXTyRjvXZynsseBLduNlIkIeA0+N5WE35IrLdAUA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=KKNuBn+h; arc=none smtp.remote-ip=68.232.153.233 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7006C606A32C for ; Fri, 4 Dec 2026 08:35:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7006C606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=KKNuBn+h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1796373313; x=1827909313; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xRglXnDcMzi1vVkNsKjybpK8GqrbUhAv/miZgkpc+r4=; b=KKNuBn+h7diQUlG7qI2HWYDiZmz+PLEhAEx0x7/qBme6hJhyXch5nwAN c62WvlKV5PsXPgoJc57A1d+59AVnFdzxtz3ZQFUjcFfS2I4KzAJo/snFI FesL6y+Yjbo/vocF2VazU+xxk6duANgnMtXpMphC+EQygvHqeQUdcMCJG +97oNhAfl3KB44Tsc4vb9cp42Eipl/vxTTN/UDpe1fjSubFV311PaRfO9 WNvrAv5NNTMAtBrl3Ilh61pZsOeTojQrEwDtax5nL84bvhSTZ7luMKUX0 n1MUta0RmQBq1Gi7iab26mOxpASmiPiW+UzMHjaLlVKMeiPFmz6Bo5rye g==; X-CSE-ConnectionGUID: DCLxoWdrQimGOCcsZiTRTQ== X-CSE-MsgGUID: zLgg1o6IQkaC2XP/sMGWIQ== X-IronPort-AV: E=Sophos;i="6.29,78,1794898800"; d="scan'208";a="67457406" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 04 Dec 2026 01:35:07 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Fri, 4 Dec 2026 01:35:06 -0700 Received: from che-ll-i67131.microchip.com (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Fri, 4 Dec 2026 01:35:03 -0700 From: Manikandan Muralidharan To: , , , , , , CC: Subject: [PATCH 1/3] i3c: mipi-i3c-hci: move shared SCL timing register offsets to hci.h Date: Fri, 4 Dec 2026 14:04:47 +0530 Message-ID: <20261204083449.933526-2-manikandan.m@microchip.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204083449.933526-1-manikandan.m@microchip.com> References: <20261204083449.933526-1-manikandan.m@microchip.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain HCI_SCL_I3C_OD_TIMING and HCI_SCL_I3C_PP_TIMING are vendor-specific registers that will be programmed by both the AMD and Microchip quirk code. Move them from hci_quirks.c to hci.h to avoid duplicate definitions. No functional change. Signed-off-by: Manikandan Muralidharan --- drivers/i3c/master/mipi-i3c-hci/hci.h | 4 ++++ drivers/i3c/master/mipi-i3c-hci/hci_quirks.c | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/i3c/master/mipi-i3c-hci/hci.h b/drivers/i3c/master/mipi-i3c-hci/hci.h index 4288a1b5b491..6a5b1f9875e1 100644 --- a/drivers/i3c/master/mipi-i3c-hci/hci.h +++ b/drivers/i3c/master/mipi-i3c-hci/hci.h @@ -179,6 +179,10 @@ struct i3c_hci_dev_data { #define HCI_QUIRK_DMA_ABORT_REQUIRES_PIO_RESET BIT(8) /* Do PIO queue SW resets after DMA abort */ #define HCI_QUIRK_DMA_REQUIRES_HC_ABORT BIT(9) /* Use HC_CONTROL ABORT to abort DMA */ +/* Vendor-specific SCL timing registers shared by the quirk files */ +#define HCI_SCL_I3C_OD_TIMING 0x214 +#define HCI_SCL_I3C_PP_TIMING 0x218 + /* global functions */ void mipi_i3c_hci_resume(struct i3c_hci *hci); void mipi_i3c_hci_abort(struct i3c_hci *hci); diff --git a/drivers/i3c/master/mipi-i3c-hci/hci_quirks.c b/drivers/i3c/master/mipi-i3c-hci/hci_quirks.c index 3b9c6e76c536..646de0d9f5c5 100644 --- a/drivers/i3c/master/mipi-i3c-hci/hci_quirks.c +++ b/drivers/i3c/master/mipi-i3c-hci/hci_quirks.c @@ -11,9 +11,6 @@ #include #include "hci.h" -/* Timing registers */ -#define HCI_SCL_I3C_OD_TIMING 0x214 -#define HCI_SCL_I3C_PP_TIMING 0x218 #define HCI_SDA_HOLD_SWITCH_DLY_TIMING 0x230 /* Timing values to configure 9MHz frequency */ -- 2.43.0