From patchwork Wed Jun 14 20:30:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 105578 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp471743qgd; Wed, 14 Jun 2017 13:30:31 -0700 (PDT) X-Received: by 10.84.202.163 with SMTP id x32mr2054737pld.112.1497472231880; Wed, 14 Jun 2017 13:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497472231; cv=none; d=google.com; s=arc-20160816; b=pdUVbk67BMZhu3Hnz09tWLbmgRMjvR1il2YB9UFpe+QKMfn670fMX6NYFTApW2C/Y/ XcGRtFy//L2rtaqng135+bnvW/BMgRZ3lmYOlhrdZtHUJVvEHR/8imIWJyA5cIBlzEOG UsxxdzlgT5JZlPr+bhhCB6klz4PS/YWyQEtzR8XD8x13k4TYH4GjB/lZ9Evs1GdvycYH OzDYzpo66HUavYxNC8mqvMl1BUuqEr5UUWvic9fdpzNUPUSa3W7Pd8kAWcQGiqQi0aA+ HxK/oT1gHS1Ecwomg5UizxyFYrnpEQnhFe5vlGoqXmgXTSk3izXImxaBk4E+DOvS8ATc ZT3w== 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=y/ns7hdksKnDry2c2HFOEyFwjfPuWsSqrzrvGNig0j0=; b=c9NqxI1LGEjDK7JQSvpsQKL0Iv8IZlLBcAiFO1wfezn6O1BmkQFMVGSrDc6C2yeHhv ldggXcolfGvRfgEtPwrDRQEKg2+vn8PZ3SQBixbx5PlDNfg0e2n3j//miRj1W5FpAvTO dz+uqYFcAyDu5VAVlQDEW8tAFAegTC3CZXdQY0IYlEfLmHTVTGWvWB4wLOssCePjdMHv rtAFDDbTMm4l9dzb76GQdItLHlCtD4KrUYAQxFysyxZPuAxBV71Gu6vnN/dNFtoMCwV7 e6k/XlwjOS+W1AOdzqT4UqhGyJWVvpc3d/hjs0GIUE9oTKGFx4FIExDVVnm8pKL8/eMl iBhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 p91si675745plb.244.2017.06.14.13.30.31; Wed, 14 Jun 2017 13:30:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751754AbdFNUaa (ORCPT + 7 others); Wed, 14 Jun 2017 16:30:30 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:35620 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751664AbdFNUa3 (ORCPT ); Wed, 14 Jun 2017 16:30:29 -0400 Received: by mail-ot0-f196.google.com with SMTP id z48so1175937otz.2; Wed, 14 Jun 2017 13:30:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tsrTvanG7Ogw/OvdnPoM8mZBITQVgsLoPYoNLeKWRuE=; b=arz/FGvAS81hfpa4B7LVUtpQ0uzgMDj4SgdcsCrNBIK5z9jyTIkrqaCd6DZro767PB qIx4eHP71wgon0WtyYzCkX+ZYYieTlP6W9KLkPD8bsvDq4lAQZvTxZRSdBKUMWSpYwnv 27SFHOW7C00fc96N8UfrwBDH0TRyDeIVoMnJZo1JFwpfH5f+VTxFbtQ8XrY5R7yEP5oG SzoFFVsDcVd1i2/r9sNOP3Lj/jyjAt4E0JKN2SY1ebt750wxJXkC9P0GVQTG00xXl58X AdsxhljxUU1mvXHIjzo55klWSaLhG42cOjtZQq+3ZCQDcHkm19NnPnlH5aZ1I9n6PHVF oU8A== X-Gm-Message-State: AKS2vOyh+TIsijZg4qZH6Wy6w6mJYa2tfPwUYrRX0QK68txXocqF9cXS yd50rwl2LEf3YQ== X-Received: by 10.157.29.194 with SMTP id w2mr1380897otw.15.1497472228868; Wed, 14 Jun 2017 13:30:28 -0700 (PDT) Received: from localhost.localdomain (66-90-148-125.dyn.grandenetworks.net. [66.90.148.125]) by smtp.googlemail.com with ESMTPSA id w104sm586861ota.19.2017.06.14.13.30.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Jun 2017 13:30:28 -0700 (PDT) From: Rob Herring To: Frank Rowand , Mark Rutland Cc: Pantelis Antoniou , Joe Perches , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] DT printf format specifiers Date: Wed, 14 Jun 2017 15:30:21 -0500 Message-Id: <20170614203025.7581-1-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This resurrects an old patch[1] from Pantelis adding printf format specifiers for DT nodes. The previous versions didn't get applied after debate about the what character(s) to use. Grant suggested %pO for base kobject and %pOF for struct device_node. Everyone agreed, but no new version was posted. I ended up re-writing the core implementation to be more inline with how other format specifiers are written which allowed removing #define code fragments. The other 3 patches convert the core DT code to use %pOF and prepare for changing device_node.full_name to stop storing the full path for every node. My plan is to merge this series for v4.13 and post follow-up patches to convert all arches and subsystems to %pOF for v4.14. The full series is available here[2]. I tested this on QEMU running the DT unittests. Rob [1] https://patchwork.kernel.org/patch/6127521/ [2] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git dt-printf Pantelis Antoniou (1): of: Custom printk format specifier for device node Rob Herring (3): of: use kbasename instead of open coding of: find_node_by_full_name rewrite to compare each level of: Convert to using %pOF instead of full_name Documentation/printk-formats.txt | 31 +++++++++ drivers/of/address.c | 21 +++--- drivers/of/base.c | 76 ++++++++++++---------- drivers/of/device.c | 2 +- drivers/of/dynamic.c | 33 +++++----- drivers/of/irq.c | 10 +-- drivers/of/of_mdio.c | 10 +-- drivers/of/of_pci.c | 29 ++++----- drivers/of/of_private.h | 3 + drivers/of/overlay.c | 21 +++--- drivers/of/platform.c | 34 +++++----- drivers/of/resolver.c | 34 ++-------- drivers/of/unittest.c | 66 +++++++++++-------- lib/vsprintf.c | 135 ++++++++++++++++++++++++++++++++++++++- scripts/checkpatch.pl | 2 +- 15 files changed, 331 insertions(+), 176 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html