Received: by 10.223.176.46 with SMTP id f43csp1884304wra; Sun, 21 Jan 2018 06:36:07 -0800 (PST) X-Google-Smtp-Source: AH8x224pehBd4yLH1QH0dCVu8527elcvLpZKu3Kcc0C+mYWlQJT8rpXI8/o4Z0NYb8EEmH05vrup X-Received: by 10.101.92.66 with SMTP id v2mr4708226pgr.37.1516545367220; Sun, 21 Jan 2018 06:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516545367; cv=none; d=google.com; s=arc-20160816; b=LP7iCzlH/goiNqOSSf/4cy+GsFDlXhhEuYU4cb79qskkZBKzZvyhW9Crsb1dvxGWnG zhKtIOvNnZ/+VG4xiM9UwBfQaGVqm5HTnOhB3CWsulc2eBL3QyGJ51hQO1Nj8YI4gN6W Q5kuWzSk4Ly64hLjGVxht6UmlS3zfVVVx4TqmEuQAOw+BpqKoeX9qVdDOjLM4xxFRL8y zlVGTSmCuKLZWvjw+2/h8dkFa2eLpEgPF1WJFGxsfKwUzP1vMY7yqTTGJ9rvI8qArUuI 4Rrk+MP0CWnqMHK30ki2Z/j3bhq8PcrgaHt2in9q9Qrqe7yeU3kYiybKj7J/u6GKkJ3r g1Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=iSM3nvehYBiL5OY3JlIZz+j/jo3sIE3+7DLcwA3Yv3U=; b=YTq5j561xqKNn0PJj6hwUKSroy94sT+8dWaqWgV/sdmMbLzxFaQGyd9g2pdsUoxjTl KEfFmlODk8ll7IPXqHgeVOLxPx/riRwnzGnmuGuoCuUGDi5fEXuNVNSPmKYgHzQL64Gm pnOafTb36srOqbAhRHYa2S7c2MRG7ywSyDch4KKY1MEplNO/JSB5Ba6TZ8waVZSYq6cD cJJqkx+sbSZpimtQUM0zIjwYGVyENra+c7gEt+7jLeDHab/NB7SBEicDOwQ0FFQwMUU2 rI80W69XjNtAfmEzuV+DW/NuhZkcIoPJUAFB8Yy9RoKgt/P+FX6/ofWRh1bKSCvzXMt7 SCIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 77si13690661pfs.2.2018.01.21.06.35.53; Sun, 21 Jan 2018 06:36:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751264AbeAUOd7 (ORCPT + 99 others); Sun, 21 Jan 2018 09:33:59 -0500 Received: from sauhun.de ([88.99.104.3]:41325 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751147AbeAUOd5 (ORCPT ); Sun, 21 Jan 2018 09:33:57 -0500 Received: from localhost (p54B33A7B.dip0.t-ipconnect.de [84.179.58.123]) by pokefinder.org (Postfix) with ESMTPSA id 972DB2C6BDF; Sun, 21 Jan 2018 15:33:55 +0100 (CET) From: Wolfram Sang To: devicetree@vger.kernel.org Cc: Tyrel Datwyler , Geert Uytterhoeven , linux-renesas-soc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Rob Herring , Frank Rowand , Steven Rostedt , linux-kernel@vger.kernel.org, Wolfram Sang Subject: [RFC PATCH v2 0/1] of: easier debugging for node life cycle issues Date: Sun, 21 Jan 2018 15:31:16 +0100 Message-Id: <20180121143117.19805-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I got a bug report for a DT node refcounting problem in the I2C subsystem. This patch was a huge help in validating the bug report and the proposed solution. So, I thought I bring it to attention again. Thanks Tyrel, for the initial work! Note that I did not test the dynamic updates, only of_node_{get|put} so far. I read that Tyrel checked dynamic updates extensively with this patch. And since DT overlays are also used within our Renesas dev team, this will help there, as well. Tested on a Renesas Salvator-XS board (R-Car H3). Changes since RFC v1: * rebased to v4.15-rc8 * fixed commit abbrev and one of the sysfs paths in commit desc * removed trailing space and fixed pointer declaration in code I consider all the remaining checkpatch issues irrelevant for this patch. So what about applying it? Kind regards, Wolfram Tyrel Datwyler (1): of: introduce event tracepoints for dynamic device_node lifecyle drivers/of/dynamic.c | 32 ++++++---------- include/trace/events/of.h | 93 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+), 20 deletions(-) create mode 100644 include/trace/events/of.h -- 2.11.0