From patchwork Mon Mar 8 16:49:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Klaus Heinrich Kiwi X-Patchwork-Id: 1449209 X-Patchwork-Delegate: van.freenix@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=WUedVOth; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DvPTY6HXtz9s1l for ; Tue, 9 Mar 2021 03:50:09 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E6CDC825F1; Mon, 8 Mar 2021 17:50:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.vnet.ibm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.b="WUedVOth"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE7FB825F4; Mon, 8 Mar 2021 17:49:58 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C21DC8219C for ; Mon, 8 Mar 2021 17:49:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux.vnet.ibm.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=klaus@linux.vnet.ibm.com Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 128GbJD8185796; Mon, 8 Mar 2021 11:49:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=fsDos0K1ULG6PUJwU3osa0nvBpoBCDqu8MoaHh0mo4E=; b=WUedVOthyFSlWgsTNCNwlg/2V1xN9JRbz9NjmcnFRzCVAobTknYMCKEXGJgK1p9nY0vu 8x8C2bSaQailSLXYD3MIvwBv5jucIL6xLcsgTm1a+wqgVTqDqW6YXTz5LDrP8XZRKdPZ F7VTb65fGcklYRI2uMztrqI+po1WRe1YRF4czjhMA1yUqKEeuvZH2mjedAKmMJ8FpcC0 oZjvRUIiCU283d7nY+M4vHWcb27ApH/WCTOisnWXsOjTx82n8Twd+AWeEOkCGjv22j6U sbRPZUutxKzilcQVrXk/jPiaKgWDBavYPs9t45UoGPTgIkvn6cQ+YcaFyFLYW/wX+pEd fw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 375qby0rm8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Mar 2021 11:49:45 -0500 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 128GbOY5186520; Mon, 8 Mar 2021 11:49:44 -0500 Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0a-001b2d01.pphosted.com with ESMTP id 375qby0rks-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Mar 2021 11:49:44 -0500 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 128GhKVo019052; Mon, 8 Mar 2021 16:49:43 GMT Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by ppma02wdc.us.ibm.com with ESMTP id 3741c8r21u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Mar 2021 16:49:43 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 128GngEv42467814 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 8 Mar 2021 16:49:42 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A4485BE059; Mon, 8 Mar 2021 16:49:42 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A6B84BE058; Mon, 8 Mar 2021 16:49:38 +0000 (GMT) Received: from T480-KlausKiwi.localdomain (unknown [9.85.175.244]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 8 Mar 2021 16:49:38 +0000 (GMT) From: Klaus Heinrich Kiwi To: u-boot@lists.denx.de Cc: Klaus Heinrich Kiwi , Adam Ford , Andre Przywara , Harald Seiler , Jagan Teki , Joel Johnson , Lukasz Majewski , Masahiro Yamada , Michael Walle , Michal Simek , Ovidiu Panait , Peng Fan , Reuben Dowle , Samuel Holland , Simon Glass Subject: [PATCH] mmc: kconfig: Add CONFIG_SPL_MMC_VERBOSE Date: Mon, 8 Mar 2021 13:49:33 -0300 Message-Id: <20210308164933.13356-1-klaus@linux.vnet.ibm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-03-08_11:2021-03-08, 2021-03-08 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 spamscore=0 clxscore=1011 phishscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 lowpriorityscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103080089 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean When building the SPL with MMC config and CONFIG_LOGLEVEL > 7, the function mmc_select_mode() at drivers/mmc/mmc.c will call mmc_mode_name() which is only defined if CONFIG_IS_ENABLED(MMC_VERBOSE) which doesn't have a corresponding CONFIG_SPL_MMC_VERBOSE defined in Kconfig. Fixes this build error: arm-linux-gnueabi-ld.bfd: drivers/built-in.o: in function `mmc_select_mode': /drivers/mmc/mmc.c:192: undefined reference to `mmc_mode_name' make[1]: *** [scripts/Makefile.spl:432: spl/u-boot-spl] Error 1 make: *** [Makefile:1942: spl/u-boot-spl] Error 2 Signed-off-by: Klaus Heinrich Kiwi --- common/spl/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 774541c02b..2b36c86e0f 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -697,6 +697,13 @@ config SPL_MMC_SUPPORT this option to build the drivers in drivers/mmc as part of an SPL build. +config SPL_MMC_VERBOSE + bool "Output mode information about the MMC" + depends on SPL_MMC_SUPPORT + help + Enable the output of more information about the card such as the + operating mode. + config SYS_MMCSD_FS_BOOT_PARTITION int "MMC Boot Partition" default 1