All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manikandan Muralidharan <manikandan.m@microchip.com>
To: <alexandre.belloni@bootlin.com>, <Frank.Li@nxp.com>,
	<adrian.hunter@intel.com>, <Jm_Liao@asmedia.com.tw>,
	<Patrick_Yen@asmedia.com.tw>, <linux-kernel@vger.kernel.org>,
	<linux-i3c@lists.infradead.org>
Cc: <manikandan.m@microchip.com>
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	[thread overview]
Message-ID: <20261204083449.933526-2-manikandan.m@microchip.com> (raw)
In-Reply-To: <20261204083449.933526-1-manikandan.m@microchip.com>

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 <manikandan.m@microchip.com>
---
 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 <linux/i3c/master.h>
 #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


-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

WARNING: multiple messages have this Message-ID (diff)
From: Manikandan Muralidharan <manikandan.m@microchip.com>
To: <alexandre.belloni@bootlin.com>, <Frank.Li@nxp.com>,
	<adrian.hunter@intel.com>, <Jm_Liao@asmedia.com.tw>,
	<Patrick_Yen@asmedia.com.tw>, <linux-kernel@vger.kernel.org>,
	<linux-i3c@lists.infradead.org>
Cc: <manikandan.m@microchip.com>
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	[thread overview]
Message-ID: <20261204083449.933526-2-manikandan.m@microchip.com> (raw)
In-Reply-To: <20261204083449.933526-1-manikandan.m@microchip.com>

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 <manikandan.m@microchip.com>
---
 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 <linux/i3c/master.h>
 #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


  reply	other threads:[~2026-12-04  8:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  8:34 [PATCH 0/3] i3c: mipi-i3c-hci: derive SAMA7D65 SCL timings from gclk Manikandan Muralidharan
2026-12-04  8:34 ` Manikandan Muralidharan
2026-12-04  8:34 ` Manikandan Muralidharan [this message]
2026-12-04  8:34   ` [PATCH 1/3] i3c: mipi-i3c-hci: move shared SCL timing register offsets to hci.h Manikandan Muralidharan
2026-12-04 20:22   ` Frank Li
2026-12-04 20:22     ` Frank Li
2026-12-04  8:34 ` [PATCH 2/3] i3c: mipi-i3c-hci: add Microchip quirk to derive SCL timings from gclk Manikandan Muralidharan
2026-12-04  8:34   ` Manikandan Muralidharan
2026-12-04  8:57   ` sashiko-bot
2026-12-04 20:30     ` Frank Li
2026-12-04 20:29   ` Frank Li
2026-12-04 20:29     ` Frank Li
2026-12-04  8:34 ` [PATCH 3/3] i3c: mipi-i3c-hci: add Microchip quirk to set response buffer threshold Manikandan Muralidharan
2026-12-04  8:34   ` Manikandan Muralidharan
2026-12-04  8:48   ` sashiko-bot
2026-12-04 20:34   ` Frank Li
2026-12-04 20:34     ` Frank Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204083449.933526-2-manikandan.m@microchip.com \
    --to=manikandan.m@microchip.com \
    --cc=Frank.Li@nxp.com \
    --cc=Jm_Liao@asmedia.com.tw \
    --cc=Patrick_Yen@asmedia.com.tw \
    --cc=adrian.hunter@intel.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=linux-i3c@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.