From patchwork Sat Jul 13 08:45:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 3214 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E29C840F45 for ; Sat, 13 Jul 2024 10:45:46 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-57d3eca4bb7sf3939544a12.1 for ; Sat, 13 Jul 2024 01:45:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720860346; cv=pass; d=google.com; s=arc-20160816; b=ip1ZYQvnDGACCwFSl/23b4V1aYXOod+0+ScTtISt8fLiFlwbQvnYvdPH5MJuUDMIv6 GVik3cKgZJzAJqQfr0m5qg8wj4mcTm9grAA4xPNn7s4L1vdWV/0FyfHIAvOfDVUIyIlB FmdOHYrXfFB5dsRMnjN51ByRhFq9xUts+lFQ7FRTPeZPOcMwWrw34WovaBELkrpv2Auk eP410epnDDxvaDLQh7h8/3m/CmKTROl2ofUoYMFSmc7kpdwASNkLVSRPUAZZKUtpur6S SKBgwru9OSJ388bnFcN91xQ4NbZhdHVNsXptn/WhFBa/9KJpSyCF+iZdjnw438zKIept XthA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=knY4D99gkaJx4Ut/tHtwX71I9JGiN7dVwVq0Jqes/jo=; fh=s6rLb60hAMJx7KrZWquIlpJ9OpzbpqsdOC+6aMSzYTQ=; b=hAxnEYBShy8ZcvESpuASCV6nLTCKBDDGCBAkPoNxISQBrcZEZXk4uSwb7w19DW62j5 OCDju6KZgQVEVwiAdMRO16NTLmw32GqizHBsSqZA+tBlunkIfRo2T/4w1CttBpw4024V vkLdQUmuWUr/7v0Kp3ti8mIVmq7v2bVAXTVKfzF+wVoLRQUNnMEIjwzCyLPJ6Ms6uUAh EDEt1Tw5IxhDtYzLtVKZOx9htDMVTT/XAnRwUIbqkSyzfgmlvS5/XBxcVA4ARJUIj6c8 14XlxtIiWjjRfxfqJOCkgdcCoBAOhE5pLSZathGEB8hAiEiSTHSUQMFwAnzqzJskHL72 PaQA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cLeLCfVg; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1720860346; x=1721465146; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=knY4D99gkaJx4Ut/tHtwX71I9JGiN7dVwVq0Jqes/jo=; b=UCk55lVjq65xpnRFqV0UjhC98gWlNzA3XsNu+47c4n719ZewzrsmF+HBYVnBpJoO4m FREAlF/VgtpD4c56UPQa/w8dKlN+px6L1O18XZB91/WTm9yEbwm1gmJ25seuLYPrHPY7 cvMNxkdKnml6oXJ7UtIp8AIp72ZE5an8QXnIQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720860346; x=1721465146; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=knY4D99gkaJx4Ut/tHtwX71I9JGiN7dVwVq0Jqes/jo=; b=ObMQMXxrdKq1NR2BTtNsk208YbrKmO2DKw3V2CRgof1ZQ3IJ3MM0PWWMVwhqqEWFqO uqRU7h2beUHGBR0QJqq9z5IB6nPomTkc4m9ZxC94Tq3LLtt2dP8pRT6JEZNy+d+xSe3H RDa5ES7nYoknWPYHGnQyKEFJIHKieKB1UWBC+7GLvz/J0XPbQ26fmNV7ApnJlt+xJbLs 75rQVmecQdH0EsFxdGWAbUwKxaNxDPol+EECx4ZQD2irYUHrD3B7MdhvGVnF5ywopy67 LawV4tgufuxC4FRqrBQrRGpMfl91/8qdUMj9MSSu5QcGKX0Z9hdSEwTYh4h762vQHXwT VxBg== X-Forwarded-Encrypted: i=2; AJvYcCVwYXjYwnQbP0WGs2IVf6GLV6QDTwgVXR1zUQ7LRqMzMkSw9lZZ62oVByvBkWOLjqofTA+4RK9Op1dQ2J4Zmmlxtur67dXppsGybJzp1w4/UsDuj+yvVgifwx1oMw== X-Gm-Message-State: AOJu0YznASABPmRYl94qt9b3tUK/8H6JbZHiDNYVTRRVbCUm0y1e7K6l LlokXXLQ9sTA7gFQl/bxsipZyRR8X8zAqBWFpQ6mvYGMud0Z7MDnS405fxqGgv4JfA== X-Google-Smtp-Source: AGHT+IHbhgLVXAISlaMPNkeLfR9SVMJxqZhNFbpBFz9+qeo67fcIoozq2dsDVMFDFfKFc+Q3MP+olQ== X-Received: by 2002:a05:6402:34d5:b0:57c:7f3a:6c81 with SMTP id 4fb4d7f45d1cf-599642c3368mr4405094a12.8.1720860346557; Sat, 13 Jul 2024 01:45:46 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:c84e:0:b0:583:9e8e:cd8c with SMTP id 4fb4d7f45d1cf-5982622465cls238085a12.1.-pod-prod-00-eu; Sat, 13 Jul 2024 01:45:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUDWrMXAE6VGPXHpRXULnkzF0DFwB7VJhkGCUGQin20grqud8BzKol8A3CRtt1xiiKMc/3I5giFrXezJpXdKjQ5GUg7nHI+K3gy5kG5oBTi6sfT X-Received: by 2002:a17:907:7f14:b0:a77:db04:8ceb with SMTP id a640c23a62f3a-a799cc6ab6cmr484477066b.19.1720860344931; Sat, 13 Jul 2024 01:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720860344; cv=none; d=google.com; s=arc-20160816; b=ke6LRoalKhfwjvhqOuqksqGuTVSmt7eDS5vzOWcaPMEsNFszWU+s35dfDWspJ2qB7Y RfHGkMEOKhXMBy43tTpKT86rcQLtQQ8Goo01jlUUzhO6rrFRtmBARwnh6nuhB6IfSiJ2 Dzs6B6SbKxjuxFuK5uRdnxBGTlEfzzX5Ntj0hkbp0OXHqNb3iFY+76sAbIPmeOrjHPIu OPcQeaEdawG+cth1Jg9g+v8tGSIJtXyVaCHrtUI1De7pc+j0YUR+93R1K+/9KL4kGxGg 9t8tO1KEE2a6oQyr1/5ZTKn/Vopq32I904VKdU7gFrnNs/G+RUgiSEseNjlRxb+twm/T 3lEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=foWmJWDioSf02GceU1FIQIyZLcR6DFpqNRRaCaq36Ls=; fh=JdvExH7dJhxLyhv9DCalmioomCM9DAPRDwahTLtixsA=; b=L7m155ULI5qWZUOCU6amC50rQDBGtS5C/L2VZ1oDKBlaVkVI8xGr8wmi1JUsdaO2YS YwElCezmhVZwHo8yiuci7Ckh8RtRtwQpKMQI//mIu0RgLsj9USQ2mSVgEZOQWFUHcwD0 3mMlooFX31haw9epRs9NqsYTjlDKDTviBS01zPi3wGezodi8RHvB/a9Ju7/uzcd2Ll/5 5k2PnIonUuDgT+2FsvUP2UDS64uitrc0HSMgUIVbRrrxh6MLrMHLMzwNdiu4xPTiocYc od/r/FjZNPeQGSzkVWIaNqVdtDefh/EjBlLVqoUTulSqm/hxlTz2Q53uf97dtlIqByZo Y7bw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cLeLCfVg; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a79a0ccf267sor137769266b.1.2024.07.13.01.45.44 for (Google Transport Security); Sat, 13 Jul 2024 01:45:44 -0700 (PDT) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCU63elKC6OTTR/mVNyLyMskWOI0G2EGmY4YfjP3smqcbCWa0nNwOb7GNuhxnu/e2OffaLn697ku8JC4d76tbPIQMXCL4xMc1ZVFS1ZS2+7sGEX+ X-Received: by 2002:a17:906:fe4b:b0:a6f:e7a0:91cf with SMTP id a640c23a62f3a-a799cd005ddmr431662066b.24.1720860344481; Sat, 13 Jul 2024 01:45:44 -0700 (PDT) Received: from panicking.amarulasolutions.com (93-35-128-17.ip55.fastwebnet.it. [93.35.128.17]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc7f1e20sm31483966b.116.2024.07.13.01.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jul 2024 01:45:44 -0700 (PDT) From: Michael Trimarchi To: Michael Trimarchi Cc: Dario Binacchi , Patrick Barsanti , linux-amarula@amarulasolutions.com Subject: [PATCH 08/21] clk: clk-uclass: Print clk name in clk_enable/clk_disable Date: Sat, 13 Jul 2024 10:45:13 +0200 Message-ID: <20240713084526.922537-8-michael@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240713084526.922537-1-michael@amarulasolutions.com> References: <20240713084526.922537-1-michael@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cLeLCfVg; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Print clk name in clk_enable and clk_disable. Make sense to know what clock get disabled/enabled before a system crash or system hang. Signed-off-by: Michael Trimarchi --- drivers/clk/clk-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index d768e5ad2e..76f1026164 100644 --- a/drivers/clk/clk-uclass.c +++ b/drivers/clk/clk-uclass.c @@ -630,7 +630,7 @@ int clk_enable(struct clk *clk) struct clk *clkp = NULL; int ret; - debug("%s(clk=%p)\n", __func__, clk); + debug("%s(clk=%p name=%s)\n", __func__, clk, clk->dev->name); if (!clk_valid(clk)) return 0; ops = clk_dev_ops(clk->dev); @@ -691,7 +691,7 @@ int clk_disable(struct clk *clk) struct clk *clkp = NULL; int ret; - debug("%s(clk=%p)\n", __func__, clk); + debug("%s(clk=%p name=%s)\n", __func__, clk, clk->dev->name); if (!clk_valid(clk)) return 0; ops = clk_dev_ops(clk->dev);