From patchwork Fri Dec 1 21:51:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 120394 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1679075qgn; Fri, 1 Dec 2017 13:53:22 -0800 (PST) X-Google-Smtp-Source: AGs4zMbMaFB/en8ASuW0BZyq+9+hVrR9BCRfEmO5sCbacO4/WahjekqfOEdz81H9JESQv573CNxu X-Received: by 10.98.14.15 with SMTP id w15mr11792848pfi.222.1512165202583; Fri, 01 Dec 2017 13:53:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512165202; cv=none; d=google.com; s=arc-20160816; b=iQylHA9/Sz906tvqLNfvN8wx0uIROQoeXC1jFyg/x7oowMc/nZRopw4Nm2b7gYtNhz p2uy1+7NVFhgdxBZPhlHnoMH2xbeTVgju/foOLf1ugzCUo+5DQTpL/zT6Ot+Cvs4bAwd kN/gLSMGdVWHR7t/eV4IKDOMrW9KSnL4A5QxtfqnAjuXDvPmf+ANEMth+6xRqMQX63O7 mfJTfDOBcgu5QLBVhi7LmDnT71SfO0vN214nkP5TTCYvcRxqfQ28nllboGSGNXZtWm7q C/zJyubw5OH4RtF6x+hMon6EvNP8VdjYALBaoHjoEw0wDYtF290DgB73VQzVbhq6SgJH nA3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=jnz4V50o6phhEvPPwYy6NrUJLyV4M4M1sT34MJFZzb0=; b=g0HPQ6ODkiTBa/iVJOXaDBla9xtbLP42kDuO1/uzZOicWT2vWrNVr+6hgUP8k7SLgm PP6plnSAp0eYpcq0nSx0gTFg0kiC+gEsE6jstQGOrqgUIbq+cILZ1JCTJ+DK0uqdul41 5e88xoRZYpQ3uGmVYh3fXQBsq8rsDi9Y8i9v11jaxnB5Y12+FRg68J4qc/6wDEprKlce HvnNHhkMl97z7Ik/FflORZN7xJn2VPn4XJ2hCFKBgARZMnqfntbByskO10N9uSAz/ndn l8tfy/9Yq8d4PUktCDKu/3Z0xE1jyrKIhUO96zLeewc2CSwpCr1S0n9JZGP0nCeRpeAp sqiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=JCFJingt; 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 y7si5378241pgp.166.2017.12.01.13.53.22; Fri, 01 Dec 2017 13:53:22 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=JCFJingt; 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 S1752071AbdLAVxI (ORCPT + 28 others); Fri, 1 Dec 2017 16:53:08 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:46594 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699AbdLAVwR (ORCPT ); Fri, 1 Dec 2017 16:52:17 -0500 Received: by mail-wm0-f68.google.com with SMTP id r78so5883165wme.5 for ; Fri, 01 Dec 2017 13:52:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jnz4V50o6phhEvPPwYy6NrUJLyV4M4M1sT34MJFZzb0=; b=JCFJingtf0uWdr2IMitYLAETJNOSSwQJCHOOSQG25iEZBgX95S4oqwOJ60UA8dLMM+ e+iRYcKKz/+fHToz1l7AE6Qf6dvPekMVtfdfkkRO/vosTO0tFKn9L63sKIRkvq1vx85u Nvvr97R9MJcH+fbYmfxbXQFXN21iFCGCZGeZlEXMuKWolbma4KixsbD3JCOSWRJze1xJ C9wThNKInmEswss5/MP3H3MZYeyjj4RFXRBKFLpNUHdR9oLYGMblVzw/MsZBgRu3Yv7U +JMFQlCkSjg7dVjaMrDk+25zyCGbllN3SpJCZ/0uZttJu6y7gNu3V08bUoiL8KcpK400 eY+g== 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:in-reply-to :references; bh=jnz4V50o6phhEvPPwYy6NrUJLyV4M4M1sT34MJFZzb0=; b=dPMHZyYig5da0F6wlwen8gYc03bSp50bILM3fIgJ4HTBpKw4UEbnypgKvpZZmB65JJ jVXMnKMv+oHAEL3eHumsKBUMtWSH+H2SqG3iE//MsdziTqMFG/Fmiw2SEZ1pC4S5G9cs ulTdgpPwRrnydacyn/ZaC/uC/ZuG4w3f58QnPwSOjWoleIXlq5zBNynn9sIIhsip38ux ksU7h6/+VfIcUUmiGyJZQR03+3XiyjFp6oxeAtd4A1+6yl7Wq4RRybPOzDppHE1HvUli e2L5zxCjnJDw9AnkYf2bnutSMbQVY4pTRWpS5tv8CL58la1wXUllX1Re5O4EPq2atuEl zicg== X-Gm-Message-State: AJaThX5YKFNOJMq8V3ZOpYcqWlYEDmo1hgl/EhPGHlmUmssRfn2ZqoVY cs5Ttm8sFB48BStUgL4GKMA4hg== X-Received: by 10.28.6.2 with SMTP id 2mr2203372wmg.37.1512165136486; Fri, 01 Dec 2017 13:52:16 -0800 (PST) Received: from localhost.localdomain (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.googlemail.com with ESMTPSA id m134sm2078804wmg.6.2017.12.01.13.52.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Dec 2017 13:52:16 -0800 (PST) From: Jerome Brunet To: Stephen Boyd , Michael Turquette Cc: Jerome Brunet , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , Linus Walleij , Quentin Schulz , Kevin Hilman , Maxime Ripard Subject: [PATCH v5 07/10] clk: cosmetic changes to clk_summary debugfs entry Date: Fri, 1 Dec 2017 22:51:57 +0100 Message-Id: <20171201215200.23523-8-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171201215200.23523-1-jbrunet@baylibre.com> References: <20171201215200.23523-1-jbrunet@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org clk_summary debugfs entry was already well over the traditional 80 characters per line limit but it grew even larger with the addition of clock protection. clock enable_cnt prepare_cnt protect_cnt rate accuracy phase ---------------------------------------------------------------------------------------------------- wifi32k 1 1 0 32768 0 0 vcpu 0 0 0 2016000000 0 0 xtal 5 5 0 24000000 0 0 This patch reduce the width a bit: enable prepare protect clock count count count rate accuracy phase ---------------------------------------------------------------------------------------- wifi32k 1 1 0 32768 0 0 vcpu 0 0 0 2016000000 0 0 xtal 5 5 0 24000000 0 0 Acked-by: Linus Walleij Tested-by: Quentin Schulz Tested-by: Maxime Ripard Acked-by: Michael Turquette Signed-off-by: Jerome Brunet --- drivers/clk/clk.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.14.3 diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index f69a2176cde1..f6fe5e5595ca 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2241,7 +2241,7 @@ static void clk_summary_show_one(struct seq_file *s, struct clk_core *c, if (!c) return; - seq_printf(s, "%*s%-*s %11d %12d %12d %11lu %10lu %-3d\n", + seq_printf(s, "%*s%-*s %7d %8d %8d %11lu %10lu %-3d\n", level * 3 + 1, "", 30 - level * 3, c->name, c->enable_count, c->prepare_count, c->protect_count, @@ -2268,8 +2268,9 @@ static int clk_summary_show(struct seq_file *s, void *data) struct clk_core *c; struct hlist_head **lists = (struct hlist_head **)s->private; - seq_puts(s, " clock enable_cnt prepare_cnt protect_cnt rate accuracy phase\n"); - seq_puts(s, "----------------------------------------------------------------------------------------------------\n"); + seq_puts(s, " enable prepare protect \n"); + seq_puts(s, " clock count count count rate accuracy phase\n"); + seq_puts(s, "----------------------------------------------------------------------------------------\n"); clk_prepare_lock();