From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 766CAECAAD2 for ; Sat, 27 Aug 2022 12:01:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 33C8184047; Sat, 27 Aug 2022 14:01:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="D7j3W7Fd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6DF5F84030; Sat, 27 Aug 2022 14:01:09 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::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 446F784047 for ; Sat, 27 Aug 2022 14:01:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DA228B80EDB; Sat, 27 Aug 2022 12:01:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 650C2C433D6; Sat, 27 Aug 2022 12:01:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661601664; bh=Gt3H6T6/s32d+H4TPjoAxwYI2yLfnxsN5gDylFgvnvQ=; h=From:To:Cc:Subject:Date:From; b=D7j3W7Fd0PCAhw7ovbTTdZYDacqWpJG+iXHTQ7U/+FCEay7rYqfyXykDxwGGe5spO k31joDiIlpTFJHeiI2SNKIA/ZT9NG/b6MZL27YnTQ5sED/8TKVcnDiWyeo739lLSgB i848SbgY2tYRrkmNAI1fZVbKCLTl/xTBPDID+FQ8wx00Q6JKnvLYBuRxRP88NDD6VZ PM2wClUVUJK9T2Y19c/wePNZ+xAusUqN7iPJ7Rz0pIu/87YTQhnPl20Io6wnDWT9me u5giXLDwwwMl4FEhrHBNqhDFbzENEYQvAqidRwy2Iu45Gym0aot7JCbqsr91Fj7j52 d28xr64Oj65NQ== Received: by pali.im (Postfix) id 77C0FC7A; Sat, 27 Aug 2022 14:01:01 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese Cc: u-boot@lists.denx.de Subject: [PATCH] arm: mvebu: Espressobin: When emmc is not present disable it also in OF_LIVE Date: Sat, 27 Aug 2022 14:00:51 +0200 Message-Id: <20220827120051.28092-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.6 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Pali Rohár --- board/Marvell/mvebu_armada-37xx/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/Marvell/mvebu_armada-37xx/board.c b/board/Marvell/mvebu_armada-37xx/board.c index 5ae133879f32..45779198b678 100644 --- a/board/Marvell/mvebu_armada-37xx/board.c +++ b/board/Marvell/mvebu_armada-37xx/board.c @@ -132,6 +132,8 @@ int board_late_init(void) dev = mmc_dev->dev; device_remove(dev, DM_REMOVE_NORMAL); device_unbind(dev); + if (of_live_active()) + ofnode_set_enabled(dev_ofnode(dev), false); } /* Ensure that 'env default -a' set correct value to $fdtfile */ -- 2.20.1