From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Jacques Hiblot Date: Tue, 21 Nov 2017 16:13:04 +0100 Subject: [U-Boot] [PATCH 1/5] dm: mmc: updated mmc_of_parse() to not fail because of an invalid bus-width In-Reply-To: <1511277188-2923-1-git-send-email-jjhiblot@ti.com> References: <1511277188-2923-1-git-send-email-jjhiblot@ti.com> Message-ID: <1511277188-2923-2-git-send-email-jjhiblot@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Instead of failing, the driver uses the default: 1-bit bus width. Signed-off-by: Jean-Jacques Hiblot --- drivers/mmc/mmc-uclass.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c index e30cde7..48fafce 100644 --- a/drivers/mmc/mmc-uclass.c +++ b/drivers/mmc/mmc-uclass.c @@ -137,9 +137,10 @@ int mmc_of_parse(const void *fdt, int node, struct mmc_config *cfg) cfg->host_caps |= MMC_MODE_1BIT; break; default: - printf("error: %s invalid bus-width property %d\n", - fdt_get_name(fdt, node, NULL), val); - return -ENOENT; + debug("warning: %s invalid bus-width property. using 1-bit\n", + fdt_get_name(fdt, node, NULL)); + cfg->host_caps |= MMC_MODE_1BIT; + break; } cfg->f_max = fdtdec_get_int(fdt, node, "max-frequency", 52000000); -- 1.9.1