Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp636933rdg; Wed, 11 Oct 2023 00:37:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHv8fCgD6cBrz6Hx5fEWks9MEFEo7+XANvlAzZOPqtYwHGv1HnxazwMq68w4Rs5/mDKDdqe X-Received: by 2002:a05:6a00:138e:b0:68f:c2f7:cef0 with SMTP id t14-20020a056a00138e00b0068fc2f7cef0mr29509888pfg.4.1697009834336; Wed, 11 Oct 2023 00:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697009834; cv=none; d=google.com; s=arc-20160816; b=hWqi5U17tjrlQK9NlUGJITVALzP5CSfvIXnP3WnP+3rn7postoRqX9KY1poyaM1ogS cSldkd0ihjHWxcarxkq0qGplFJeICLY1+UxV1yKMLlFvzkSoaMVOif2N6VmpJvkaGQXj UhjtIAO3D1H8HIPwMDOMWW9hQFxlxYbaU4srcvV0S8vLPRerci1458QRcIUReYVMr4rW yM/bQE+bofykvAogroF7IZGSXBCBl/EsnLX4ramv4mgbWlAU24GoS2DAhzvDn2fGPCc6 UWpXvKIXxM0bphUfCrC+krglrFRvV4dHEJv6Ncfregdl2q44xs+tHZGQC+/g9e0eARgl Vj6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8O8oPKWtl15M441He8arxID+J3pb7XNKVUDjACOuXKI=; fh=iGdNW2GMLqLNiiCfWKXhNl3JMaftc29BXqBt8mr+LmA=; b=UGilTYbWedb4+GIkDRFWFeUUDLcmc4nmdF/KposSTuoGtQvXVH68SRoLyj/cpleJu7 OtNZps3KGetV3hVQtbxXoxPWtGlBSFx41nHB7okvLBqrPzVJv3MKYnfTqaIjFA40JI5l QDARDKpfjSi8wBfe4eaLGjOnDaLNaeIXX1vINXUb4jnP3h7r0JGamZpYyKGj7JwTjI+U FPxv16EZWFWRGcQZCcd56CA62dQyJCwLeLx+h6rmZUkwhN4y+ldPWn4GQxaVNMO8mWaZ Tuy9GTXjXdDf+ECstpthQKKz1aCtLnTv5sXFgklXdcCvHZgtbAsEjB1iFuEih0mnHq8M pgBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=FEIR9eJq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id z4-20020a056a001d8400b00690c19cb105si11243449pfw.250.2023.10.11.00.37.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 00:37:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=FEIR9eJq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 507DE833AB11; Wed, 11 Oct 2023 00:37:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229743AbjJKHhE (ORCPT + 99 others); Wed, 11 Oct 2023 03:37:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229747AbjJKHhD (ORCPT ); Wed, 11 Oct 2023 03:37:03 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C677DE4 for ; Wed, 11 Oct 2023 00:37:00 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9a9f139cd94so1084740866b.2 for ; Wed, 11 Oct 2023 00:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1697009819; x=1697614619; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8O8oPKWtl15M441He8arxID+J3pb7XNKVUDjACOuXKI=; b=FEIR9eJqFRNSHZeVsjXUJr8Pl1GWd2t/QK/4N/uBCbBPmhfPNLDwkjbm6ZlWjqNmyk P1LChBqpRjEA+aSCr/glx+VG3wcNbJeIL3jLKyJEZPgLaaL5rzH0l3lQ2ORMMoQfvFon Agw2/z0/CeuIrZOIjqXuKttXPV/jMQ4DQQxEmih1IE8LftvPeTA8Rl3NaFqkr8YByJbA ac8y3OBzmkRPUaj3qUgf+39tkNBeuid6eXXzknzUs4Oix08rGWvC0nmkFTr32cKmAbaz lEnAsnm3UJUAuLm0BWrH1zYHlKUPxDMj2l0TKi4LM/F7aB176uo9mldA3o3TaJnNPzal Akew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697009819; x=1697614619; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8O8oPKWtl15M441He8arxID+J3pb7XNKVUDjACOuXKI=; b=PabzElenpTelDgD3w+dMNTV/pOEgLkkdGmkkFGO5T48ZjJLwzOPV/j3ky4rYl3L6CS 0vSYu6HxAEZjjlflLxBbiS+GMwMS2pIoTSYs8Y6JSlbYcCGpvTASqCKDoHVUXkUeTODL SJrfhjIhaJuuN1HFMjNGOVugIc3tWvbNEl/L5QQ9/QvClgDkkflsw8scEdWxne1sQxxU ztx+7juWYluHrEhrE72NENQtD2BAsY50bP9sv9CpEJIcWtfwKUbXMRAo0UHL8KCcNjPl Z0ZjM4eHlaDwAUHGZsTZ39JTaAfUzXh4msOauRVP10uOkrXB1pfaum9hSW2ls2ffuXs7 wdIw== X-Gm-Message-State: AOJu0YwQwe1I4jo1f7dzaqpC+vDZWeUYOzoDzV1dhtPsYp5w4MbbedCw fHwZHkcKoXPRXS3VdEXocTaecA== X-Received: by 2002:a17:906:100e:b0:9b3:47f:1c05 with SMTP id 14-20020a170906100e00b009b3047f1c05mr16022372ejm.64.1697009818718; Wed, 11 Oct 2023 00:36:58 -0700 (PDT) Received: from [192.168.50.4] ([82.78.167.152]) by smtp.gmail.com with ESMTPSA id l7-20020a170906a40700b009ae587ce133sm9496699ejz.188.2023.10.11.00.36.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Oct 2023 00:36:58 -0700 (PDT) Message-ID: Date: Wed, 11 Oct 2023 10:36:56 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/6] clk: renesas: rzg2l: Use %x format specifier to print CLK_ON_R() Content-Language: en-US To: Sergei Shtylyov , geert+renesas@glider.be, magnus.damm@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Claudiu Beznea References: <20231010132701.1658737-1-claudiu.beznea.uj@bp.renesas.com> <20231010132701.1658737-2-claudiu.beznea.uj@bp.renesas.com> <8226bd48-4297-0b32-c733-2e569114a934@gmail.com> From: claudiu beznea In-Reply-To: <8226bd48-4297-0b32-c733-2e569114a934@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,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 morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 11 Oct 2023 00:37:12 -0700 (PDT) X-Spam-Level: ** Hi, Sergei, On 10.10.2023 17:52, Sergei Shtylyov wrote: > Hello! > > On 10/10/23 4:26 PM, Claudiu wrote: > >> From: Claudiu Beznea >> >> Use %x format specifier to print CLK_ON_R(). This is easier when >> debugging as the value printed will be hexadecimal like in the hardware >> manual. Along with it "0x" has been added in front of the printed value. >> >> Signed-off-by: Claudiu Beznea >> --- >> drivers/clk/renesas/rzg2l-cpg.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/clk/renesas/rzg2l-cpg.c b/drivers/clk/renesas/rzg2l-cpg.c >> index d62f1bc1f60e..764bd72cf059 100644 >> --- a/drivers/clk/renesas/rzg2l-cpg.c >> +++ b/drivers/clk/renesas/rzg2l-cpg.c >> @@ -1213,7 +1213,7 @@ static int rzg2l_mod_clock_endisable(struct clk_hw *hw, bool enable) >> return 0; >> } >> >> - dev_dbg(dev, "CLK_ON %u/%pC %s\n", CLK_ON_R(reg), hw->clk, >> + dev_dbg(dev, "CLK_ON 0x%x/%pC %s\n", CLK_ON_R(reg), hw->clk, > > Perhaps "%#x" instead of "0x%x"? Yes, better, thanks! > > [...] > > MBR, Sergey