mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Beleswar Padhi <b-padhi@ti.com>
To: <nm@ti.com>, <kristo@kernel.org>, <ssantosh@kernel.org>,
	<afd@ti.com>, <vigneshr@ti.com>, <u-kumar1@ti.com>
Cc: <linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>, <b-padhi@ti.com>
Subject: [PATCH v3 16/22] firmware: ti_sci: Move the huge ti_sci file into its own directory
Date: Thu, 29 Oct 2026 23:41:41 +0530	[thread overview]
Message-ID: <20261029181147.266771-17-b-padhi@ti.com> (raw)
In-Reply-To: <20261029181147.266771-1-b-padhi@ti.com>

From: Andrew Davis <afd@ti.com>

Move the huge ti_sci.c file and its header into its own "ti"
sub-directory. While at it, rename the file to ti_sci_core.c as this
file will be broken down into smaller files tied to operations as part
of future cleanups.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
---
v3: Changelog:
1. Rename ti_sci.c to ti_sci_core.c while refactoring the files.
[Andrew]

Link to v2:
https://lore.kernel.org/all/20260930160607.2674980-17-b-padhi@ti.com/

v2: Changelog:
1. None to this patch.

Link to v1:
https://lore.kernel.org/all/20260929201746.4078803-17-b-padhi@ti.com/

 MAINTAINERS                                     |  2 +-
 drivers/firmware/Kconfig                        | 17 +----------------
 drivers/firmware/Makefile                       |  2 +-
 drivers/firmware/ti/Kconfig                     | 17 +++++++++++++++++
 drivers/firmware/ti/Makefile                    |  4 ++++
 drivers/firmware/{ => ti}/ti_sci.h              |  0
 drivers/firmware/{ti_sci.c => ti/ti_sci_core.c} |  0
 7 files changed, 24 insertions(+), 18 deletions(-)
 create mode 100644 drivers/firmware/ti/Kconfig
 create mode 100644 drivers/firmware/ti/Makefile
 rename drivers/firmware/{ => ti}/ti_sci.h (100%)
 rename drivers/firmware/{ti_sci.c => ti/ti_sci_core.c} (100%)

diff --git a/MAINTAINERS b/MAINTAINERS
index e4ca41cdd8729..2ebc349551262 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -27774,7 +27774,7 @@ F:	Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.yaml
 F:	Documentation/devicetree/bindings/reset/ti,sci-reset.yaml
 F:	Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml
 F:	drivers/clk/keystone/sci-clk.c
-F:	drivers/firmware/ti_sci*
+F:	drivers/firmware/ti/*
 F:	drivers/irqchip/irq-ti-sci-inta.c
 F:	drivers/irqchip/irq-ti-sci-intr.c
 F:	drivers/reset/reset-ti-sci.c
diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
index 43e2e2a645945..aa9e0396605e7 100644
--- a/drivers/firmware/Kconfig
+++ b/drivers/firmware/Kconfig
@@ -236,22 +236,6 @@ config TH1520_AON_PROTOCOL
 	  the kernel through the Always-On protocol, using hardware mailbox as a medium.
 	  Say yes if you need such capabilities.
 
-config TI_SCI_PROTOCOL
-	tristate "TI System Control Interface (TISCI) Message Protocol"
-	depends on TI_MESSAGE_MANAGER
-	default ARCH_K3
-	help
-	  TI System Control Interface (TISCI) Message Protocol is used to manage
-	  compute systems such as ARM, DSP etc with the system controller in
-	  complex System on Chip(SoC) such as those found on certain keystone
-	  generation SoC from TI.
-
-	  System controller provides various facilities including power
-	  management function support.
-
-	  This protocol library is used by client drivers to use the features
-	  provided by the system controller.
-
 config TRUSTED_FOUNDATIONS
 	bool "Trusted Foundations secure monitor support"
 	depends on ARM && CPU_V7
@@ -313,6 +297,7 @@ source "drivers/firmware/qcom/Kconfig"
 source "drivers/firmware/samsung/Kconfig"
 source "drivers/firmware/smccc/Kconfig"
 source "drivers/firmware/tegra/Kconfig"
+source "drivers/firmware/ti/Kconfig"
 source "drivers/firmware/xilinx/Kconfig"
 
 endmenu
diff --git a/drivers/firmware/Makefile b/drivers/firmware/Makefile
index 50b3383131522..d9e72ba2e4e01 100644
--- a/drivers/firmware/Makefile
+++ b/drivers/firmware/Makefile
@@ -21,7 +21,6 @@ obj-$(CONFIG_FW_ATTR_CLASS)	+= firmware_attributes_class.o
 obj-$(CONFIG_SYSFB)		+= sysfb.o
 obj-$(CONFIG_SYSFB_SIMPLEFB)	+= sysfb_simplefb.o
 obj-$(CONFIG_TH1520_AON_PROTOCOL) += thead,th1520-aon.o
-obj-$(CONFIG_TI_SCI_PROTOCOL)	+= ti_sci.o
 obj-$(CONFIG_TRUSTED_FOUNDATIONS) += trusted_foundations.o
 obj-$(CONFIG_TURRIS_MOX_RWTM)	+= turris-mox-rwtm.o
 
@@ -40,4 +39,5 @@ obj-y				+= qcom/
 obj-y				+= samsung/
 obj-y				+= smccc/
 obj-y				+= tegra/
+obj-y				+= ti/
 obj-y				+= xilinx/
diff --git a/drivers/firmware/ti/Kconfig b/drivers/firmware/ti/Kconfig
new file mode 100644
index 0000000000000..07d7968f9cc8f
--- /dev/null
+++ b/drivers/firmware/ti/Kconfig
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+config TI_SCI_PROTOCOL
+	tristate "TI System Control Interface (TISCI) Message Protocol"
+	depends on TI_MESSAGE_MANAGER
+	default ARCH_K3
+	help
+	  TI System Control Interface (TISCI) Message Protocol is used to manage
+	  compute systems such as ARM, DSP etc with the system controller in
+	  complex System on Chip(SoC) such as those found on certain keystone
+	  generation SoC from TI.
+
+	  System controller provides various facilities including power
+	  management function support.
+
+	  This protocol library is used by client drivers to use the features
+	  provided by the system controller.
diff --git a/drivers/firmware/ti/Makefile b/drivers/firmware/ti/Makefile
new file mode 100644
index 0000000000000..ca54cd35eaef2
--- /dev/null
+++ b/drivers/firmware/ti/Makefile
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+ti_sci-y			:= ti_sci_core.o
+obj-$(CONFIG_TI_SCI_PROTOCOL)	+= ti_sci.o
diff --git a/drivers/firmware/ti_sci.h b/drivers/firmware/ti/ti_sci.h
similarity index 100%
rename from drivers/firmware/ti_sci.h
rename to drivers/firmware/ti/ti_sci.h
diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti/ti_sci_core.c
similarity index 100%
rename from drivers/firmware/ti_sci.c
rename to drivers/firmware/ti/ti_sci_core.c
-- 
2.34.1


  parent reply	other threads:[~2026-10-29 18:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-29 18:11 [PATCH v3 00/22] Cleanup and Refactor TI-SCI driver Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 01/22] firmware: ti_sci: Move error message handling into ti_sci_get_one_xfer() Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 02/22] firmware: ti_sci: Move error message handling into ti_sci_do_xfer() Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 03/22] firmware: ti_sci: Move check for ACK " Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 04/22] firmware: ti_sci: Remove out of place RM debug messages Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 05/22] firmware: ti_sci: Name response variable resp for consistency Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 06/22] firmware: ti_sci: Handle xfer cleanup inside ti_sci_do_xfer() Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 07/22] firmware: ti_sci: Pass request struct into ti_sci_do_xfer() Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 08/22] firmware: ti_sci: Combine xfer allocation and transfer functions Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 09/22] firmware: ti_sci: Fetch info struct from handle inside ti_sci_do_xfer() Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 10/22] firmware: ti_sci: Use tx_message as message buffer directly Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 11/22] firmware: ti_sci: Use rx_message as message receive buffer Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 12/22] firmware: ti_sci: Fix some kernel-doc references in structs Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 13/22] soc: ti: ti_sci_protocol.h: Add missing documentation for structs Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 14/22] firmware: ti_sci: Do not export reboot control Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 15/22] firmware: ti_sci: Use pmops fxn pointers in suspend/resume hooks Beleswar Padhi
2026-10-29 18:11 ` Beleswar Padhi [this message]
2026-10-29 18:11 ` [PATCH v3 17/22] firmware: ti: ti_sci: Add missing includes for self-contained headers Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 18/22] firmware: ti: ti_sci_device: Move device ops into its own file Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 19/22] firmware: ti: ti_sci_clock: Move clock " Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 20/22] firmware: ti: ti_sci_pm: Move pm " Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 21/22] firmware: ti: ti_sci_rm: Move rm " Beleswar Padhi
2026-10-29 18:11 ` [PATCH v3 22/22] firmware: ti: ti_sci_proc: Move processor " Beleswar Padhi

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=20261029181147.266771-17-b-padhi@ti.com \
    --to=b-padhi@ti.com \
    --cc=afd@ti.com \
    --cc=kristo@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nm@ti.com \
    --cc=ssantosh@kernel.org \
    --cc=u-kumar1@ti.com \
    --cc=vigneshr@ti.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®