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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5D85C433F5 for ; Tue, 28 Sep 2021 18:45:12 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 0036D61246 for ; Tue, 28 Sep 2021 18:45:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0036D61246 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1D5BC83143; Tue, 28 Sep 2021 20:45:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="qVYUih8L"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 98A418048A; Tue, 28 Sep 2021 20:45:06 +0200 (CEST) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2E55F8022E for ; Tue, 28 Sep 2021 20:45:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf36.google.com with SMTP id a13so14073470qvo.9 for ; Tue, 28 Sep 2021 11:45:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6ypCrSmqHUbA2N/vhzdHHf9Tqi9GOxihYK+bmZNdWeY=; b=qVYUih8LYGX1N25YmIZezFuorhTACfqWeNbbkcBwOWBI5n6JvbruTZAm4id5k5SNyH PtI2k5DtdXO4NIGI0yn4RCzh43kX6LRjxzMKCG/JxiBwiAsgXz/6KiQZ0OwGMCtQst2L CVyPgbR8TQq5oZsArRnfiuGONPzgB6kPtlQ74= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6ypCrSmqHUbA2N/vhzdHHf9Tqi9GOxihYK+bmZNdWeY=; b=TzhUSmFAFa4cJtidyjJ14922uqf5R2mxnOz4RJhDQiVzA1wVMWF2i6gq+vsNZmHNai 6vEr+A94CWWhR9HsCNh2VY52kocSexb4jo+Zg2HPvAT9N6f809DIBzOsRBkQcHY9SmB/ 6iKwd/guKB48GXKo3+qmyKhQAhl3iKdF5XlMBLuTxI9qRfrKIwT0V/H/JiGtFcl3Vyz4 EPhUzWoT9FAQqgY1oC9s+tAO/vGkKVqBR7kw69gZ4FjTVBEN7ojd2VoIz46z2a4N7QyU 7s99CEsCkN3ISMiZ9vHylFVsRoMc1LpOUEkaY1fLdMAgzrgrM9bPKYj/k/b/tKFBb1Tr J+AA== X-Gm-Message-State: AOAM533NSQKLuRY9MBn/JToMoJiNljZeizHKYfyn4tPoZ5ElBfXE8a/i /MbGWxKq4YZJ2HHqtWJZ1F7xbQ== X-Google-Smtp-Source: ABdhPJyfNBgOi2OHj90rqQcBx8HFw3+tfSbZ8x+9xT9aW40w7d2jSWJv+KFFzzMkcOqy2LssClivZw== X-Received: by 2002:a0c:b45a:: with SMTP id e26mr7368678qvf.59.1632854700356; Tue, 28 Sep 2021 11:45:00 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-c022-6242-d139-1392.res6.spectrum.com. [2603:6081:7b01:cbda:c022:6242:d139:1392]) by smtp.gmail.com with ESMTPSA id w9sm7292647qki.80.2021.09.28.11.44.59 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Sep 2021 11:44:59 -0700 (PDT) Date: Tue, 28 Sep 2021 14:44:57 -0400 From: Tom Rini To: Patrice Chotard Cc: u-boot@lists.denx.de, Patrick DELAUNAY , U-Boot STM32 , Farhan Ali , Sean Anderson , Simon Glass Subject: Re: [PATCH] mtd: nand: raw: convert nand_dt_init() to ofnode_xx() interface Message-ID: <20210928184457.GT31748@bill-the-cat> References: <20210913142553.24333-1-patrice.chotard@foss.st.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="U3jK8g368jZ6I4TC" Content-Disposition: inline In-Reply-To: <20210913142553.24333-1-patrice.chotard@foss.st.com> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) 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.103.2 at phobos.denx.de X-Virus-Status: Clean --U3jK8g368jZ6I4TC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 13, 2021 at 04:25:53PM +0200, Patrice Chotard wrote: > nand_dt_init() is still using fdtdec_xx() interface. > If OF_LIVE flag is enabled, dt property can't be get anymore. > Updating all fdtdec_xx() interface to ofnode_xx() to solve this issue. >=20 > For doing this, node parameter type must be ofnode. >=20 > First idea was to convert "node" parameter to ofnode type inside > nand_dt_init() using offset_to_ofnode(node). But offset_to_ofnode() > is not bijective, in case OF_LIVE flag is enabled, it performs an assert(= ). >=20 > So, this leads to update nand_chip struct flash_node field from int to > ofnode and to update all nand_dt_init() callers. >=20 > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! --=20 Tom --U3jK8g368jZ6I4TC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmFTYqIACgkQFHw5/5Y0 tywsuQv+PoLh02oZqiH8LyWNdKsqUuy22gmr00UXCqPLGxnhlawuxCy8xILMj0Lt trkZ6ih2wgoDzWoBeOeRD01b4fY6mg8B9ULUimOW2CafcJFx7us4A2SDXvccUeqo W2lI5xt6I+Bh43TYg9LXZ3bFLlVDuGmpN6NQmHWNnuj5zbOqtOt7WsgSCBG4qD25 QApam9757JoDl6rUtSttM/NK3oqa5mXrzmEfW42bsHyA2PwWJpktZShrox/vcG0Y dGMIc3TNq9f7TdvQUex+aNkP2P6ChSUh40FHRlrbeoxSzS1bE+IdFVpI0jnYaAvw HpbRJRbHuqVEFdpStyel8W349d8yUJ3VoKOutK9GIdqRJhRrLcpnRVnVvRicuglL BNtXPmrUYQKosy3baPPVimNBy6e+gCNwtvVrrZI1rKrPTvMoc8cWBuMLj6uekjl+ 2GoagfWGk2O86HEcgES5eka+KNP4+vX3tDcKhdgUOqKw9sz5TUFoVxfKV44kb8Fq JbTpa/My =QeUK -----END PGP SIGNATURE----- --U3jK8g368jZ6I4TC--