Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1672581pxb; Wed, 9 Feb 2022 01:49:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTyi/1xQSvhkE34cr3AnWLTIcF2apPIBxofb3pAj99IN20f3Z0Hepx93s4d+IZUombrsf1 X-Received: by 2002:a63:5460:: with SMTP id e32mr1245044pgm.330.1644400170931; Wed, 09 Feb 2022 01:49:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644400170; cv=none; d=google.com; s=arc-20160816; b=auneLZYrrtGUwH2fZu14WmkYLbZWnW/S+tsq+dALnVnHMFWs5uwcW+RiYKZa3HEn5D Ge6oXxZGOl1FXCmrFF+ddKyU5b42Osay1DnQM43We8T/TGlMEJzMY9X/wBA4mAKdpDE7 3SdckBULBuwEc0/K9SxriiZXJtRqieXj9ovs1ANOz6dXwhJD6G1FwWBU7lwfHwvAdZOp N7QxZqIHHcXCCnUhEO818sD73ZChmf1tqBoE+Et0DD3cth2Una+3Ygi2N3zUveWO9TPz FIKijx3mEozglPRY4mtGqa2j6aNvTIxjMuDYhrfoY5tfdlkapEXGvwh0DE5OebvBoOTf gTNw== 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=I9Nh8eT2d+7ej2ljwVrgwpWp8ld5i/YvuQndPq1VHYE=; b=mmo6ycp7ld+3VC7dy3Dmzi+LU7QNe8Sy5XhsO/hgKlYYXbQJM2rDicfyqe+/O67b0i HHeQhu70qMbUCpucKWv0oYkhzFfDblcz9hhOIy6QigJM3/NBdATEF3Qg2nmNsQj2+HIB 6fl0f4Z94y7B+5YnhGYcV9poN4RN99rGK1066VJJ0Kt86MZo3cEbdZf4cMXrSBebaTCz pl8A+joELFTH5JWohwgLagS3m4JTOK4csMQwr8BR4at+KgMSoP4dcyy8NKTqjdbOgGRQ i+yGFgRau8StnsftW/1tMAGkaaeelp49CZSVNyQ0K3OfZPyLMoyeiRFer15eyh+V4XdS 0vzQ== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j9si5044799plh.525.2022.02.09.01.49.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 01:49:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 47E05E071374; Wed, 9 Feb 2022 01:08:17 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378077AbiBGLfs (ORCPT + 99 others); Mon, 7 Feb 2022 06:35:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357632AbiBGLZ0 (ORCPT ); Mon, 7 Feb 2022 06:25:26 -0500 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 943ECC03FED1; Mon, 7 Feb 2022 03:25:16 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id EB08280E1; Mon, 7 Feb 2022 11:24:52 +0000 (UTC) Date: Mon, 7 Feb 2022 13:25:14 +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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5944ba0ce568eaf507917799b1dfd89a3d0ca492.camel@ew.tq-group.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 * Matthias Schiffer [220207 08:45]: > Generally I think that it's a bootloader's responsiblity to disable > unneeded devices - the kernel may not even have a driver for some > peripherals, leading to the same behaviour as a "disabled" status. For > this reason I believe that it should always be okay to set unneeded > devices to "disabled", and it should be considered a safe default. Not possible, think kexec for example :) How would the previous kernel even know what to disable if Linux has no idea about the devices? If there are issues you're seeing, it's likely a bug in some of the device drivers for not checking for the necessary resources like pinctrl for i2c lines. > I'm not sure what the consensus on these issues is. I'm more familiar > with NXP's i.MX and Layerscape SoCs, where it's common to have all > muxable peripherals set to "disabled" in the base DTSI, and a quick > grep through a few dts directories gives me the impression that this is > the case for most other vendors as well. This approach only works for SoCs that don't need the kernel to idle devices for runtime PM. Regards, Tony