Skip to content

Remove CONFIG_MMC_BROKEN_CD

Tom Rini u-boot 1 version New

Get series with b4
b4 am 20200221133855.GH18302@bill-the-cat

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] 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 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>