]> git.ipfire.org Git - thirdparty/u-boot.git/commit
scsi: ufs: renesas: Replace init data by init code
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Sat, 3 Jan 2026 00:22:27 +0000 (01:22 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 27 Jan 2026 20:46:44 +0000 (21:46 +0100)
commit3ffda58597bab341b130fcd6cf89e6d2a403b780
treef7d68dd27f0f675d26aebd56117d296b028e6d44
parent431f1ce46bbffff0db8f03437a34400b11b30175
scsi: ufs: renesas: Replace init data by init code

Since initialization of the UFS controller on R-Car S4-8 ES1.0 requires
only static values, the driver uses initialization data stored in the const
ufs_param[] array.  However, other UFS controller variants (R-Car S4-8
ES1.2) require dynamic values, like those obtained from E-FUSE.  Refactor
the initialization code to prepare for this.

This also reduces kernel size by almost 30 KiB.

Ported from Linux kernel commit
c4e83573c3d0 ("scsi: ufs: renesas: Replace init data by init code")

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/3520e27ac7ff512de6508f630eee3c1689a7c73d.1741179611.git.geert+renesas@glider.be
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/ufs/ufs-renesas.c