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 4077DC433EF for ; Fri, 29 Oct 2021 02:48:06 +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 9474E61157 for ; Fri, 29 Oct 2021 02:48:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9474E61157 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 11A298358C; Fri, 29 Oct 2021 04:48:03 +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="cexiKsqI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D5A0982952; Fri, 29 Oct 2021 04:48:00 +0200 (CEST) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (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 3695C835A6 for ; Fri, 29 Oct 2021 04:47:56 +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-qt1-x832.google.com with SMTP id h14so7025827qtb.3 for ; Thu, 28 Oct 2021 19:47:56 -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; bh=9fomQnMWQYwNbK90TVBO7f97m4YbIu7KeYsasQYMevs=; b=cexiKsqIukTBb8+BrxWKztvSkJqdvlLzr4wf6fEp7ebsrKTKQAMp/V5iZqcgjkpmT3 oPA6kgxw+f2JTVeBs3H1lrCsbRH6YnA6KY9PQ7EXDGz+dFymXILfXZmKJ1QNaQdD015W +KeZqNkQdCciGNr6aGici/OQnhPGomLMUmzd8= 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; bh=9fomQnMWQYwNbK90TVBO7f97m4YbIu7KeYsasQYMevs=; b=bKeSnyJQqyYdkMp/whe2ZN8TVfuAAcCOsQFZLVd+XWRNcsS9VrR+uad6vmTWV6M31x tXWTNiAW3TWj+NFUhUFIG6o2kBQ33ItLhxo5Bx03x9Buu02rmoNOOxFQLK/HEa1RDIVR +NDema/7sVzYwy8Sr0yc+BWgQN3CJqP+hH2dK0EQwoqvpBmfi/GDaI6VkWVFXok6SySU 48DR4GCJ1AGU+iPd8sWexpa1kpGLAc9qQSFWeIb7gWPvQIaxT6xCQaUqZl7da5xQ3DgA RDe6vIiUjoyRydhUfADw1iuU4OFNy59Vgh2EpUSm6BqyWhhSpc54zw5Rw0dveKeKpert 90QQ== X-Gm-Message-State: AOAM5333ykKVBUUfl13qPvbGIRsYuIIliLUgbEqncPokaJDnwtbKzjwo /mRWSL4tvaOt61XcnDxAKbmF7w== X-Google-Smtp-Source: ABdhPJxRXf2JW7BlSOSCd8jAi+5FrW2rtlqBS8hu5FPKYpg7IcIEn73I2ZDuVm2y4wJXvjTVeFRvhA== X-Received: by 2002:ac8:7d04:: with SMTP id g4mr8733052qtb.183.1635475673846; Thu, 28 Oct 2021 19:47:53 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-cd13-3c38-2d32-68e0.res6.spectrum.com. [2603:6081:7b01:cbda:cd13:3c38:2d32:68e0]) by smtp.gmail.com with ESMTPSA id h11sm3373243qkp.46.2021.10.28.19.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 19:47:53 -0700 (PDT) Date: Thu, 28 Oct 2021 22:47:51 -0400 From: Tom Rini To: Sean Anderson Cc: "Peng Fan (OSS)" , lukma@denx.de, sjg@chromium.org, u-boot@lists.denx.de, Peng Fan Subject: Re: [PATCH V2] clk: introduce u-boot,ignore-clk-defaults Message-ID: <20211029024751.GR8284@bill-the-cat> References: <20211029012801.15193-1-peng.fan@oss.nxp.com> <20211029021041.GQ8284@bill-the-cat> <95b0da95-99cd-5aa9-2368-aac02509ed2c@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mHNxlnn48ELheE/j" Content-Disposition: inline In-Reply-To: <95b0da95-99cd-5aa9-2368-aac02509ed2c@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett 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 --mHNxlnn48ELheE/j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 28, 2021 at 10:43:01PM -0400, Sean Anderson wrote: >=20 > On 10/28/21 10:10 PM, Tom Rini wrote: > > On Fri, Oct 29, 2021 at 09:28:01AM +0800, Peng Fan (OSS) wrote: > > > From: Peng Fan > > >=20 > > > Current code has a force clk_set_defaults in multiple stages, > > > U-Boot reuse the same device tree and Linux Kernel device tree, > > > but we not register all the clks as Linux Kernel, so clk_set_defaults > > > will fail and cause the clk provider registeration fail. > > >=20 > > > So introduce a new property to ignore the default settings which could > > > be used by any node that wanna ignore default settings. > > >=20 > > > Reviewed-by: Simon Glass > > > Signed-off-by: Peng Fan > > > --- > > >=20 > > > V2: > > > Add R-b tag > > > Tom, Simon > > > After a thought, I think still put it as a u-boot thing. assigned= -clock-x is > > > actually Linux specific, however I could not add the new property= to Linux, > > > because we are supporting SystemReady-IR, we need the assigned-cl= ock-x property > > > in linux working and ignore it in U-Boot. > >=20 > > OK, right, so... it should be a generic property to say what, early > > firmware should ignore this clock unless otherwise required and use the > > preconfigured value? > >=20 >=20 > The issue is that for platforms sharing devicetrees between U-Boot and > Linux, Linux may add assigned-clocks which are not implemented in > U-Boot. Although assigning a specific frequency or parent to a clock may > not be necessary to use the device, it will fail to probe because the > clock cannot be found. I believe this property is intended for these > cases. Alright. An example might help, but, why can't we either make this a positive general property of the node, or otherwise infer that from what's present in the node today? --=20 Tom --mHNxlnn48ELheE/j Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmF7YMwACgkQFHw5/5Y0 tyxjwgwAnlP582B6ViOyzOS1egsXyQq16U4ibo96nMlwTNX6yBnjng2cWsPsa9nL 69QHg4yprD7U+5B4kmPNbumHoss+PEmmS3ZpO9gtIei01nyk2rE6qu+Bw7kl4lMi LuHRZOJxDViiJROL/frpv34x0OBukSs2pkNO6wkhN9Jn6eC3FpWNzL+z0S5dyf6G smJnyhmbNFYoaSMTX7AM5QMIn99frdxCIvq4/RRNgN/6mYP1PeGq3lq9hWbRyfkr QoGMbG9UFxITytFwts5yxzWocmSVSjm2Ngz15MO2mUspS4ftdKgciBjbGJCz6C5/ elSqgMzAruqsfSkO9SNgoNPTZCD5UDFodnne4wUDc5mLC9SHs2pOmSrEsoRS9nUt ne5ns376dgOEa5S8DvJ+8RK97OYrV5iwrs9/m2XJDmIhNT10j3QLMkEnD93huh6s F55kul7m8DKyllnI29+I6R/KVSM0uc4rO24Ev6dno2bEiRrv/CoWcZ45bMEJxeJq JEquY5cD =mO9r -----END PGP SIGNATURE----- --mHNxlnn48ELheE/j--