Remove CONFIG_MMC_BROKEN_CD
A message that is not in the archive (sent off-list or not yet received): CGME20200220044529epcas1p342d4df3a18266045b3bc401b21703939@epcas1p3.samsung.com
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
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
@@ -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
PATCH 2/3 mmc: check the flags of host_caps about broken-cd
In reply to Jaehoon Chungbroken-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
@@ -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
PATCH 3/3 mmc: Kconfig: remove MMC_BROKEN_CD configuration
In reply to Jaehoon ChungRemove 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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 3/3 mmc: Kconfig: remove MMC_BROKEN_CD configuration
Hi Jaehoon,
Quoted 4 lines
Subject: [PATCH 3/3] mmc:
Kconfig: removeMMC_BROKEN_CDconfigurationRemove
MMC_BROKEN_CDconfiguration.
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
Signed-off-by Jaehoon Chung <[email protected]>--- 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..5d1dfde36e100644configs/brppt2_defconfig +0
-0@@ -68,7 +68,6 @@ CONFIG_SPL_DM_SEQ_ALIAS=y # CONFIG_SPL_BLK isnot set
CONFIG_BOOTCOUNT_LIMIT=yCONFIG_SYS_I2C_MXC=y-CONFIG_MMC_BROKEN_CD=y #CONFIG_SPL_DM_MMCis not setCONFIG_FSL_ESDHC=yCONFIG_MTD=ydiff --git a/configs/ci20_mmc_defconfig b/configs/ci20_mmc_defconfig indexa0b0772f40..f31a3c44f4100644configs/ci20_mmc_defconfig +0
-0@@ -34,7 +34,6 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y #
CONFIG_DM_DEVICE_REMOVEis not setCONFIG_JZ4780_EFUSE=yCONFIG_MMC=y-CONFIG_MMC_BROKEN_CD=yCONFIG_DM_MMC=y#CONFIG_MMC_HW_PARTITIONINGis not setCONFIG_MMC_IO_VOLTAGE=ydiff --git a/configs/meerkat96_defconfig b/configs/meerkat96_defconfig index45f12115ba..d358ed23a5100644configs/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=ydrivers/mmc/Kconfig index renamed from drivers/mmc/Kconfig +0
-0
2f0eedc22f..3722e7bc13100644drivers/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
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: removeMMC_BROKEN_CDconfigurationRemove
MMC_BROKEN_CDconfiguration.
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
Signed-off-by Jaehoon Chung <[email protected]>--- 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..5d1dfde36e100644configs/brppt2_defconfig +0
-0@@ -68,7 +68,6 @@ CONFIG_SPL_DM_SEQ_ALIAS=y # CONFIG_SPL_BLK isnot set
CONFIG_BOOTCOUNT_LIMIT=yCONFIG_SYS_I2C_MXC=y-CONFIG_MMC_BROKEN_CD=y #CONFIG_SPL_DM_MMCis not setCONFIG_FSL_ESDHC=yCONFIG_MTD=ydiff --git a/configs/ci20_mmc_defconfig b/configs/ci20_mmc_defconfig indexa0b0772f40..f31a3c44f4100644configs/ci20_mmc_defconfig +0
-0@@ -34,7 +34,6 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y #
CONFIG_DM_DEVICE_REMOVEis not setCONFIG_JZ4780_EFUSE=yCONFIG_MMC=y-CONFIG_MMC_BROKEN_CD=yCONFIG_DM_MMC=y#CONFIG_MMC_HW_PARTITIONINGis not setCONFIG_MMC_IO_VOLTAGE=ydiff --git a/configs/meerkat96_defconfig b/configs/meerkat96_defconfig index45f12115ba..d358ed23a5100644configs/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=ydrivers/mmc/Kconfig index renamed from drivers/mmc/Kconfig +0
-0
2f0eedc22f..3722e7bc13100644drivers/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
cover Remove CONFIG_MMC_BROKEN_CD
In reply to Jaehoon ChungQuoted 12 lines · Jaehoon Chung
CONFIG_MMC_BROKEN_CDneeds not to define toKconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enablingCONFIG_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; addMMC_CAP_NEEDS_POLLby default
mmc: check the flags ofhost_capsabout broken-cd
mmc:Kconfig: removeMMC_BROKEN_CDconfiguration
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>
cover Remove CONFIG_MMC_BROKEN_CD
Hi Tom,
Quoted 22 lines · Tom Rini
Quoted 12 lines · Jaehoon Chung
CONFIG_MMC_BROKEN_CDneeds not to define toKconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enablingCONFIG_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; addMMC_CAP_NEEDS_POLLby default
mmc: check the flags ofhost_capsabout broken-cd
mmc:Kconfig: removeMMC_BROKEN_CDconfigurationQuoted 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
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_CDneeds not to define toKconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enablingCONFIG_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; addMMC_CAP_NEEDS_POLLby default
mmc: check the flags ofhost_capsabout broken-cd
mmc:Kconfig: removeMMC_BROKEN_CDconfigurationconfigs/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 ChungQuoted 1 line
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_CDneeds not to define toKconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enablingCONFIG_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; addMMC_CAP_NEEDS_POLLby default
mmc: check the flags ofhost_capsabout broken-cd
mmc:Kconfig: removeMMC_BROKEN_CDconfigurationQuoted 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 -> 10464What 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>
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_CDneeds not to define toKconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enablingCONFIG_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; addMMC_CAP_NEEDS_POLLby default
mmc: check the flags ofhost_capsabout broken-cd
mmc:Kconfig: removeMMC_BROKEN_CDconfigurationconfigs/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
cover Remove CONFIG_MMC_BROKEN_CD
In reply to Jaehoon ChungQuoted 25 lines · Jaehoon Chung
Hi Tom,
Quoted 22 lines · Tom Rini
Quoted 19 lines · Jaehoon Chung
CONFIG_MMC_BROKEN_CDneeds not to define toKconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enablingCONFIG_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; addMMC_CAP_NEEDS_POLLby default
mmc: check the flags ofhost_capsabout broken-cd
mmc:Kconfig: removeMMC_BROKEN_CDconfigurationconfigs/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>
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_CDneeds not to define toKconfig.
broken-cd is already provide to dt-property.
If want to poll card-detect, set to broken-cd instead of enablingCONFIG_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; addMMC_CAP_NEEDS_POLLby default
mmc: check the flags ofhost_capsabout broken-cd
mmc:Kconfig: removeMMC_BROKEN_CDconfigurationconfigs/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; doif [ "$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 fidone
if [ -z $MACHINE ]; then
echo Usage: $0 MACHINE [--all] [--keep] [--branch BRANCH] exit 1fi
# If not all, then only first/last
if [ $ALL -ne 1 ]; thenARGS="$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/$MACHINEexport 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/$MACHINEThis 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