public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ferass El Hafidi <funderscore@postmarketos.org>
To: u-boot-qcom@groups.io, u-boot@lists.denx.de,
	Sumit Garg <sumit.garg@kernel.org>
Cc: "Tom Rini" <trini@konsulko.com>,
	"Neil Armstrong" <neil.armstrong@linaro.org>,
	"Bhupesh Sharma" <bhupesh.linux@gmail.com>,
	"Neha Malcom Francis" <n-francis@ti.com>,
	"Anshul Dalal" <anshuld@ti.com>, "Peng Fan" <peng.fan@nxp.com>,
	"Mattijs Korpershoek" <mkorpershoek@kernel.org>,
	"Quentin Schulz" <quentin.schulz@cherry.de>,
	"Hrushikesh Salunke" <h-salunke@ti.com>,
	"Alexey Charkov" <alchark@gmail.com>,
	"Dario Binacchi" <dario.binacchi@amarulasolutions.com>,
	"Andre Przywara" <andre.przywara@arm.com>,
	"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
	"Javier Martinez Canillas" <javierm@redhat.com>,
	"Jan Kiszka" <jan.kiszka@siemens.com>,
	"Javier Tia" <javier.tia@linaro.org>,
	"Rasmus Villemoes" <ravi@prevas.dk>,
	"Varadarajan Narayanan" <quic_varada@quicinc.com>,
	"João Marcos Costa" <joaomarcos.costa@bootlin.com>,
	"Dhruva Gole" <d-gole@ti.com>,
	"Richard Genoud" <richard.genoud@bootlin.com>,
	"Marek Vasut" <marek.vasut+renesas@mailbox.org>,
	"Simon Glass" <sjg@chromium.org>,
	"Igor Belwon" <igor.belwon@mentallysanemainliners.org>,
	"Shawn Lin" <shawn.lin@rock-chips.com>,
	"Tuyen Dang" <tuyen.dang.xa@renesas.com>,
	"Casey Connolly" <casey.connolly@linaro.org>,
	"Lukasz Majewski" <lukma@denx.de>,
	"Patrice Chotard" <patrice.chotard@foss.st.com>,
	"Patrick Delaunay" <patrick.delaunay@foss.st.com>,
	"Michal Simek" <michal.simek@amd.com>, "Yao Zi" <me@ziyao.cc>,
	"Peter Korsgaard" <peter@korsgaard.com>,
	"Balaji Selvanathan" <balaji.selvanathan@oss.qualcomm.com>
Subject: Re: [PATCH 2/4] drivers: ufs: qcom: Add SPL support
Date: Thu, 09 Apr 2026 17:38:25 +0000	[thread overview]
Message-ID: <td8mkt.1mmhaeeba0rbd@postmarketos.org> (raw)
In-Reply-To: <20260409-spl_ufs_only-v1-2-f7e0e243d805@oss.qualcomm.com>

Hi, some drive-by feedback:

On Thu, 09 Apr 2026 14:43, "Balaji Selvanathan via groups.io" <balaji.selvanathan=oss.qualcomm.com@groups.io> wrote:
>Enable Qualcomm UFS driver to be built for SPL. The ufs-uclass is
>also built conditionally based on whether SPL or
>U-Boot proper is being compiled.
>
>Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
>---
> drivers/ufs/Kconfig  | 8 ++++++++
> drivers/ufs/Makefile | 7 ++++++-
> 2 files changed, 14 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/ufs/Kconfig b/drivers/ufs/Kconfig
>index 49472933de3..a32d51cae1d 100644
>--- a/drivers/ufs/Kconfig
>+++ b/drivers/ufs/Kconfig
>@@ -55,6 +55,14 @@ config UFS_QCOM
> 	  This selects the platform driver for the UFS host
> 	  controller present on Qualcomm Snapdragon SoCs.
> 
>+config SPL_UFS_QCOM
>+	bool "Qualcomm Host Controller driver for UFS in SPL"
>+	depends on SPL_UFS_SUPPORT && ARCH_SNAPDRAGON
>+	help
>+	  This selects the platform driver for the UFS host
>+	  controller present on Qualcomm Snapdragon SoCs for use in SPL.
>+	  Enable this to use UFS as a boot device in SPL on Qualcomm platforms.
>+
> config UFS_RENESAS
> 	bool "Renesas R-Car S4 UFS Controller support"
> 	depends on UFS
>diff --git a/drivers/ufs/Makefile b/drivers/ufs/Makefile
>index e7f3c1d30c4..7056066ce25 100644
>--- a/drivers/ufs/Makefile
>+++ b/drivers/ufs/Makefile
>@@ -3,13 +3,18 @@
> # Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com
> #
> 
>+ifdef CONFIG_SPL_BUILD
>+obj-$(CONFIG_SPL_UFS_SUPPORT) += ufs-uclass.o
>+else
> obj-$(CONFIG_UFS) += ufs-uclass.o
>+endif

CONFIG_SPL_UFS_SUPPORT depends on CONFIG_UFS being enabled, so from my
understanding, don't think this change is needed, is it?

> obj-$(CONFIG_UFS_AMD_VERSAL2) += ufs-amd-versal2.o ufshcd-dwc.o
> obj-$(CONFIG_UFS_CADENCE) += cdns-platform.o
> obj-$(CONFIG_UFS_MEDIATEK) += ufs-mediatek.o
> obj-$(CONFIG_UFS_PCI) += ufs-pci.o
>-obj-$(CONFIG_UFS_QCOM) += ufs-qcom.o
>+obj-$(CONFIG_$(PHASE_)UFS_QCOM) += ufs-qcom.o
> obj-$(CONFIG_UFS_RENESAS) += ufs-renesas.o
> obj-$(CONFIG_UFS_RENESAS_GEN5) += ufs-renesas-rcar-gen5.o
> obj-$(CONFIG_UFS_ROCKCHIP) += ufs-rockchip.o
> obj-$(CONFIG_UFS_TI_J721E) += ti-j721e-ufs.o
>+
>

Best regards,
Ferass

  reply	other threads:[~2026-04-09 18:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-09 14:43 [PATCH 0/4] spl: Add UFS boot support for SPL on Qualcomm Balaji Selvanathan
2026-04-09 14:43 ` [PATCH 1/4] spl: ufs: Add partition support and flexible loading Balaji Selvanathan
2026-04-09 15:39   ` Alexey Charkov
2026-04-09 16:04     ` Balaji Selvanathan
2026-04-09 14:43 ` [PATCH 2/4] drivers: ufs: qcom: Add SPL support Balaji Selvanathan
2026-04-09 17:38   ` Ferass El Hafidi [this message]
2026-04-09 17:45     ` Ferass El Hafidi
2026-04-13 12:37   ` Sumit Garg
2026-04-09 14:43 ` [PATCH 3/4] drivers: phy: qcom: Add UFS PHY support for SPL Balaji Selvanathan
2026-04-13 12:39   ` Sumit Garg
2026-04-09 14:43 ` [PATCH 4/4] clk: stub: Add Kconfig option for SPL stub driver Balaji Selvanathan
2026-04-09 15:45   ` Alexey Charkov
2026-04-09 16:05     ` Balaji Selvanathan

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=td8mkt.1mmhaeeba0rbd@postmarketos.org \
    --to=funderscore@postmarketos.org \
    --cc=alchark@gmail.com \
    --cc=andre.przywara@arm.com \
    --cc=anshuld@ti.com \
    --cc=balaji.selvanathan@oss.qualcomm.com \
    --cc=bhupesh.linux@gmail.com \
    --cc=casey.connolly@linaro.org \
    --cc=d-gole@ti.com \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=h-salunke@ti.com \
    --cc=igor.belwon@mentallysanemainliners.org \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jan.kiszka@siemens.com \
    --cc=javier.tia@linaro.org \
    --cc=javierm@redhat.com \
    --cc=joaomarcos.costa@bootlin.com \
    --cc=lukma@denx.de \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=me@ziyao.cc \
    --cc=michal.simek@amd.com \
    --cc=mkorpershoek@kernel.org \
    --cc=n-francis@ti.com \
    --cc=neil.armstrong@linaro.org \
    --cc=patrice.chotard@foss.st.com \
    --cc=patrick.delaunay@foss.st.com \
    --cc=peng.fan@nxp.com \
    --cc=peter@korsgaard.com \
    --cc=quentin.schulz@cherry.de \
    --cc=quic_varada@quicinc.com \
    --cc=ravi@prevas.dk \
    --cc=richard.genoud@bootlin.com \
    --cc=shawn.lin@rock-chips.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@kernel.org \
    --cc=trini@konsulko.com \
    --cc=tuyen.dang.xa@renesas.com \
    --cc=u-boot-qcom@groups.io \
    --cc=u-boot@lists.denx.de \
    /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