Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp235986pxp; Wed, 9 Mar 2022 01:42:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWqocyhHo3mH5bgriHQLjBrz4zg5SkvOSrlkJb0iAKD1fqFJ1Nky5sCmGBxd1v+UFz98E/ X-Received: by 2002:a17:907:2d28:b0:6db:2bb4:a8f1 with SMTP id gs40-20020a1709072d2800b006db2bb4a8f1mr12469269ejc.663.1646818967236; Wed, 09 Mar 2022 01:42:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646818967; cv=none; d=google.com; s=arc-20160816; b=UOhqGw4oA3vwPX2cuGec6V8yBcjOi4NNEEEkI7TNqGN0RxRnPDpxV02TKQg0H8VFAJ 7SxPR2DbPtjyN0uZsfGJN7nrn/9b55MIYHjnff5sPZ0b69lM03eb6/FvM4xQ9VWycK4H /LqAbRtSOpsaRFimQdNUyc0js83cBg1031Szkr6pDrrK/6z2YhmsQV9sdfUPTgs8RuOU iodHZUasfnoOsCTZ/f5BM04En0u6f75/ZS0pqfe5+nlkz6n27y/LECLIq3KXHBM//wlU JH2koNS8pnS17phZxvGxSz6KDZIqQbqrP+IJyIoLzcUjflZCX2QiiUxPWINUtKo+8qfJ IQsQ== 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=/BWRzDWZsgQ/nzTZFFisF/C/vAJrtXHrCNxi+2RaA60=; b=Zbo6pMlmND0fJ/E6sOPHRmdSCUq4B6pRMA+fsouYffkSe2kSg6Z63HKLX87dsulGwW O9AT8HN5QMH9RNo34a0PLoFBUCDlo/zR9ekx5FHFS2kKC71xR080IZuSmBA3lxWLpE5f 2JM62h3rUxi1ftDARidIUXOFpBDdSCHu3sCM8G/g9VCJBQtYcjt9ezrz8OgoAFP7dteE ho6IpJfWVfJDvFBcpfmVb+QQQFkF8xT2Wt8LrvSo+Xt7liH+2go8LlezaiYmuuBeQkWH lKwV2BqcLyWe6jYk1VwMiqnHCTPxiWccqOxaTDGkS6H0K60eBZGOLKlAj7v7HbmXWa+T UjZg== 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 qb19-20020a1709077e9300b006db3aa7acd0si831902ejc.650.2022.03.09.01.41.59; Wed, 09 Mar 2022 01:42:47 -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 S231916AbiCIJNH (ORCPT + 99 others); Wed, 9 Mar 2022 04:13:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231869AbiCIJMx (ORCPT ); Wed, 9 Mar 2022 04:12:53 -0500 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 083E516DAC1; Wed, 9 Mar 2022 01:11:54 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 5E87280C1; Wed, 9 Mar 2022 09:10:30 +0000 (UTC) Date: Wed, 9 Mar 2022 11:11:52 +0200 From: Tony Lindgren To: Matthias Schiffer Cc: 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, Nishanth Menon 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> <5944ba0ce568eaf507917799b1dfd89a3d0ca492.camel@ew.tq-group.com> <9923df6525212389b86cb635624bcfb5c27a8bc5.camel@ew.tq-group.com> <1356e93cd5b101c3d896e35250c66959ed631544.camel@ew.tq-group.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1356e93cd5b101c3d896e35250c66959ed631544.camel@ew.tq-group.com> 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, * Matthias Schiffer [220228 10:29]: > AFAICT, disabling non-operatational devices in the board DTS instead of > the SoC DTSI is worse than the alternatives in every way: > > - Verbose board DTS: You have to think about all the devices that exist > in the SoC, not just the ones you want to use > - Adding new nodes without `status = "disabled" to SoC DTSI can > potentially cause issues on dependent boards > - It doesn't solve the issues that not having `status = "disabled"` in > the DTSI is supposed to solve My preference is the least amount of tinkering in the dts files naturally :) It really does not matter if the extra dts churn is to enable or disable devices, it should not be needed at all. To summarize, my main point really is the following: There should not be any need to tag the SoC internal devices with anything in the dts files. The device drivers should be able to just deal with the situation. IMO devices should be tagged with disabled or reserved when they are not accessible for example because of being used by secure mode for example. If the the status needs to be set to anything, it really is a symptom of incomplete handling somewhere. Regards, Tony