Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2354601rwl; Thu, 6 Apr 2023 09:05:56 -0700 (PDT) X-Google-Smtp-Source: AKy350Y5B5kUaS2IaXjra81SW3IUWkvzR9sNnQVChre+r/Z9sackFVQQyGoLWHKIaux0ITfzPRwU X-Received: by 2002:a62:1d90:0:b0:623:5880:98cd with SMTP id d138-20020a621d90000000b00623588098cdmr10205525pfd.5.1680797155840; Thu, 06 Apr 2023 09:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680797155; cv=none; d=google.com; s=arc-20160816; b=kn3BBciSWh5iOtH04hnKXcWAei53QITEN9QEXlLAk6pUCt7uxvvD0L77ysepQRi4Yn 8Ft3no8bDHvdbGi0aVgB5IIGdKf5EGfMW4ANy9pM7zfeMj4r58yfvZ74gPWNQTj+H34I ZwB0n5s+0qLLbZqf00CT4B1ZjSnceiqXZYF2JXF6nZb48VMGJ8WzRkcVAWbPMobwOrLE QUp2+TmUedJk9S52QQQ16I81LtDT66B1vAdVzjifeOzeYiUcX7KsGmGDjRH7l6tq9Kby sMUtZ9q0beG2jQbT7zgczb64yxSJdTx09dJwKaDkxQfXSU+CNVfw9RE2tXoJURzMiyMC 8BRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hGSNcP+ms4Vn8/e4xgcJRUfGMxd2RCu6Ltfl1sU5U6s=; b=GYbwWwgFYxTzb4uG+uv7DrGc5TsqKO3D0AQqe7F3I2t0nyI0sd2ER1geiG208QW5Pt ziWYk6Wtj6wALkAqrWUYZLkPHMzbmBsw74RWoypt5lY3UxAB8LI1XMjCBqK2FBlIzSkB lF698xfMlJH0Xpzwk3DRwVOTfAhFSlZzL8oCdsTLeuzxAPDlNDTwQtj5S7Hj6rznjkNq BUbaEnzHu4P3jA150ugGzmt9QFkKye7Xy84+ldJksjzCrDpxB5Ex6jNijfJMQbDm+2ly zcASuLyNKhR1WemjunXxd2QMofrgWAT39JFsImf8NYkAFpf3TzzSNfPfRbC41lHJm5iy ReXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=j4i+KxND; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l63-20020a622542000000b005a91144267asi1662987pfl.247.2023.04.06.09.05.14; Thu, 06 Apr 2023 09:05:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=j4i+KxND; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239832AbjDFQE3 (ORCPT + 99 others); Thu, 6 Apr 2023 12:04:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229806AbjDFQEX (ORCPT ); Thu, 6 Apr 2023 12:04:23 -0400 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E49EB9EDE; Thu, 6 Apr 2023 09:04:21 -0700 (PDT) Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 62F1086081; Thu, 6 Apr 2023 18:04:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1680797060; bh=hGSNcP+ms4Vn8/e4xgcJRUfGMxd2RCu6Ltfl1sU5U6s=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=j4i+KxNDBecht5uxlq7mB9s/myKyJeibtAw6iFvfBKc/35IQSSeYiwNomHTYvSM38 ZV0f7RQvqHTU7F8XqKMkKbMknDLh/LX+BsXSC4Qbmw5wskMY87lc38Gsao7ghJVBu0 sKQAUE4VDujl8OlqswgNihdfiYnN8v9S6HxQ4/18TjF0Us4y5GV7ue1sW9Ahpiwggv 02BgrUGjUBsruU1WsnOCGMf7QNQdy6JhvZDGxMG3heyLZi1nyh7Ju4IkVaJgnzFSAo OGUNCH1vSn0rwTonZGzFA45PRxY6hT9Yg7YF79W9uY84FnIx1JUjZGD+oDMAgfGTFg WPBhhvznCiwsw== Message-ID: <6865a0ce-fc77-df43-b36d-a586856c69d7@denx.de> Date: Thu, 6 Apr 2023 18:04:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 2/2] ARM: dts: imx6ull-dhcor: Add Marantec maveo box Content-Language: en-US To: Christoph Niedermaier , "linux-arm-kernel@lists.infradead.org" Cc: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Li Yang , Fabio Estevam , NXP Linux Team , kernel , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Ulf Hansson References: <20230405160258.46998-1-cniedermaier@dh-electronics.com> <20230405160258.46998-2-cniedermaier@dh-electronics.com> <05fa147c-116b-59b4-d14b-760bbefd7602@denx.de> <42737c19-698f-8cc8-45b2-8ff08a274f87@denx.de> <531df359744f4bdb9fd34eafc864d2bc@dh-electronics.com> <50c88cc4-e046-6c43-2d35-116d1d4ea2f8@denx.de> <622e846f1d2c4f8abba171202640d1d3@dh-electronics.com> From: Marek Vasut In-Reply-To: <622e846f1d2c4f8abba171202640d1d3@dh-electronics.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-4.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/6/23 17:44, Christoph Niedermaier wrote: > From: Marek Vasut [mailto:marex@denx.de] > Sent: Thursday, April 6, 2023 4:10 PM >> On 4/6/23 10:37, Christoph Niedermaier wrote: >>> From: Marek Vasut [mailto:marex@denx.de] >>> Sent: Wednesday, April 5, 2023 8:47 PM >>>> On 4/5/23 20:24, Christoph Niedermaier wrote: >>>>> From: Marek Vasut [mailto:marex@denx.de] >>>>> Sent: Wednesday, April 5, 2023 6:25 PM >>>>>> On 4/5/23 18:02, Christoph Niedermaier wrote: >>>>>> >>>>>> [...] >>>>>> >>>>>>> +/ { >>>>>>> + model = "DH electronics i.MX6ULL DHCOR on maveo box"; >>>>>>> + compatible = "dh,imx6ull-dhcor-maveo-box", "dh,imx6ull-dhcor-som", >>>>>>> + "fsl,imx6ull"; >>>>>>> + >>>>>>> + aliases { >>>>>>> + /delete-property/ mmc0; /* Avoid double definitions */ >>>>>>> + /delete-property/ mmc1; >>>>>>> + mmc2 = &usdhc2; /* eMMC should be mmc2 */ >>>>>> >>>>>> Why not mmc0 ? >>>>>> >>>>>> Use root=PARTUUID= when booting to avoid any dependency on >>>>>> root=/dev/mmcblk2pN enumeration. >>>>> >>>>> This is due to software interchangeability with the DHCOM >>>>> i.MX6ULL, where the eMMC is always mmc2. >>>> >>>> +CC Ulf , I vaguely recall some discussion about this enumeration and I >>>> am not sure one can really depend on that. >>> >>> That why I think it good to have a defined number for mmcblk devices >>> on an embedded system. An excerpt from [1]: >> >> I might be misremembering this, but could it be that, if any non-OF >> SDMMC controller probes early and hogs the /dev/mmcblk2 before the OF >> ones have a chance to probe, then the OF ones would fail to probe ? >> >>> Alternative solutions like PARTUUIDs do not cover the case where multiple >>> mmcblk devices contain the same image. >> >> I agree, this is indeed a downside of PARTUUID . >> >>> This is a common issue on devices >>> that can boot both from eMMC (for regular boot) and SD cards (as a >>> temporary boot medium for development). When a firmware image is >>> installed to eMMC after a test boot via SD card, there will be no >>> reliable way to refer to a specific device using (PART)UUIDs oder >>> LABELs >> >> This can be solved by the installer updating the PARTUUID on the eMMC >> however. >> >>> [1] https://patchwork.kernel.org/project/linux-mmc/patch/20200825134441.17537-2-matthias.schiffer@ew.tq-group.com/ >>> >>> So far I have never had a problem with numbering mmcblk devices via aliases. >> >> Based on the above, I don't think either the aliases or PARTUUID is a >> perfect solution, but the aliases should be fine for mx6ull at least? >> So I think we can conclude this discussion thread ? > > Yes, I will send a new version with the changes on the first patch. Thank you