Skip to contentSkip to conversation

Remove CONFIG_MMC_BROKEN_CD

PATCH New Jaehoon Chung 3 participants 13 messages Feb 20, 2020 – Mar 9, 2020 1 message not in the archive MMC, SD and SDIO

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20200220044529epcas1p342d4df3a18266045b3bc401b21703939@epcas1p3.samsung.com

#1 lore raw

cover Remove CONFIG_MMC_BROKEN_CD

CONFIG_MMC_BROKEN_CD needs not to define to Kconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enabling CONFIG_MMC_BROKEN_CD.

When checked the boards that is eabled CONFIG_MMC_BROKEN_CD, it also used the value of dt as broken-cd.

Jaehoon Chung (3):
mmc: jz_mmc; add MMC_CAP_NEEDS_POLL by default
mmc: check the flags of host_caps about broken-cd
mmc: Kconfig: remove MMC_BROKEN_CD configuration

 configs/brppt2_defconfig    |  1 -
 configs/ci20_mmc_defconfig  |  1 -
 configs/meerkat96_defconfig |  1 -
 drivers/mmc/Kconfig         |  5 -----
 drivers/mmc/jz_mmc.c        |  6 ++++--
 drivers/mmc/mmc.c           | 10 +++++-----
 6 files changed, 9 insertions(+), 15 deletions(-)
Signature · 1 line
2.25.0
#2 lore raw

PATCH 1/3 mmc: jz_mmc; add MMC_CAP_NEEDS_POLL by default

Add MMC_CAP_NEEDS_POLL by default.

---
 drivers/mmc/jz_mmc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/mmc/jz_mmc.c +4 -2
index 8d4f886cb4..df995bda2f 100644
@@ -395,7 +395,8 @@ static struct jz_mmc_plat jz_mmc_plat_static = {
 		.voltages = MMC_VDD_27_28 | MMC_VDD_28_29 | MMC_VDD_29_30 |
 			    MMC_VDD_30_31 | MMC_VDD_31_32 | MMC_VDD_32_33 |
 			    MMC_VDD_33_34 | MMC_VDD_34_35 | MMC_VDD_35_36,
-		.host_caps = MMC_MODE_4BIT | MMC_MODE_HS_52MHz | MMC_MODE_HS,
+		.host_caps = MMC_MODE_4BIT | MMC_MODE_HS_52MHz | MMC_MODE_HS |
+			MMC_CAP_NEEDS_POLL,
 
 		.f_min = 375000,
 		.f_max = 48000000,
@@ -452,7 +453,8 @@ static int jz_mmc_ofdata_to_platdata(struct udevice *dev)
 	cfg = &plat->cfg;
 
 	cfg->name = "MSC";
-	cfg->host_caps = MMC_MODE_HS_52MHz | MMC_MODE_HS;
+	cfg->host_caps = MMC_MODE_HS_52MHz | MMC_MODE_HS |
+		MMC_CAP_NEEDS_POLL;
 
 	ret = mmc_of_parse(dev, cfg);
 	if (ret < 0) {
Signature · 1 line
2.25.0
#3 lore raw

PATCH 2/3 mmc: check the flags of host_caps about broken-cd

In reply to Jaehoon Chung

broken-cd is provided to dt-property.
Then it's set to MMC_CAP_NEEDS_POLL flag.

---
 drivers/mmc/mmc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/mmc/mmc.c +5 -5
index b50fcbf6cf..cac60ea034 100644
@@ -2846,11 +2846,11 @@ int mmc_start_init(struct mmc *mmc)
 	mmc->host_caps = mmc->cfg->host_caps | MMC_CAP(SD_LEGACY) |
 			 MMC_CAP(MMC_LEGACY) | MMC_MODE_1BIT;
 
-#if !defined(CONFIG_MMC_BROKEN_CD)
-	no_card = mmc_getcd(mmc) == 0;
-#else
-	no_card = 0;
-#endif
+	if (mmc->host_caps & MMC_CAP_NEEDS_POLL)
+		no_card = 0;
+	else
+		no_card = mmc_getcd(mmc) == 0;
+
 #if !CONFIG_IS_ENABLED(DM_MMC)
 	/* we pretend there's no card when init is NULL */
 	no_card = no_card || (mmc->cfg->ops->init == NULL);
Signature · 1 line
2.25.0
#4 lore raw

PATCH 3/3 mmc: Kconfig: remove MMC_BROKEN_CD configuration

In reply to Jaehoon Chung

Remove MMC_BROKEN_CD configuration.
It doesn't need to use configuration, instead use broken-cd property.

---
 configs/brppt2_defconfig    | 1 -
 configs/ci20_mmc_defconfig  | 1 -
 configs/meerkat96_defconfig | 1 -
 drivers/mmc/Kconfig         | 5 -----
 4 files changed, 8 deletions(-)
configs/brppt2_defconfig +0 -1
index f94ea28376..5d1dfde36e 100644
@@ -68,7 +68,6 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
 # CONFIG_SPL_BLK is not set
 CONFIG_BOOTCOUNT_LIMIT=y
 CONFIG_SYS_I2C_MXC=y
-CONFIG_MMC_BROKEN_CD=y
 # CONFIG_SPL_DM_MMC is not set
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
configs/ci20_mmc_defconfig +0 -1
index a0b0772f40..f31a3c44f4 100644
@@ -34,7 +34,6 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 # CONFIG_DM_DEVICE_REMOVE is not set
 CONFIG_JZ4780_EFUSE=y
 CONFIG_MMC=y
-CONFIG_MMC_BROKEN_CD=y
 CONFIG_DM_MMC=y
 # CONFIG_MMC_HW_PARTITIONING is not set
 CONFIG_MMC_IO_VOLTAGE=y
configs/meerkat96_defconfig +0 -1
index 45f12115ba..d358ed23a5 100644
@@ -34,7 +34,6 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="imx7d-meerkat96"
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
-CONFIG_MMC_BROKEN_CD=y
 CONFIG_DM_MMC=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
drivers/mmc/Kconfig +0 -5
index 2f0eedc22f..3722e7bc13 100644
@@ -18,11 +18,6 @@ config MMC_WRITE
 	help
 	  Enable write access to MMC and SD Cards
 
-config MMC_BROKEN_CD
-	bool "Poll for broken card detection case"
-	help
-	  If card  detection feature is broken, just poll to detect.
-
 config DM_MMC
 	bool "Enable MMC controllers using Driver Model"
 	depends on DM
Signature · 1 line
2.25.0
#5 lore raw

PATCH 3/3 mmc: Kconfig: remove MMC_BROKEN_CD configuration

Hi Jaehoon,

Quoted 4 lines

Subject: [PATCH 3/3] mmc: Kconfig: remove MMC_BROKEN_CD configuration

Remove MMC_BROKEN_CD configuration.
It doesn't need to use configuration, instead use broken-cd property.

Will this cause issue if board not use dts saying in SPL stage?

Regards,
Peng.

Quoted 55 lines
---
 configs/brppt2_defconfig    | 1 -
 configs/ci20_mmc_defconfig  | 1 -
 configs/meerkat96_defconfig | 1 -
 drivers/mmc/Kconfig         | 5 -----
 4 files changed, 8 deletions(-)
configs/brppt2_defconfig index renamed from configs/brppt2_defconfig +0 -0

f94ea28376..5d1dfde36e 100644

configs/brppt2_defconfig +0 -0
@@ -68,7 +68,6 @@ CONFIG_SPL_DM_SEQ_ALIAS=y  # CONFIG_SPL_BLK is

not set CONFIG_BOOTCOUNT_LIMIT=y CONFIG_SYS_I2C_MXC=y -CONFIG_MMC_BROKEN_CD=y # CONFIG_SPL_DM_MMC is not set CONFIG_FSL_ESDHC=y CONFIG_MTD=y diff --git a/configs/ci20_mmc_defconfig b/configs/ci20_mmc_defconfig index a0b0772f40..f31a3c44f4 100644

configs/ci20_mmc_defconfig +0 -0
@@ -34,7 +34,6 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y  #

CONFIG_DM_DEVICE_REMOVE is not set CONFIG_JZ4780_EFUSE=y CONFIG_MMC=y -CONFIG_MMC_BROKEN_CD=y CONFIG_DM_MMC=y # CONFIG_MMC_HW_PARTITIONING is not set CONFIG_MMC_IO_VOLTAGE=y diff --git a/configs/meerkat96_defconfig b/configs/meerkat96_defconfig index 45f12115ba..d358ed23a5 100644

configs/meerkat96_defconfig +0 -1
@@ -34,7 +34,6 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="imx7d-meerkat96"
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
-CONFIG_MMC_BROKEN_CD=y
 CONFIG_DM_MMC=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
drivers/mmc/Kconfig index renamed from drivers/mmc/Kconfig +0 -0

2f0eedc22f..3722e7bc13 100644

drivers/mmc/Kconfig +0 -6
@@ -18,11 +18,6 @@ config MMC_WRITE
 	help
 	  Enable write access to MMC and SD Cards
 
-config MMC_BROKEN_CD
-	bool "Poll for broken card detection case"
-	help
-	  If card  detection feature is broken, just poll to detect.
-
 config DM_MMC
 	bool "Enable MMC controllers using Driver Model"
 	depends on DM
--

2.25.0

#6 lore raw

PATCH 3/3 mmc: Kconfig: remove MMC_BROKEN_CD configuration

Quoted 8 lines · Peng Fan

Hi Jaehoon,

Quoted 4 lines

Subject: [PATCH 3/3] mmc: Kconfig: remove MMC_BROKEN_CD configuration

Remove MMC_BROKEN_CD configuration.
It doesn't need to use configuration, instead use broken-cd property.

Will this cause issue if board not use dts saying in SPL stage?

I didn't test on board, but if it will be set to MMC_CAPS_NEEDS_POLL, it will be working fine. In ci200, i had added MMC_CAP_NEEDS_POLL by default. (So it will be working..) But in fsl_esdhc's case, i didn't touch.. So i need to check it more.

Will resend patch this after considering SPL.

Best Regards,
Jaehoon Chung

Quoted 60 lines

Regards,
Peng.

Quoted 55 lines
---
 configs/brppt2_defconfig    | 1 -
 configs/ci20_mmc_defconfig  | 1 -
 configs/meerkat96_defconfig | 1 -
 drivers/mmc/Kconfig         | 5 -----
 4 files changed, 8 deletions(-)
configs/brppt2_defconfig index renamed from configs/brppt2_defconfig +0 -0

f94ea28376..5d1dfde36e 100644

configs/brppt2_defconfig +0 -0
@@ -68,7 +68,6 @@ CONFIG_SPL_DM_SEQ_ALIAS=y  # CONFIG_SPL_BLK is

not set CONFIG_BOOTCOUNT_LIMIT=y CONFIG_SYS_I2C_MXC=y -CONFIG_MMC_BROKEN_CD=y # CONFIG_SPL_DM_MMC is not set CONFIG_FSL_ESDHC=y CONFIG_MTD=y diff --git a/configs/ci20_mmc_defconfig b/configs/ci20_mmc_defconfig index a0b0772f40..f31a3c44f4 100644

configs/ci20_mmc_defconfig +0 -0
@@ -34,7 +34,6 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y  #

CONFIG_DM_DEVICE_REMOVE is not set CONFIG_JZ4780_EFUSE=y CONFIG_MMC=y -CONFIG_MMC_BROKEN_CD=y CONFIG_DM_MMC=y # CONFIG_MMC_HW_PARTITIONING is not set CONFIG_MMC_IO_VOLTAGE=y diff --git a/configs/meerkat96_defconfig b/configs/meerkat96_defconfig index 45f12115ba..d358ed23a5 100644

configs/meerkat96_defconfig +0 -1
@@ -34,7 +34,6 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="imx7d-meerkat96"
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
-CONFIG_MMC_BROKEN_CD=y
 CONFIG_DM_MMC=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
drivers/mmc/Kconfig index renamed from drivers/mmc/Kconfig +0 -0

2f0eedc22f..3722e7bc13 100644

drivers/mmc/Kconfig +0 -6
@@ -18,11 +18,6 @@ config MMC_WRITE
 	help
 	  Enable write access to MMC and SD Cards
 
-config MMC_BROKEN_CD
-	bool "Poll for broken card detection case"
-	help
-	  If card  detection feature is broken, just poll to detect.
-
 config DM_MMC
 	bool "Enable MMC controllers using Driver Model"
 	depends on DM
--

2.25.0

#7 lore raw

cover Remove CONFIG_MMC_BROKEN_CD

In reply to Jaehoon Chung
Quoted 12 lines · Jaehoon Chung

CONFIG_MMC_BROKEN_CD needs not to define to Kconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enabling CONFIG_MMC_BROKEN_CD.

When checked the boards that is eabled CONFIG_MMC_BROKEN_CD, it also used the value of dt as broken-cd.

Jaehoon Chung (3):
mmc: jz_mmc; add MMC_CAP_NEEDS_POLL by default
mmc: check the flags of host_caps about broken-cd
mmc: Kconfig: remove MMC_BROKEN_CD configuration

Quoted 7 lines
 configs/brppt2_defconfig    |  1 -
 configs/ci20_mmc_defconfig  |  1 -
 configs/meerkat96_defconfig |  1 -
 drivers/mmc/Kconfig         |  5 -----
 drivers/mmc/jz_mmc.c        |  6 ++++--
 drivers/mmc/mmc.c           | 10 +++++-----
 6 files changed, 9 insertions(+), 15 deletions(-)

Did you size-test this change? ci20 is extremely tight on space.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200220/3d320af2/attachment.sig>
#8 lore raw

cover Remove CONFIG_MMC_BROKEN_CD

Hi Tom,

Quoted 22 lines · Tom Rini
Quoted 12 lines · Jaehoon Chung

CONFIG_MMC_BROKEN_CD needs not to define to Kconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enabling CONFIG_MMC_BROKEN_CD.

When checked the boards that is eabled CONFIG_MMC_BROKEN_CD, it also used the value of dt as broken-cd.

Jaehoon Chung (3):
mmc: jz_mmc; add MMC_CAP_NEEDS_POLL by default
mmc: check the flags of host_caps about broken-cd
mmc: Kconfig: remove MMC_BROKEN_CD configuration

Quoted 7 lines
 configs/brppt2_defconfig    |  1 -
 configs/ci20_mmc_defconfig  |  1 -
 configs/meerkat96_defconfig |  1 -
 drivers/mmc/Kconfig         |  5 -----
 drivers/mmc/jz_mmc.c        |  6 ++++--
 drivers/mmc/mmc.c           | 10 +++++-----
 6 files changed, 9 insertions(+), 15 deletions(-)
Quoted 1 line

Did you size-test this change? ci20 is extremely tight on space.

I didn't check size-test about this. Is there any check-tool?
If there is check-tool, let me know, plz. Then i will check it. (In future, I will check before sending patch.) I just checked this patch with CI.

Best Regards,
Jaehoon Chung

Quoted 1 line
#9 lore raw

cover Remove CONFIG_MMC_BROKEN_CD

Quoted 25 lines · Jaehoon Chung

Hi Tom,

Quoted 22 lines · Tom Rini
Quoted 19 lines · Jaehoon Chung

CONFIG_MMC_BROKEN_CD needs not to define to Kconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enabling CONFIG_MMC_BROKEN_CD.

When checked the boards that is eabled CONFIG_MMC_BROKEN_CD, it also used the value of dt as broken-cd.

Jaehoon Chung (3):
mmc: jz_mmc; add MMC_CAP_NEEDS_POLL by default
mmc: check the flags of host_caps about broken-cd
mmc: Kconfig: remove MMC_BROKEN_CD configuration

 configs/brppt2_defconfig    |  1 -
 configs/ci20_mmc_defconfig  |  1 -
 configs/meerkat96_defconfig |  1 -
 drivers/mmc/Kconfig         |  5 -----
 drivers/mmc/jz_mmc.c        |  6 ++++--
 drivers/mmc/mmc.c           | 10 +++++-----
 6 files changed, 9 insertions(+), 15 deletions(-)
Quoted 5 lines
Quoted 1 line

Did you size-test this change? ci20 is extremely tight on space.

I didn't check size-test about this. Is there any check-tool?
If there is check-tool, let me know, plz. Then i will check it. (In future, I will check before sending patch.) I just checked this patch with CI.

u-boot.img : 327573 -> 327625
u-boot-spl.bin : 10336 -> 10464

What is ci20's limitation size?

Best Regards,
Jaehoon Chung

Quoted 8 lines

Best Regards,
Jaehoon Chung

Quoted 1 line
#10 lore raw

cover Remove CONFIG_MMC_BROKEN_CD

Quoted 28 lines · Jaehoon Chung
Quoted 27 lines · Jaehoon Chung

Hi Tom,

Quoted 23 lines · Tom Rini
Quoted 12 lines · Jaehoon Chung

CONFIG_MMC_BROKEN_CD needs not to define to Kconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enabling CONFIG_MMC_BROKEN_CD.

When checked the boards that is eabled CONFIG_MMC_BROKEN_CD, it also used the value of dt as broken-cd.

Jaehoon Chung (3):
mmc: jz_mmc; add MMC_CAP_NEEDS_POLL by default
mmc: check the flags of host_caps about broken-cd
mmc: Kconfig: remove MMC_BROKEN_CD configuration

Quoted 7 lines
 configs/brppt2_defconfig    |  1 -
 configs/ci20_mmc_defconfig  |  1 -
 configs/meerkat96_defconfig |  1 -
 drivers/mmc/Kconfig         |  5 -----
 drivers/mmc/jz_mmc.c        |  6 ++++--
 drivers/mmc/mmc.c           | 10 +++++-----
 6 files changed, 9 insertions(+), 15 deletions(-)

Did you size-test this change? ci20 is extremely tight on space.

Quoted 8 lines
Quoted 3 lines

I didn't check size-test about this. Is there any check-tool?
If there is check-tool, let me know, plz. Then i will check it. (In future, I will check before sending patch.) I just checked this patch with CI.

u-boot.img : 327573 -> 327625
u-boot-spl.bin : 10336 -> 10464

What is ci20's limitation size?

The ci20 limit is ((14 * 1024) - 0xa00) for SPL. So we grow by 100 bytes. And with that small of an SPL we're not using DT, so, is the driver still acting correctly? Can we restructure the change such that growth is absolutely minimal? Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200221/a2d112d8/attachment.sig>
#11 lore raw

cover Remove CONFIG_MMC_BROKEN_CD

Quoted 36 lines · Tom Rini
Quoted 35 lines · Jaehoon Chung
Quoted 25 lines · Jaehoon Chung

Hi Tom,

Quoted 22 lines · Tom Rini
Quoted 19 lines · Jaehoon Chung

CONFIG_MMC_BROKEN_CD needs not to define to Kconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enabling CONFIG_MMC_BROKEN_CD.

When checked the boards that is eabled CONFIG_MMC_BROKEN_CD, it also used the value of dt as broken-cd.

Jaehoon Chung (3):
mmc: jz_mmc; add MMC_CAP_NEEDS_POLL by default
mmc: check the flags of host_caps about broken-cd
mmc: Kconfig: remove MMC_BROKEN_CD configuration

 configs/brppt2_defconfig    |  1 -
 configs/ci20_mmc_defconfig  |  1 -
 configs/meerkat96_defconfig |  1 -
 drivers/mmc/Kconfig         |  5 -----
 drivers/mmc/jz_mmc.c        |  6 ++++--
 drivers/mmc/mmc.c           | 10 +++++-----
 6 files changed, 9 insertions(+), 15 deletions(-)
Quoted 5 lines
Quoted 1 line

Did you size-test this change? ci20 is extremely tight on space.

I didn't check size-test about this. Is there any check-tool?
If there is check-tool, let me know, plz. Then i will check it. (In future, I will check before sending patch.) I just checked this patch with CI.

u-boot.img : 327573 -> 327625
u-boot-spl.bin : 10336 -> 10464

Quoted 7 lines
Quoted 1 line

What is ci20's limitation size?

The ci20 limit is ((14 * 1024) - 0xa00) for SPL. So we grow by 100 bytes. And with that small of an SPL we're not using DT, so, is the driver still acting correctly? Can we restructure the change such that growth is absolutely minimal? Thanks!

I will re-check this side. I didn't know that ci20 limit is too smaller. As you mentioned, ci20 SPL doesn't use dt. So it needs to set to NEEDS_POLL capability. After checking more, i will resend patches.
Thanks for reviewing.

Best Regards,
Jaehoon Chung

Quoted 1 line
#12 lore raw

cover Remove CONFIG_MMC_BROKEN_CD

In reply to Jaehoon Chung
Quoted 25 lines · Jaehoon Chung

Hi Tom,

Quoted 22 lines · Tom Rini
Quoted 19 lines · Jaehoon Chung

CONFIG_MMC_BROKEN_CD needs not to define to Kconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enabling CONFIG_MMC_BROKEN_CD.

When checked the boards that is eabled CONFIG_MMC_BROKEN_CD, it also used the value of dt as broken-cd.

Jaehoon Chung (3):
mmc: jz_mmc; add MMC_CAP_NEEDS_POLL by default
mmc: check the flags of host_caps about broken-cd
mmc: Kconfig: remove MMC_BROKEN_CD configuration

 configs/brppt2_defconfig    |  1 -
 configs/ci20_mmc_defconfig  |  1 -
 configs/meerkat96_defconfig |  1 -
 drivers/mmc/Kconfig         |  5 -----
 drivers/mmc/jz_mmc.c        |  6 ++++--
 drivers/mmc/mmc.c           | 10 +++++-----
 6 files changed, 9 insertions(+), 15 deletions(-)
Quoted 3 lines
Quoted 1 line

Did you size-test this change? ci20 is extremely tight on space.

I didn't check size-test about this. Is there any check-tool?

Yes, buildman has a few different size related options. I use a wrapper like this:

#!/bin/bash

# Initial and constant buildman args
ARGS="-devl"
ALL=0
KEEP=0

# Find our arguments
while test $# -ne 0; do

	if [ "$1" == "--all" ]; then
		ALL=1
		shift 1
	elif [ "$1" == "--branch" ]; then
		BRANCH=$2
		shift 2
	elif [ "$1" == "--keep" ]; then
		KEEP=1
		ARGS="$ARGS -k"
		shift 1
	else
		MACHINE=$1
		shift
	fi

done

if [ -z $MACHINE ]; then

	echo Usage: $0 MACHINE [--all] [--keep] [--branch BRANCH]
	exit 1

fi

# If not all, then only first/last
if [ $ALL -ne 1 ]; then

	ARGS="$ARGS --step 0"

fi

if [ ! -z $BRANCH ]; then

	ARGS="$ARGS -b $BRANCH"
else
	ARGS="$ARGS -b `git rev-parse --abbrev-ref HEAD`"

fi

mkdir -p /tmp/$MACHINE

export SOURCE_DATE_EPOCH=date +%s ./tools/buildman/buildman -o /tmp/$MACHINE $ARGS -SBC $MACHINE ./tools/buildman/buildman -o /tmp/$MACHINE $ARGS -SsB $MACHINE

[ $KEEP -eq 0 ] && rm -rf /tmp/$MACHINE

This will either build the first/last commit in a series (do things change at all?) or every commit (What commit introduced the growth I want to know more about). I can also tell it to keep the resulting output directory if I want to dig around the map files more by hand.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200221/eb541583/attachment.sig>
#13 lore raw

cover Remove CONFIG_MMC_BROKEN_CD

Quoted 80 lines · Tom Rini
Quoted 25 lines · Jaehoon Chung

Hi Tom,

Quoted 22 lines · Tom Rini
Quoted 19 lines · Jaehoon Chung

CONFIG_MMC_BROKEN_CD needs not to define to Kconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enabling CONFIG_MMC_BROKEN_CD.

When checked the boards that is eabled CONFIG_MMC_BROKEN_CD, it also used the value of dt as broken-cd.

Jaehoon Chung (3):
mmc: jz_mmc; add MMC_CAP_NEEDS_POLL by default
mmc: check the flags of host_caps about broken-cd
mmc: Kconfig: remove MMC_BROKEN_CD configuration

 configs/brppt2_defconfig    |  1 -
 configs/ci20_mmc_defconfig  |  1 -
 configs/meerkat96_defconfig |  1 -
 drivers/mmc/Kconfig         |  5 -----
 drivers/mmc/jz_mmc.c        |  6 ++++--
 drivers/mmc/mmc.c           | 10 +++++-----
 6 files changed, 9 insertions(+), 15 deletions(-)
Quoted 3 lines
Quoted 1 line

Did you size-test this change? ci20 is extremely tight on space.

I didn't check size-test about this. Is there any check-tool?

Yes, buildman has a few different size related options. I use a wrapper like this:

#!/bin/bash

# Initial and constant buildman args
ARGS="-devl"
ALL=0
KEEP=0

# Find our arguments
while test $# -ne 0; do

	if [ "$1" == "--all" ]; then
		ALL=1
		shift 1
	elif [ "$1" == "--branch" ]; then
		BRANCH=$2
		shift 2
	elif [ "$1" == "--keep" ]; then
		KEEP=1
		ARGS="$ARGS -k"
		shift 1
	else
		MACHINE=$1
		shift
	fi

done

if [ -z $MACHINE ]; then

	echo Usage: $0 MACHINE [--all] [--keep] [--branch BRANCH]
	exit 1

fi

# If not all, then only first/last
if [ $ALL -ne 1 ]; then

	ARGS="$ARGS --step 0"

fi

if [ ! -z $BRANCH ]; then

	ARGS="$ARGS -b $BRANCH"
else
	ARGS="$ARGS -b `git rev-parse --abbrev-ref HEAD`"

fi

mkdir -p /tmp/$MACHINE

export SOURCE_DATE_EPOCH=date +%s ./tools/buildman/buildman -o /tmp/$MACHINE $ARGS -SBC $MACHINE ./tools/buildman/buildman -o /tmp/$MACHINE $ARGS -SsB $MACHINE

Quoted 6 lines

[ $KEEP -eq 0 ] && rm -rf /tmp/$MACHINE

This will either build the first/last commit in a series (do things change at all?) or every commit (What commit introduced the growth I want to know more about). I can also tell it to keep the resulting output directory if I want to dig around the map files more by hand.

Thanks for sharing! I also checked patch with buildman. This information is helpful to me.

Best Regards,
Jaehoon Chung

Quoted 1 line