Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2244454rwl; Thu, 6 Apr 2023 07:43:26 -0700 (PDT) X-Google-Smtp-Source: AKy350ab3dXqC6bQ6hZYSzllElMmlqZKTUl1euIw+fzbnZeY8w7UVMrvIDNeT8i70KrOdE5M2tb1 X-Received: by 2002:a17:907:6e17:b0:926:8992:4310 with SMTP id sd23-20020a1709076e1700b0092689924310mr7607425ejc.38.1680792206600; Thu, 06 Apr 2023 07:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680792206; cv=none; d=google.com; s=arc-20160816; b=wFDH9mYuFX68ZCeLsu8JokHmyTK752HSL2RPcmrXSOCnUBIFRfeQzL9EDqg4kDILTi 9m9VoGQ9SlGf8mqNDElxnVMKGlZaBVB5Cn4QocERGPHE88Ia/YZ3EPOx39UEA8t6vWsu d4ILzXHKWorsxlQv87Iw8hUUanMwk7FdovZEex1fWhkYd2ql4n1jnV/nRKUaTHgk7HSy d0lyLly68J6FV6NCZ3L81wmBu7DYcmmKjL4l7g0oWVt7lCrurePfS29wXiknYyNukToi cKB/ZrMpnAZ0LMwvNKkTgSNXiFKfCRYEdpsAd9Evsg+8sKUEHTkTkNCvYv8kCy2qcIdQ 06Aw== 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=aXDlqaghZBjXgA0NY19GPZNJThwtj3XENjKUz55y22o=; b=fg8NaE8dw1RPg5rPJpadlDVczuW0Zjmf1V63oSu3JfP8S+nP2mRXLLAPtjHeDlcoRk UlqF2ZQzzq2i27s3yDYexJpKDPTn+mulbIDWoaRw7tXp0E9a67mSb1iwBfyQrdTOPhl8 moBqpq9nPXcaw2iFaQbh/+F1k0S+KNspbAsZjSOmTHTIeg11fc0RBA8LyoZYB8b4H0Uh V9VHA4IlHd7avx51rCfdfP2S7NwjLtXzfBr9uFcy0tPrxhEav0lulMU5O/jCg0C3bPvU JXRfKC2DZhNsg56OedmJOQDjv6xRYqyN7UJ6rf79t1vBJt3kRAUSzSb6vcK7OqJ4Ed8M AmSQ== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y21-20020a17090629d500b00947791bfdcasi1153952eje.312.2023.04.06.07.43.01; Thu, 06 Apr 2023 07:43:26 -0700 (PDT) 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239250AbjDFOhy (ORCPT + 99 others); Thu, 6 Apr 2023 10:37:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239000AbjDFOhl (ORCPT ); Thu, 6 Apr 2023 10:37:41 -0400 Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 875B8BDD8; Thu, 6 Apr 2023 07:35:28 -0700 (PDT) Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-183f4efa98aso1472442fac.2; Thu, 06 Apr 2023 07:35:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680791716; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=aXDlqaghZBjXgA0NY19GPZNJThwtj3XENjKUz55y22o=; b=2vBC9p03X6mj/2hMtXggWy4nbCnffg3+ntCGqE55cvBqhafmaRW6CkWsmFvqgvIonO EzRz2IXEILlEB/rZmG0k/wZRbxbRwaCzupivZuxamb2u/GcSz0xEp6RTZfMwwCgEDBs6 7eOrXC9G0BcbF7zpBfNT7EW1DLRzH4iXXcB6N66PMEXU9jiyeSPVbZlCn6jteF5yDxwc 7kmTFm1q3HIORB5ARmb3CECJ95hlaFo+KX2+R1RvbBVHDhTb7U0ibtCw/gshwit9afFe lF/uuRLr/jJtfhlHrMEJjPH3mPkyJ8uRhGRkOVwQ+RDaTJvGSTDlO6xMJDC6d+OYm8oT YRJQ== X-Gm-Message-State: AAQBX9eCc5met2OjN0qG3MeEvMwOMSNeEkcadXUSqidSZdsPcnY6PuoR kdgoxIWM4fJkcFOYZlUjew== X-Received: by 2002:a05:6870:d10b:b0:177:b62d:cc20 with SMTP id e11-20020a056870d10b00b00177b62dcc20mr5204205oac.25.1680791715952; Thu, 06 Apr 2023 07:35:15 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id h17-20020a9d7991000000b0069dd3d98ec6sm750727otm.44.2023.04.06.07.35.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 07:35:15 -0700 (PDT) Received: (nullmailer pid 3056260 invoked by uid 1000); Thu, 06 Apr 2023 14:35:14 -0000 Date: Thu, 6 Apr 2023 09:35:14 -0500 From: Rob Herring To: Stephen Boyd Cc: Michael Turquette , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, patches@lists.linux.dev, Brendan Higgins , David Gow , Greg Kroah-Hartman , "Rafael J . Wysocki" , Frank Rowand , Christian Marangi , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Maxime Ripard Subject: Re: [PATCH v3 02/11] of: Add test managed wrappers for of_overlay_apply()/of_node_put() Message-ID: <20230406143514.GA3036886-robh@kernel.org> References: <20230327222159.3509818-1-sboyd@kernel.org> <20230327222159.3509818-3-sboyd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230327222159.3509818-3-sboyd@kernel.org> X-Spam-Status: No, score=0.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS 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 On Mon, Mar 27, 2023 at 03:21:50PM -0700, Stephen Boyd wrote: > Add test managed wrappers for of_overlay_apply() that automatically > removes the overlay when the test is finished. This API is intended for > use by KUnit tests that test code which relies on 'struct device_node's > and of_*() APIs. > > KUnit tests will call of_overlay_apply_kunit() to load an overlay that's > been built into the kernel image. When the test is complete, the overlay > will be removed. What if one wants to test the removal part itself? Rob