From patchwork Sun Jul 14 07:10:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 3240 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 17AF6412C7 for ; Sun, 14 Jul 2024 09:10:39 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-59c335f48d6sf308747a12.1 for ; Sun, 14 Jul 2024 00:10:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720941039; cv=pass; d=google.com; s=arc-20160816; b=ioEAoy7yDo8fxzgYJH+wB6VjQzP8AwMtLQeXbM/Evn+uAyoDfX1i6wMT9e9evPx0eU 1PCDAwDPgoAw7ufSyipywcBjdp8ghJRSY9OZinXPqh0l3N09zlNdyDpBrd65kGgmdqgG 3ybEkuCGf2749E2Gfoh+azv0HqcFBtIkYgkLXM31djxG9iEctOpFDPUQHmHrHDfKCTuC dCJcq3RzTiHLKEpQA2jPKqFn1iePZKmtGradDYSpNLH+tXHIAsPxtF8NpjA0KZt/gWRp ArXHP+LrusrLxbLNkzwiMfM/2q/L/tt6+p6VW1pp9Q9DcK8yS+vaxQZo7zdgFKCR4Mpn CWmw== 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=3fkyGyCplEz1JH2p74T9JiRzbLeUqyRsuwaYj6eK5g4=; b=aTJS752RJzHoYCLebWkA4RpeK17dNHBq3wY/gp+6NlifNFFIiT/bbUzMCaDZdLxz4K Z040OF1C7uDusJzFitX1QSU9MMGDQYjCkb7jqdxDVSD+rKZt/0rOsO67ycdIShk22D1Z Gob3ctQwGFXaVd1DvqKR7jcXZHfj3HfcOCHMwVpYAK16zAzgmboR355dYvME20Z2hb6u qsR27X3UoG+CCvWmCIiJ8uwhFXCIsSAVsfJ3KLMf2XUzKY8xGvB3NbqPhIwNgoczSQFe +/ydDxmRsMRqPn2ieWYhfXGbHRljOpokPS/yuNy4fR+NL06jQZMTrd/YtBzMHAUzx+/K pWGQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="S6/lnFsW"; 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=1720941039; x=1721545839; 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=rbxwQpxJuko/G0ZYM3YL3nbIM9ae/9/aVKYVJqThjwZvKAFUclwDsW/ZswN2Cr/D4G /fAzEfAwehH2ifuNAOlpSNhlcqGDz+1sLs1YCfwH7fr/XuIA9v/geU/0v/pKOAs+WfTa b9zXcQNA8LjwI+cwOBgIgbUEFIAzAIilT/hgU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720941039; x=1721545839; 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=OVlBtz09JkVlvuZi4DLrNcXdlfKSRonQ5Qoxemq7kl8sloTsm/7hyfcVcZLBfy/wJv MVJeqchMLVIlCTQ/+WS2icIF8i0f+7oiAnA+D6lWpmaF7jsLTSuIk2bMrCw8x2B52F2p oAJBd1brZ0RAn36G0h8F26FR0eQkeTmDbMN8qacgtbUgwXP5S4fnlfGw4zBfv/r435bC M6B02XEtgTtOnqdWhgykepw3uY/Gwx1+pZAXkW2HQDz47Ui2BjXlJUEzVHbcRWOR1tLP jxhZ8DKcmX7v9te3u0vfRbC+k45LUy9YK/qc0hqhDdK+uTiSkn4kACGXQNzuM/ZdGMb2 h9JQ== X-Forwarded-Encrypted: i=2; AJvYcCUzZ5voRInOS7qSKf3Myi52/2r/zlMzO9Qx4MHZZ3f2bvH5fTy455nRGBN/p8LixB4WzqJWb/uNybp6vNTHiw0a5oE2N7Wh1GpXvjDIozaaDydF+qCoS8P5JrtAlw== X-Gm-Message-State: AOJu0Yzp7eK8e94l80xtxm6PIcCqoJS5NXCsnOqyVs54Fniml/QGSkdq D7YlgSeOY9DdT4bOZba1SnQEw61N/dap/ZJ1zkwzBoo+2LShKBAMSE/6Y88mF0JCFA== X-Google-Smtp-Source: AGHT+IGbOKW4nIxEmypB0hfr/tBouC2oqNDvujBknRe/eTVHIXS/GHyTIxEjQTDzfRjGT4ul2Z730g== X-Received: by 2002:a50:9b42:0:b0:57d:2659:9141 with SMTP id 4fb4d7f45d1cf-594ba59f968mr8706143a12.24.1720941038760; Sun, 14 Jul 2024 00:10:38 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:48f:b0:57d:2188:f507 with SMTP id 4fb4d7f45d1cf-598267117b9ls1771875a12.2.-pod-prod-07-eu; Sun, 14 Jul 2024 00:10:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUGwcboc/nA0RTkZN83ETGuIAdYowEdx2+N4v8J7I/nKzx9q8eGiZaJte367fwSIxbKDQFJCmrMJbnsMqQRCVr78Y/pwTzpU6KB3rq9qVwFmORS X-Received: by 2002:a17:906:2450:b0:a71:fe3b:8ebb with SMTP id a640c23a62f3a-a780b6b1fb1mr1018374166b.24.1720941037072; Sun, 14 Jul 2024 00:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720941037; cv=none; d=google.com; s=arc-20160816; b=RkQTkiI/hoSPbUyhXpygRMAK7TGVyhdhuSbWo4V8XpK0DDvuMdBJHUPSGn9cc08i/i 4KSpxzX6KUyZEw/3wjB2In9xAogfBxhKju/tfS7n1k9q1TcjjNykrUxBs5WpHg8IOURt wMzDLvqrGqIAvNbpLzl3bzE+/fNTbzHJ07zMRM8ComzhRAm3fm9vONXt07aN3O+nVICv SZMGcTidYMYyeGkU3oArKZyY5nql5chHiDAopq2fIWbM+VKmgKMnNXbiABQzljHVCWji 0ERB5GWjD7A8UamaPRi3MsXaemNp8jAj9AQ9W3UzKtdfEUxgu+8XViJELrorJJ04rKjk a9Sw== 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=JzdLna/M+50CS/brKgh6oBGUy1h0z82T+L0ucZLijI0=; b=SB5tUE69MTQivHCHNyCx0K8WlkDj8MmwsoI7j41gqjn+z31pW+V7vjZxYvC9/ODiWP ywe2WdsWI9y0+ACBkPEIFMnQbGfg7x0DF1OaNBdF/CIvTY6JTUkBOk2RSL87NrLJls4F kCqQvdzL6jUwu4Qgbi3/XW4x8uBMf6v1/wPWkXT0dYH1MHzDiOYQkBqAL9etjq6J7daP nGtvjcnBoGrYi6eSKWFKMdzMKat9tvo7G0AekzfP2gkXk5V440lo2jSmdUXdH6+/Mp80 SMLMGP4TT7PAgArqTjBWCeowtvv3E19fIISR+qdYVx46c7KoZF7Pb1aouzOhWseT3QeO F2Cw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="S6/lnFsW"; 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-a79bc5892a8sor39969566b.1.2024.07.14.00.10.37 for (Google Transport Security); Sun, 14 Jul 2024 00:10:37 -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; AJvYcCUYox4IQUjsO376F1//9KWEGJZneC3HBDrdfTqD6rbpU4LtQnD2URdLyw/WkviZR5aWtkGtdQYSA1/lerbwSmXg7qABek0l7F51Ug6pYM2wY/D/ X-Received: by 2002:a17:907:7f23:b0:a72:4b31:13b5 with SMTP id a640c23a62f3a-a780b88664fmr1303718766b.54.1720941036677; Sun, 14 Jul 2024 00:10:36 -0700 (PDT) Received: from panicking.. (93-35-128-17.ip55.fastwebnet.it. [93.35.128.17]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc820d52sm104950266b.214.2024.07.14.00.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 00:10:36 -0700 (PDT) From: Michael Trimarchi To: Michael Trimarchi Cc: Dario Binacchi , Patrick Barsanti , linux-amarula@amarulasolutions.com Subject: [PATCH 08/25] clk: clk-uclass: Print clk name in clk_enable/clk_disable Date: Sun, 14 Jul 2024 09:10:06 +0200 Message-ID: <20240714071023.10417-8-michael@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240714071023.10417-1-michael@amarulasolutions.com> References: <20240714071023.10417-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="S6/lnFsW"; 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);