Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp743767pxb; Tue, 8 Feb 2022 01:12:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjggb5TdabFlX9Zy5jEwqwY7G+8/CabLvWGkWYSajXEroazW6/U3ITkZSS0waohhnlX/BG X-Received: by 2002:a17:903:124e:: with SMTP id u14mr3313290plh.57.1644311545378; Tue, 08 Feb 2022 01:12:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644311545; cv=none; d=google.com; s=arc-20160816; b=jZDIaKB6MkQpRf08DuH71HENU7s+DloP34QJ38BOlnmRhLbRaafWS9QD14B0UEtej/ 80+IKMcAE9F2k5FN0k69CnYYz7ZS3z7Kqy6xxIcSF0UOJQvRjkgHxZ/YZK17HxneNq8q suFR9mXy/LyMIkP4lGpxwETh+wkvNgAEOLeWUs1FWZrXkk5SVLeigc6Yu7/SljPlxL8w JRPV7x3XGdWdFLYkhmgJyRXDYiCHDcVFPzaBemCwtxaXEPWyF+ituJfQi5cTvJp0vtec CAYGiGX0He/RgdZQ+vA7Z/kq1Y5aaZCqlWK7nissyyvm+nEWhPRR40N58Rdyi79tNT2p lbsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=MaI0GAJKXLCTnq4kgNWDlEBop5hkJpIDuiuHVnCLjX8=; b=TpDFspSUMl8lHUAETWuVHUYJSDv4Y0TNB3rU7k4b3c2Ggp3ZljzjGLk810JnGVMoFC cHDG8KVWqFuGvG+QbnvCgz1e1DR0nSo9rG3HfLKrXPMMdCwTEg66vojOqTc94ZaBA5v7 vUc15A4kOfBf9++Ot5Nv9ASdf/u9R/zS2bcxc5cWF+L67WJonAbFrnXrk8xfwSxyAfnR 69XLzIFgEn+Llv9Qto4kGe1Gdtn4AbqZNAT7I5PCAydZbp2wGQydpFV6dm1xJkbrJt/p WsehD5oqZ4JJTfqHj1KHHZ2wH4WLFY3ug3J7osXvnqLZs18PM4Sc+KBI5dWkhGwbWZB/ MaBw== ARC-Authentication-Results: i=1; mx.google.com; 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 x186si12166409pgd.499.2022.02.08.01.12.11; Tue, 08 Feb 2022 01:12:25 -0800 (PST) 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; 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 S243649AbiBGHRx (ORCPT + 99 others); Mon, 7 Feb 2022 02:17:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244462AbiBGHD5 (ORCPT ); Mon, 7 Feb 2022 02:03:57 -0500 X-Greylist: delayed 556 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 06 Feb 2022 23:03:56 PST Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D5910C0401C0; Sun, 6 Feb 2022 23:03:56 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 4FDBE80E1; Mon, 7 Feb 2022 06:54:16 +0000 (UTC) Date: Mon, 7 Feb 2022 08:54:37 +0200 From: Tony Lindgren To: Nishanth Menon Cc: Matthias Schiffer , Rob Herring , Arnd Bergmann , Olof Johansson , soc@kernel.org, Vignesh Raghavendra , Tero Kristo , jan.kiszka@siemens.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] arm64: dts: ti: k3-am65: disable optional peripherals by default Message-ID: References: <20220203140240.973690-1-matthias.schiffer@ew.tq-group.com> <20220204143108.653qk2ihnlhsr5aa@prior> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220204143108.653qk2ihnlhsr5aa@prior> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi, * Nishanth Menon [220204 14:30]: > Rob, Tony, Arnd, SoC maintainers, > > On 15:02-20220203, Matthias Schiffer wrote: > > All peripherals that require pinmuxing or other configuration to work > > should be disabled by default. Dependent DTS are adjusted accordingly. Disabling SoC internal devices by default is not a good policy. The devices are available even if not pinned out. Disabling device by default causes runtime PM to not work as the kernel will completely ignore the disabled devices. And this means you add a dependency to some certain version of a bootloader for PM to work. Additionally tagging devices as disabled by default (and then again re-enabling them in the board specific dts files) is just pointless churn and bloat. See for example commit 12afc0cf8121 ("ARM: dts: Drop pointless status changing for am3 musb") :) If you really want to disable some devices for memory usage or other reasons, do it in the board specific dts files. > https://lore.kernel.org/linux-arm-kernel/20201112183538.6805-1-nm@ti.com/ > reversal all over again. > > Is there a specific pattern we are intending to use here? Because, if we > are going down this path (which would be a major churn across multiple > downstream trees as well) - I'd rather have this as a documented > standard and not just a TI approach and will need to be done across all > K3 devices. > > Are you aware of such a documented guideline, rather than "word of > mouth"? Maybe I have'nt looked deep enough, but checking.. For SoCs that don't implement runtime PM the policy can be different without causing any harm. But for any SoCs implementing runtime PM, an unknown state from the bootloader is not going to work. Regards, Tony