From: Yixun Lan <dlan@kernel.org>
To: Anirudh Srinivasan <asrinivasan@oss.tenstorrent.com>
Cc: Alim Akhtar <alim.akhtar@samsung.com>,
Avri Altman <avri.altman@sandisk.com>,
Bart Van Assche <bvanassche@acm.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
"James E.J. Bottomley" <James.Bottomley@hansenpartnership.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
linux-scsi@vger.kernel.org, devicetree@vger.kernel.org,
linux-riscv@lists.infradead.org, spacemit@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] scsi: ufs: spacemit: k3: Add UFS Host Controller driver
Date: Sat, 25 Jul 2026 09:18:24 +0000 [thread overview]
Message-ID: <20260725091824-GKA77545@kernel.org> (raw)
In-Reply-To: <7x3b4sttnc4oxkuvxmpkihfi76lkapjcigo7khgcgfytvol7w2@v5ykuyrk2z3m>
Hi Anirudh,
On 15:16 Sun 12 Jul , Anirudh Srinivasan wrote:
> On Thu, Jul 02, 2026 at 02:31:36AM +0000, Yixun Lan wrote:
> > SpacemiT K3 SoC consist of UFS (Universal Flash Storage) Host Controller
> > which has features compatible with JEDEC UFS 2.2, MIPI UniPro v1.61 and
> > M-PHY v3.0 standard.
> >
> > Signed-off-by: Yixun Lan <dlan@kernel.org>
> > ---
> > drivers/ufs/host/Kconfig | 12 +
> > drivers/ufs/host/Makefile | 1 +
> > drivers/ufs/host/ufs-spacemit.c | 931 ++++++++++++++++++++++++++++++++++++++++
> > drivers/ufs/host/ufs-spacemit.h | 90 ++++
> > 4 files changed, 1034 insertions(+)
> >
> > diff --git a/drivers/ufs/host/Kconfig b/drivers/ufs/host/Kconfig
> > index ff170c0b6da0..4f53b7f7688f 100644
> > --- a/drivers/ufs/host/Kconfig
> > +++ b/drivers/ufs/host/Kconfig
> > @@ -132,6 +132,18 @@ config SCSI_UFS_VARIABLE_SG_ENTRY_SIZE
> > bool
> > default y if SCSI_UFS_EXYNOS && SCSI_UFS_CRYPTO
> >
> > +config SCSI_UFS_SPACEMIT
> > + tristate "SpacemiT UFS controller driver"
> > + depends on SCSI_UFSHCD_PLATFORM && ARCH_SPACEMIT
>
> Can you add SCSI_UFSHCD_PLATFORM and SCSI_UFS_SPACEMIT as modules to
> riscv defconfig (or just add the former and add a default y if
> ARCH_SPACEMIT in this Kconfig entry). This will let defconfig kernels
> to boot with persistant rootfs on these devices.
>
Ok, will consider adding one entry to riscv defconfig, but this should be
handled in another separate patch, for making it as module or built-in driver,
I'm incline to choose latter one, but would be glad to hear different opinion
--
Yixun Lan (dlan)
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
WARNING: multiple messages have this Message-ID (diff)
From: Yixun Lan <dlan@kernel.org>
To: Anirudh Srinivasan <asrinivasan@oss.tenstorrent.com>
Cc: Alim Akhtar <alim.akhtar@samsung.com>,
Avri Altman <avri.altman@sandisk.com>,
Bart Van Assche <bvanassche@acm.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
"James E.J. Bottomley" <James.Bottomley@hansenpartnership.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
linux-scsi@vger.kernel.org, devicetree@vger.kernel.org,
linux-riscv@lists.infradead.org, spacemit@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] scsi: ufs: spacemit: k3: Add UFS Host Controller driver
Date: Sat, 25 Jul 2026 09:18:24 +0000 [thread overview]
Message-ID: <20260725091824-GKA77545@kernel.org> (raw)
In-Reply-To: <7x3b4sttnc4oxkuvxmpkihfi76lkapjcigo7khgcgfytvol7w2@v5ykuyrk2z3m>
Hi Anirudh,
On 15:16 Sun 12 Jul , Anirudh Srinivasan wrote:
> On Thu, Jul 02, 2026 at 02:31:36AM +0000, Yixun Lan wrote:
> > SpacemiT K3 SoC consist of UFS (Universal Flash Storage) Host Controller
> > which has features compatible with JEDEC UFS 2.2, MIPI UniPro v1.61 and
> > M-PHY v3.0 standard.
> >
> > Signed-off-by: Yixun Lan <dlan@kernel.org>
> > ---
> > drivers/ufs/host/Kconfig | 12 +
> > drivers/ufs/host/Makefile | 1 +
> > drivers/ufs/host/ufs-spacemit.c | 931 ++++++++++++++++++++++++++++++++++++++++
> > drivers/ufs/host/ufs-spacemit.h | 90 ++++
> > 4 files changed, 1034 insertions(+)
> >
> > diff --git a/drivers/ufs/host/Kconfig b/drivers/ufs/host/Kconfig
> > index ff170c0b6da0..4f53b7f7688f 100644
> > --- a/drivers/ufs/host/Kconfig
> > +++ b/drivers/ufs/host/Kconfig
> > @@ -132,6 +132,18 @@ config SCSI_UFS_VARIABLE_SG_ENTRY_SIZE
> > bool
> > default y if SCSI_UFS_EXYNOS && SCSI_UFS_CRYPTO
> >
> > +config SCSI_UFS_SPACEMIT
> > + tristate "SpacemiT UFS controller driver"
> > + depends on SCSI_UFSHCD_PLATFORM && ARCH_SPACEMIT
>
> Can you add SCSI_UFSHCD_PLATFORM and SCSI_UFS_SPACEMIT as modules to
> riscv defconfig (or just add the former and add a default y if
> ARCH_SPACEMIT in this Kconfig entry). This will let defconfig kernels
> to boot with persistant rootfs on these devices.
>
Ok, will consider adding one entry to riscv defconfig, but this should be
handled in another separate patch, for making it as module or built-in driver,
I'm incline to choose latter one, but would be glad to hear different opinion
--
Yixun Lan (dlan)
next prev parent reply other threads:[~2026-07-25 9:18 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-02 2:31 [PATCH 0/3] Add UFS Host driver support for SpacemiT K3 SoC Yixun Lan
2026-07-02 2:31 ` Yixun Lan
2026-07-02 2:31 ` [PATCH 1/3] scsi: ufs: spacemit: dt-bindings: Add UFS controller for " Yixun Lan
2026-07-02 2:31 ` Yixun Lan
2026-07-02 2:38 ` sashiko-bot
2026-07-02 6:43 ` Yixun Lan
2026-07-02 2:31 ` [PATCH 2/3] scsi: ufs: spacemit: k3: Add UFS Host Controller driver Yixun Lan
2026-07-02 2:31 ` Yixun Lan
2026-07-02 2:46 ` sashiko-bot
2026-07-02 7:53 ` Philipp Zabel
2026-07-02 7:53 ` Philipp Zabel
2026-07-03 0:16 ` Yixun Lan
2026-07-03 0:16 ` Yixun Lan
2026-07-02 17:21 ` Yao Zi
2026-07-02 17:21 ` Yao Zi
2026-07-03 1:28 ` Yixun Lan
2026-07-03 1:28 ` Yixun Lan
2026-07-06 14:01 ` Bart Van Assche
2026-07-06 14:01 ` Bart Van Assche
2026-07-08 7:10 ` Yixun Lan
2026-07-08 7:10 ` Yixun Lan
2026-07-12 20:16 ` Anirudh Srinivasan
2026-07-12 20:16 ` Anirudh Srinivasan
2026-07-25 9:18 ` Yixun Lan [this message]
2026-07-25 9:18 ` Yixun Lan
2026-07-25 14:50 ` Anirudh Srinivasan
2026-07-25 14:50 ` Anirudh Srinivasan
2026-07-16 21:25 ` Aurelien Jarno
2026-07-16 21:25 ` Aurelien Jarno
2026-07-25 9:20 ` Yixun Lan
2026-07-25 9:20 ` Yixun Lan
2026-07-02 2:31 ` [PATCH 3/3] riscv: dts: spacemit: k3: Add UFS support Yixun Lan
2026-07-02 2:31 ` Yixun Lan
2026-07-02 2:44 ` sashiko-bot
2026-07-04 14:01 ` Jennifer Berringer
2026-07-04 14:01 ` Jennifer Berringer
2026-07-08 2:17 ` Yixun Lan
2026-07-08 2:17 ` Yixun Lan
2026-07-16 21:26 ` Aurelien Jarno
2026-07-16 21:26 ` Aurelien Jarno
2026-07-13 3:40 ` [PATCH 0/3] Add UFS Host driver support for SpacemiT K3 SoC Anirudh Srinivasan
2026-07-13 3:40 ` Anirudh Srinivasan
2026-07-13 12:37 ` Yixun Lan
2026-07-13 12:37 ` Yixun Lan
2026-07-13 14:56 ` Anirudh Srinivasan
2026-07-13 14:56 ` Anirudh Srinivasan
2026-07-13 23:57 ` Yixun Lan
2026-07-13 23:57 ` Yixun Lan
2026-07-19 23:20 ` Anirudh Srinivasan
2026-07-19 23:20 ` Anirudh Srinivasan
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=20260725091824-GKA77545@kernel.org \
--to=dlan@kernel.org \
--cc=James.Bottomley@hansenpartnership.com \
--cc=alex@ghiti.fr \
--cc=alim.akhtar@samsung.com \
--cc=aou@eecs.berkeley.edu \
--cc=asrinivasan@oss.tenstorrent.com \
--cc=avri.altman@sandisk.com \
--cc=bvanassche@acm.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=robh@kernel.org \
--cc=spacemit@lists.linux.dev \
/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.