From patchwork Tue Aug 1 21:54:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 12964 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp44375vqx; Tue, 1 Aug 2023 15:13:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlEMa6RpYJTOVWWxvg3aymI7oTPy5WiQHc0gNOtaEWKgYKEOaJj8Wgm6c7QkIfU7YRwukn7S X-Received: by 2002:a17:903:120b:b0:1b8:936f:c34d with SMTP id l11-20020a170903120b00b001b8936fc34dmr14857480plh.27.1690927992803; Tue, 01 Aug 2023 15:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690927992; cv=none; d=google.com; s=arc-20160816; b=ZRqd3A84rl9D7zvxYyQ0vUjiUqYTiCfY0gg6Uc5YhTswAujIJWKhOSNgH/u1uhyIoU aYOcEwWKCOjNnpNBj/vykT8YFny0dD3CJDQ5KrKdgv2DeCA6nCytRsTm1HHX1BCSVqOm xxua8fR2oOQtdhXF0T4d30CTnLojL3Ld/AaccThiACY7DRHFTImTb+eLPdeuZxGLzcc9 qe6uaKu06cXn9EHeB3Uf5MBkEdyaB/ptCNptYPm525EOGb+Yi+f5u/WzJEkoitvS1fp7 YJNYVHOT+EFj7p5g0OwXnC6MHMGzS7y0AbUUch8q0Vuuf1MVNfRar6ETSJOL7Wu5wTNp vqSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=ljLTtk7/Ei5EV28/zd/HlzcvHSR0o5GhqxQ+v8SwJLQ=; fh=9muYjwzOjeujIiOiqgEm7G2SJDFzcm638Q1NXjJ2Sec=; b=r0hf50R2uKzkES8DRYFP0EqhvbA0noVgswyTbhL+YkjN6wM7ZeIYJw5XW6/zgkf+Xs hBvyMtrGtjwXRmxAqJGL429CRRyjqXJwdav4Q4daTZ3Yvk2SfBssqItVokdTHpLigRAL GoFHFRZOGSygrKj8KVr6mOQpZ61g2mztAjdoCcGNjTWJfD7FeVnB7tqactz1Fwp+wgLH Cjs7gCNGi2OIfnLaxkzcxksca83myR6KTryg/5gRcCkKVZorZTynXGAlYtUT1EHh7NDC A62kWsptacr01+ZOJ1W58KftfGx4ZhEcY3aMLda4Q8ArUmzcO3uLRfMVoEo8tezzDsap ry9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UK+uVCBd; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a170902a3c700b001bb162e944dsi66479plb.51.2023.08.01.15.12.58; Tue, 01 Aug 2023 15:13:12 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UK+uVCBd; 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 S232766AbjHAVzX (ORCPT + 99 others); Tue, 1 Aug 2023 17:55:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230345AbjHAVzS (ORCPT ); Tue, 1 Aug 2023 17:55:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EF4F103; Tue, 1 Aug 2023 14:55:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1326D6172A; Tue, 1 Aug 2023 21:55:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDB77C433C8; Tue, 1 Aug 2023 21:55:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690926916; bh=g77t/OfpnenRQkfxAJBR/wes+BJ5Qwsz7PG8xMvT9Ic=; h=From:Subject:Date:To:Cc:From; b=UK+uVCBdDzx05ihe4RoK9kitOsn+IoWzRFdi9mKEJe9US1FUgB+Q2Bs0/8lMGkUo8 IlvNqGMTMrAmXDP+eh7W4a1aAGHGLUy+WuDDb1wJOS8SJ+tagtG+PxujDIYeU6WaCE 06Tt5a1kCI2ewnWZK30HwdlwRUJiTRzT4Mo/I6SkHnzS3P4pErjtOg7Tfot40GkUCR pFAKXtQ7R7mzkPK6TetJDW+PpEczRUP6CslfED52SGdxQywMGgeF1U6GAxzA0/Zkeq 0dbSEYdfGSxwBbvzTOhSkdZSynec7PFHSWYppSYE14vI2jgOoVzDQn5WPmsiptG99q mKSp/pQdHAHTA== Received: (nullmailer pid 2469334 invoked by uid 1000); Tue, 01 Aug 2023 21:55:14 -0000 From: Rob Herring Subject: [PATCH 0/5] dt: changeset fixes and cleanups Date: Tue, 01 Aug 2023 15:54:43 -0600 Message-Id: <20230801-dt-changeset-fixes-v1-0-b5203e3fc22f@kernel.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIACN/yWQC/yXLWwqDMBBG4a3IPHcwamlDt1L6kMuvhkIsM0EEc e+N7ePh4+ykkASlR7OTYE2allyjuzQUZpcncIq1qTf9YKzpOBb+g6LwmDYo+/vNWzsihOtAdfR OwV5cDvO5vheZ2ljajK2c/BH8vmrP13F8AfuX0tGDAAAA To: Frank Rowand , "Enrico Weigelt, metux IT consult" , "Rafael J. Wysocki" , Sakari Ailus , Petr Mladek , Andy Shevchenko , Geert Uytterhoeven Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.13-dev X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773066510720708519 X-GMAIL-MSGID: 1773066510720708519 Geert's locking fix[1] prompted my closer look at __of_changeset_entry_apply() and related functions. The result is a couple of fixes I found and some refactoring that unifies the "old API" and the changeset API. [1] https://lore.kernel.org/all/c593d8389352c574b5be69d4ca4810da13326a50.1690533838.git.geert+renesas@glider.be/ Signed-off-by: Rob Herring --- Rob Herring (5): of: unittest: Fix EXPECT for parse_phandle_with_args_map() test of: dynamic: Refactor action prints to not use "%pOF" inside devtree_lock of: dynamic: Fix race in getting old property when updating property of: dynamic: Move dead property list check into property add/update functions of: Refactor node and property manipulation function locking drivers/of/base.c | 86 ++++++++++++++++------------ drivers/of/dynamic.c | 153 +++++++++++--------------------------------------- drivers/of/unittest.c | 4 +- 3 files changed, 87 insertions(+), 156 deletions(-) --- base-commit: e251a4e28a27884e8bfb7fccbf53b24736f3ef87 change-id: 20230801-dt-changeset-fixes-b76b88fecc43 Best regards,