Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp849633pxb; Wed, 6 Oct 2021 17:13:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy63WssXC6LBZSpmqC2MEFwoqMKj3UwuVQMyNYYXq53qLSj/juB3dGy+kgnCbCeyc4nm077 X-Received: by 2002:a17:90b:1642:: with SMTP id il2mr1844748pjb.133.1633565586890; Wed, 06 Oct 2021 17:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633565586; cv=none; d=google.com; s=arc-20160816; b=L7ainoaMuj0762Cn28WtjHm8/elbeO4rQfv18uQ87/qaeGpI/Tr14MKTBqIsdPryaJ 45QH8Cp90A4EgP9K+T4OgHb8SNSWxwt95onm9nT29G1cObWCkjG/8by2gy5KM4DFD7Ab edFinDtgNhqnYUk0OS7uP+Uw1S2YN2ce6vh1KRM8s1Y3e6+UVv3RoRhdkGmoL1pjokOG rzCdXlc9irSQtwc4USqm2c/+S+pN6bJQZ0rcXkYTMQ8++dLqLE6lE5cse3SjDM4egMVM SeXwhi+xDLWh69k20swL8Qr2Qk3tQMUjx6CdSQO3pmvSrzTCOsc/spYCU1P+6Y1fRZ0q nO0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8PxEBgL6W+cioy40DEeituztueb3LeZkbsP0wIoL/Sw=; b=Mvq0UKhJZvYLgd0TFFnLQSefrI1lA5v0RvSqRDA6osQB3lUUWkpETbl9EHqeQvRlNy kqhfrn82mzxUaD6epKKcQn2IHRzYNlgCZsoYVoE8sWetcPykmWPGF8NFgokJmuyvyTk4 FFgwKB4zWNY5LgmKVFy7clVbXtPpA+PKAbeTLy0+e1zUXxc8WeMsrlUC8FiQxfCV25B4 eo3g8jRLkZHFrxhL71Z16wkpPcn4tAHhE7mZSRW/tlU2CPc2FlRgKD4ck3sq2Q0U5bmU B43vNQQbofDx6xm8iAfncWNH1GJsIPWFdBLgOinFE7rAjWLKEAy3Qgli1LFqotD12mTi 7brw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=kY2SIwim; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d9si28466515pln.400.2021.10.06.17.12.53; Wed, 06 Oct 2021 17:13:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=kY2SIwim; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240096AbhJGAMe (ORCPT + 99 others); Wed, 6 Oct 2021 20:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240037AbhJGAMO (ORCPT ); Wed, 6 Oct 2021 20:12:14 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 966F1C061769; Wed, 6 Oct 2021 17:10:12 -0700 (PDT) Received: from hatter.bewilderbeest.net (71-212-29-146.tukw.qwest.net [71.212.29.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 41682C9C; Wed, 6 Oct 2021 17:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1633565412; bh=8PxEBgL6W+cioy40DEeituztueb3LeZkbsP0wIoL/Sw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kY2SIwimC82+8OVRRx8RawwF6vON2/1tDFBmvkufF7BIAcyB+uL6Ai+6ZuY+GFjod zbBfRwJ8PooTFUPhODE8SDsA9JxMdfv4Rpj9GonN5n+q66yGceoBcXEaBE60Vr1B7k X3BebMxwRHlKJqdGuEgPuvumw2A4rQM285HvdyyU= From: Zev Weiss To: openbmc@lists.ozlabs.org Cc: Greg Kroah-Hartman , Jeremy Kerr , Joel Stanley , Rob Herring , devicetree@vger.kernel.org, Zev Weiss , Frank Rowand , linux-kernel@vger.kernel.org Subject: [PATCH 7/9] of: make OF_DYNAMIC selectable independently of OF_UNITTEST Date: Wed, 6 Oct 2021 17:09:52 -0700 Message-Id: <20211007000954.30621-8-zev@bewilderbeest.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211007000954.30621-1-zev@bewilderbeest.net> References: <20211007000954.30621-1-zev@bewilderbeest.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The writable status sysfs file enabled by the 'dynamic' DT property requires CONFIG_OF_DYNAMIC to be useful, but that shouldn't require dragging in CONFIG_OF_UNITTEST as well. Signed-off-by: Zev Weiss --- drivers/of/Kconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index 3dfeae8912df..8e0ba87db030 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig @@ -55,12 +55,14 @@ config OF_KOBJ # Hardly any platforms need this. It is safe to select, but only do so if you # need it. config OF_DYNAMIC - bool "Support for dynamic device trees" if OF_UNITTEST + bool "Support for dynamic device trees" select OF_KOBJ help On some platforms, the device tree can be manipulated at runtime. - While this option is selected automatically on such platforms, you - can enable it manually to improve device tree unit test coverage. + With this option enabled, device tree nodes that are marked with + the "dynamic" property can have their status toggled between + "okay" and "reserved" via sysfs. This can also be enabled to + increase test coverage with CONFIG_OF_UNITTEST if desired. config OF_ADDRESS def_bool y -- 2.33.0