U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Quentin Schulz <quentin.schulz@cherry.de>
To: Chen-Yu Tsai <wens@kernel.org>, u-boot@lists.denx.de
Cc: "Chen-Yu Tsai" <wens@csie.org>,
	"Akash Gajjar" <gajjar04akash@gmail.com>,
	"Alexandre Vicenzi" <linux@alxd.me>,
	"Alper Nebi Yasak" <alpernebiyasak@gmail.com>,
	"Anand Moon" <linux.amoon@gmail.com>,
	"Andreas Färber" <afaerber@suse.de>,
	"Andy Yan" <andyshrk@163.com>,
	"Banglang Huang" <banglang.huang@foxmail.com>,
	"Chris Morgan" <macromorgan@hotmail.com>,
	"Christopher Obbard" <christopher.obbard@linaro.org>,
	"David Bauer" <mail@david-bauer.net>,
	"Deepak Das" <deepakdas.linux@gmail.com>,
	"Dragan Simic" <dsimic@manjaro.org>,
	"Elon Zhang" <zhangzj@rock-chips.com>,
	"Eugen Hristev" <eugen.hristev@linaro.org>,
	"FUKAUMI Naoki" <naoki@radxa.com>,
	"Fabio Estevam" <festevam@gmail.com>,
	"Frank Wunderlich" <frank-w@public-files.de>,
	"Heiko Stuebner" <heiko.stuebner@cherry.de>,
	"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
	"Jacobe Zang" <jacobe.zang@wesion.com>,
	"Jaehoon Chung" <jh80.chung@samsung.com>,
	"Jagan Teki" <jagan@amarulasolutions.com>,
	"Jernej Skrabec" <jernej.skrabec@gmail.com>,
	"Jerome Forissier" <jerome.forissier@linaro.org>,
	"Jianfeng Liu" <liujianfeng1994@gmail.com>,
	"Johan Jonker" <jbx6244@gmail.com>,
	"John Clark" <inindev@gmail.com>,
	"Jonas Karlman" <jonas@kwiboo.se>,
	"Joseph Chen" <chenjh@rock-chips.com>,
	"Joshua Riek" <jjriek@verizon.net>,
	"Kever Yang" <kever.yang@rock-chips.com>,
	"Klaus Goger" <klaus.goger@cherry.de>,
	"Levin Du" <djw@t-chip.com.cn>,
	"Loic Devulder" <ldevulder@suse.com>,
	"Maksim Kiselev" <bigunclemax@gmail.com>,
	"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
	"Matwey V. Kornilov" <matwey.kornilov@gmail.com>,
	"Maxim Moskalets" <maximmosk4@gmail.com>,
	"Michael Trimarchi" <michael@amarulasolutions.com>,
	"Nathan Barrett-Morrison" <nathan.morrison@timesys.com>,
	"Nick Xie" <nick@khadas.com>,
	"Nicolas Frattaroli" <frattaroli.nicolas@gmail.com>,
	"Oliver Gaskell" <Oliver.Gaskell@analog.com>,
	"Otavio Salvador" <otavio@ossystems.com.br>,
	"Paul Kocialkowski" <paulk@sys-base.io>,
	"Peng Fan" <peng.fan@nxp.com>,
	"Peter Robinson" <pbrobinson@gmail.com>,
	"Raymond Mao" <raymond.mao@linaro.org>,
	"Ricardo Pardini" <ricardo@pardini.net>,
	"Sam Edwards" <cfsworks@gmail.com>,
	"Sean Anderson" <seanga2@gmail.com>,
	"Sebastian Kropatsch" <seb-dev@mail.de>,
	"Sebastian Reichel" <sebastian.reichel@collabora.com>,
	"Simon Glass" <sjg@chromium.org>,
	"Sumit Garg" <sumit.garg@kernel.org>,
	"Suniel Mahesh" <sunil@amarulasolutions.com>,
	"Tianling Shen" <cnsztl@gmail.com>,
	"Tim Lunn" <tim@feathertop.org>,
	"Tom Fitzhenry" <tom@tom-fitzhenry.me.uk>,
	"Tom Rini" <trini@konsulko.com>,
	"Wadim Egorov" <w.egorov@phytec.de>,
	"Xiaobo Tian" <peterwillcn@gmail.com>,
	"huang lin" <hl@rock-chips.com>
Subject: Re: [PATCH 1/2] mmc: rockchip_dw_mmc: Enable by default for all supported SoCs
Date: Tue, 29 Apr 2025 18:30:42 +0200	[thread overview]
Message-ID: <e4607f73-2d94-41c7-af35-bb94dcc5c336@cherry.de> (raw)
In-Reply-To: <20250429154453.2155923-1-wens@kernel.org>

Hi Chen-Yu,

On 4/29/25 5:44 PM, Chen-Yu Tsai wrote:
> From: Chen-Yu Tsai <wens@csie.org>
> 
> The rockchip_dw_mmc driver supports the MMC controller found in Rockchip
> SoCs. This controller is used for the SD card on all SoCs and eMMC on
> older SoCs. Almost all defconfigs for Rockchip platforms have this
> enabled.
> 
> Enable it by default for all supported Rockchip SoCs. Disable it
> explicitly in defconfigs that previously didn't have it enabled.
> 

I'll let Tom confirm (or not), but I think it'd make sense to make this 
patch lighter by not including the defconfig changes that would be 
simply done automatically when doing a defconfig sync, e.g. like 
bdf41fb7b386bdf60303b7a92431467c12779c86 did? This would be nice because 
it would make your patch much easier to apply if they take long to be 
applied (e.g. someone else changes the defconfig and now we have 
conflicts all over the place). This also would remove unrelated changes 
from the diff, specifically the ones for the PX30 boards which are just 
noise at this point.

[...]

> diff --git a/configs/coolpi-cm5-genbook-rk3588_defconfig b/configs/coolpi-cm5-genbook-rk3588_defconfig
> index 3eb5dc968af6..92676ebb984a 100644
> --- a/configs/coolpi-cm5-genbook-rk3588_defconfig
> +++ b/configs/coolpi-cm5-genbook-rk3588_defconfig
> @@ -65,6 +65,7 @@ CONFIG_MMC_HS400_ES_SUPPORT=y
>   CONFIG_SPL_MMC_HS400_ES_SUPPORT=y
>   CONFIG_MMC_HS400_SUPPORT=y
>   CONFIG_SPL_MMC_HS400_SUPPORT=y
> +# CONFIG_MMC_DW is not set
>   CONFIG_MMC_SDHCI=y
>   CONFIG_MMC_SDHCI_SDMA=y
>   CONFIG_MMC_SDHCI_ROCKCHIP=y

Checked that and sdmmc and sio both seems to be disabled in the DTS, so 
makes sense to have the driver disabled too.

[...]

> diff --git a/configs/evb-rv1108_defconfig b/configs/evb-rv1108_defconfig
> index 46b949531017..d23f90a6a606 100644
> --- a/configs/evb-rv1108_defconfig
> +++ b/configs/evb-rv1108_defconfig
> @@ -31,6 +31,7 @@ CONFIG_FASTBOOT_BUF_SIZE=0x08000000
>   CONFIG_FASTBOOT_FLASH_MMC_DEV=1
>   CONFIG_ROCKCHIP_GPIO=y
>   CONFIG_SYS_I2C_ROCKCHIP=y
> +# CONFIG_MMC_DW is not set
>   CONFIG_SPI_FLASH_GIGADEVICE=y
>   CONFIG_SPI_FLASH_WINBOND=y
>   CONFIG_SPI_FLASH_MTD=y

This one seems to be a mistake, sdmmc is enabled and is supported by 
this driver as far as I know. A separate patch to enable it 
(before/after this one, would be nice).

[...]

> diff --git a/configs/geekbox_defconfig b/configs/geekbox_defconfig
> index 80f91de7a11d..9dc642dc4ad9 100644
> --- a/configs/geekbox_defconfig
> +++ b/configs/geekbox_defconfig
> @@ -22,6 +22,7 @@ CONFIG_REGMAP=y
>   CONFIG_SYSCON=y
>   CONFIG_BOUNCE_BUFFER=y
>   CONFIG_CLK=y
> +# CONFIG_MMC_DW is not set
>   CONFIG_PINCTRL=y
>   CONFIG_RAM=y
>   CONFIG_DEBUG_UART_SHIFT=2

This one seems to be a mistake, emmc is enabled and is supported by this 
driver as far as I know. A separate patch to enable it (before/after 
this one, would be nice).

[...]

> diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
> index 6740591a6533..f2f0e7dbe601 100644
> --- a/drivers/mmc/Kconfig
> +++ b/drivers/mmc/Kconfig
> @@ -251,6 +251,7 @@ config MMC_DAVINCI
>   config MMC_DW
>   	bool "Synopsys DesignWare Memory Card Interface"
>   	select BOUNCE_BUFFER
> +	default y if ARCH_ROCKCHIP
>   	help
>   	  This selects support for the Synopsys DesignWare Mobile Storage IP
>   	  block, this provides host support for SD and MMC interfaces, in both
> @@ -286,6 +287,7 @@ config MMC_DW_ROCKCHIP
>   	bool "Rockchip SD/MMC controller support"
>   	depends on OF_CONTROL
>   	depends on MMC_DW
> +	default y

default y if ARCH_ROCKCHIP

maybe? To avoid boards from other vendors to have to disable it?

Cheers,
Quentin

  parent reply	other threads:[~2025-04-29 17:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-29 15:44 [PATCH 1/2] mmc: rockchip_dw_mmc: Enable by default for all supported SoCs Chen-Yu Tsai
2025-04-29 15:44 ` [PATCH 2/2] mmc: rockchip_sdhci: " Chen-Yu Tsai
2025-04-29 16:42   ` Quentin Schulz
2025-04-29 16:30 ` Quentin Schulz [this message]
2025-04-29 16:51   ` [PATCH 1/2] mmc: rockchip_dw_mmc: " Tom Rini
2025-04-29 17:34   ` Chen-Yu Tsai
2025-04-29 17:40     ` Quentin Schulz
  -- strict thread matches above, loose matches on Subject: below --
2025-04-29 17:41 Chen-Yu Tsai
2025-04-29 17:42 ` Chen-Yu Tsai

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=e4607f73-2d94-41c7-af35-bb94dcc5c336@cherry.de \
    --to=quentin.schulz@cherry.de \
    --cc=Oliver.Gaskell@analog.com \
    --cc=afaerber@suse.de \
    --cc=alpernebiyasak@gmail.com \
    --cc=andyshrk@163.com \
    --cc=banglang.huang@foxmail.com \
    --cc=bigunclemax@gmail.com \
    --cc=cfsworks@gmail.com \
    --cc=chenjh@rock-chips.com \
    --cc=christopher.obbard@linaro.org \
    --cc=cnsztl@gmail.com \
    --cc=deepakdas.linux@gmail.com \
    --cc=djw@t-chip.com.cn \
    --cc=dsimic@manjaro.org \
    --cc=eugen.hristev@linaro.org \
    --cc=festevam@gmail.com \
    --cc=frank-w@public-files.de \
    --cc=frattaroli.nicolas@gmail.com \
    --cc=gajjar04akash@gmail.com \
    --cc=heiko.stuebner@cherry.de \
    --cc=hl@rock-chips.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=inindev@gmail.com \
    --cc=jacobe.zang@wesion.com \
    --cc=jagan@amarulasolutions.com \
    --cc=jbx6244@gmail.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=jerome.forissier@linaro.org \
    --cc=jh80.chung@samsung.com \
    --cc=jjriek@verizon.net \
    --cc=jonas@kwiboo.se \
    --cc=kever.yang@rock-chips.com \
    --cc=klaus.goger@cherry.de \
    --cc=ldevulder@suse.com \
    --cc=linux.amoon@gmail.com \
    --cc=linux@alxd.me \
    --cc=liujianfeng1994@gmail.com \
    --cc=macromorgan@hotmail.com \
    --cc=mail@david-bauer.net \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=matwey.kornilov@gmail.com \
    --cc=maximmosk4@gmail.com \
    --cc=michael@amarulasolutions.com \
    --cc=naoki@radxa.com \
    --cc=nathan.morrison@timesys.com \
    --cc=nick@khadas.com \
    --cc=otavio@ossystems.com.br \
    --cc=paulk@sys-base.io \
    --cc=pbrobinson@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=peterwillcn@gmail.com \
    --cc=raymond.mao@linaro.org \
    --cc=ricardo@pardini.net \
    --cc=seanga2@gmail.com \
    --cc=seb-dev@mail.de \
    --cc=sebastian.reichel@collabora.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@kernel.org \
    --cc=sunil@amarulasolutions.com \
    --cc=tim@feathertop.org \
    --cc=tom@tom-fitzhenry.me.uk \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=w.egorov@phytec.de \
    --cc=wens@csie.org \
    --cc=wens@kernel.org \
    --cc=zhangzj@rock-chips.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