From patchwork Fri Feb 23 09:43:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 205257 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp479050dyb; Fri, 23 Feb 2024 01:46:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV4NPK7L7W5bTXcaxwlqLvdvhpzNIe/33F33pxFHLs3CJXycgmDfFSd3r+bVa3HDv9uJfqGJ/quT7noFE20ghDgs7asqA== X-Google-Smtp-Source: AGHT+IFt7w+ZEA420HN5aOYNTUfpgW+UvzwDtjHVWB7uHUvgzrmLrV/3yDiNbUwt3GvNKdUf+lrV X-Received: by 2002:a05:6808:38cf:b0:3bf:e37a:9250 with SMTP id el15-20020a05680838cf00b003bfe37a9250mr1671620oib.18.1708681584837; Fri, 23 Feb 2024 01:46:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708681584; cv=pass; d=google.com; s=arc-20160816; b=XbvG4CbV0/n8DDv7NwgDRLzh3EzThr7XVCY8AtHKcZXJToX14ApYWkXnu/GQbn5ILr pc5MQgo4avWEPyFzinCqOc/QksuIUv8qFa/CY4SB1zRFYd6z0KLCAJU/2Qhb48eyeFsy pJaJGxm2dFVP2aC4SRftKAV0DNIrvkHfvdLc+hh9F8PwOSuGDCMYjPD1fjzXz41F3G8Q oeL6ICZt7P9xV5/CDCkGyhoq2Gr4xgeulI527w1YqfKIXu6C0mfYljQ1zeAb5JNcX+q6 4t5M4Tf+kdExKo4BHVe48Tv3ejCy8UXfhfhPKPvtLCo8Kl8RBhSqJEQ0no2Xk5xgABsR MFcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=dWLbxZOz2VVepFJ76j+S+oXb77wUC0lhraw/tOL0sA8=; fh=546OEPtoZUYjWwSPOd/hX3L3p6biPmSjgTUnSRYaJpA=; b=rH5nDttsYKyvPnHW+eNz8D+eEZ2rGUH9KRlOlNxoBlB3yXWfeEBgQ8dCATZxbvHGly 9EcSzQt2C3GaBjkfwUItyskYh4JNGWTyUKARZMWpNX5n95WvtmHgNU3NG/8VOb5H0IcZ mgITC9aPTcWhVx5hGp1xquUi21juO/oFtwgLVAfL0ao3XrRbnYo1CtAb/G/PdtwP2LDO f/DSmDQc/QFh3eVGBdbmG5Qn0hQ0LQuFupOJOMp/xjIa3rlnqIgTiIvEi6vZhe4r/QuD zohclLsU65poYNf4/qGSCcXQriFZ5UHKfQzavICSsHLL7nYe7r10yO6o4zrGk9mvBdLJ F/vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=G2uWfWUh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-78055-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78055-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o6-20020ac841c6000000b0042dab04d4fbsi14589127qtm.338.2024.02.23.01.46.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 01:46:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78055-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=G2uWfWUh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-78055-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78055-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 897501C2178C for ; Fri, 23 Feb 2024 09:46:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B4E25E3A0; Fri, 23 Feb 2024 09:44:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="G2uWfWUh"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="H/3jTG8f" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DA595CDF2; Fri, 23 Feb 2024 09:44:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708681446; cv=none; b=Be9R0VkXj712htVtW6smO39nWSGsGKat7FXwMha/M079soe/nI3y93iIvhhLemgWLtXBWFo01faaPStZR52XaMYTlthEZTNW5xc1aBqvYYzhZxXhm3AF143EA2HCE1hU6Z3RamCznlU4VBeSuCw8kXjNH8hLE/V3KiL2tadrXwo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708681446; c=relaxed/simple; bh=9dCh/XBicUP7Daf6/HNwo0G0QzLlzPM89+f0jnhuZ5k=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Pth814FpGco3yltqTLMbGA/ZFMVDLgf3pyi7S35U1JnyN0DR+bhJBiaRPuxl8HSosgistCeAa8r6ZrOwdXgc8hPSIyoNNEzKwmhsh6Y2ILgLCY4Zg+AukWrT7c4EpXZ9lPIoBcas+LPOpLqBEWDjQ8ecY2OKAtVsVgDQeZe4tg4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=G2uWfWUh; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=H/3jTG8f; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Fri, 23 Feb 2024 09:43:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708681438; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dWLbxZOz2VVepFJ76j+S+oXb77wUC0lhraw/tOL0sA8=; b=G2uWfWUhRPLbi6bBs6INm6VnTdYe4SDNWlDl/tL8upfW4eRBe4iAi4cLSHz+MyFMa2PgGZ P2yj4O93ApS9TYclEL3w2t7EmJIIUpxfs7qm6M2QDdOjfdRVi12VljhSGIUTRr4wbwV6AP nglX8Lnayn0NUbTjZHeEitrRK3lpv+xZwsjSN1aICtWjjqKVjm0lFlFhZSfcSazCc8Ov3s c50uJtk5GzJQeXlFQN+DpLI4zhb1UMifew2DDuwDzQ9QxR8oxRJk5vgkYLJ27U7Kct+eOT gWlInxq+JYU4fN5qb7uot5ZS4lgiJHn/elvGlGEYb+O4xuqydBn+FVJ7ag6u/Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708681438; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dWLbxZOz2VVepFJ76j+S+oXb77wUC0lhraw/tOL0sA8=; b=H/3jTG8f0G4GioXa8SkyHqbfVz4gXjS7J8rLC92x9ARvcGoxEZEfDSwGYDRtIyV7TMrPPJ uRs8QEVYZ5fTjfBw== From: "tip-bot2 for Anup Patel" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/msi] irqchip/sifive-plic: Use dev_xyz() in-place of pr_xyz() Cc: Anup Patel , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240222094006.1030709-3-apatel@ventanamicro.com> References: <20240222094006.1030709-3-apatel@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170868143763.398.16716590973406571859.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791591596950910252 X-GMAIL-MSGID: 1791682501547559064 The following commit has been merged into the irq/msi branch of tip: Commit-ID: 25d862e183d4efeb5e8b9843d783c90aaae4b14a Gitweb: https://git.kernel.org/tip/25d862e183d4efeb5e8b9843d783c90aaae4b14a Author: Anup Patel AuthorDate: Thu, 22 Feb 2024 15:09:50 +05:30 Committer: Thomas Gleixner CommitterDate: Fri, 23 Feb 2024 10:18:43 +01:00 irqchip/sifive-plic: Use dev_xyz() in-place of pr_xyz() Use dev_info(), dev_warn(), and dev_err() in-place of pr_info(), pr_warn(), and pr_err(). Signed-off-by: Anup Patel Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20240222094006.1030709-3-apatel@ventanamicro.com --- drivers/irqchip/irq-sifive-plic.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c index 7400a07..892666f 100644 --- a/drivers/irqchip/irq-sifive-plic.c +++ b/drivers/irqchip/irq-sifive-plic.c @@ -3,7 +3,6 @@ * Copyright (C) 2017 SiFive * Copyright (C) 2018 Christoph Hellwig */ -#define pr_fmt(fmt) "plic: " fmt #include #include #include @@ -371,9 +370,10 @@ static void plic_handle_irq(struct irq_desc *desc) while ((hwirq = readl(claim))) { int err = generic_handle_domain_irq(handler->priv->irqdomain, hwirq); - if (unlikely(err)) - pr_warn_ratelimited("can't find mapping for hwirq %lu\n", - hwirq); + if (unlikely(err)) { + dev_warn_ratelimited(handler->priv->dev, + "can't find mapping for hwirq %lu\n", hwirq); + } } chained_irq_exit(chip, desc); @@ -401,7 +401,7 @@ static int plic_starting_cpu(unsigned int cpu) enable_percpu_irq(plic_parent_irq, irq_get_trigger_type(plic_parent_irq)); else - pr_warn("cpu%d: parent irq not available\n", cpu); + dev_warn(handler->priv->dev, "cpu%d: parent irq not available\n", cpu); plic_set_threshold(handler, PLIC_ENABLE_THRESHOLD); return 0; @@ -477,7 +477,7 @@ static int plic_probe(struct platform_device *pdev) unsigned long hartid; if (of_irq_parse_one(to_of_node(dev->fwnode), i, &parent)) { - pr_err("failed to parse parent for context %d.\n", i); + dev_err(dev, "failed to parse parent for context %d.\n", i); continue; } @@ -500,13 +500,13 @@ static int plic_probe(struct platform_device *pdev) error = riscv_of_parent_hartid(parent.np, &hartid); if (error < 0) { - pr_warn("failed to parse hart ID for context %d.\n", i); + dev_warn(dev, "failed to parse hart ID for context %d.\n", i); continue; } cpu = riscv_hartid_to_cpuid(hartid); if (cpu < 0) { - pr_warn("Invalid cpuid for context %d\n", i); + dev_warn(dev, "Invalid cpuid for context %d\n", i); continue; } @@ -525,7 +525,7 @@ static int plic_probe(struct platform_device *pdev) */ handler = per_cpu_ptr(&plic_handlers, cpu); if (handler->present) { - pr_warn("handler already present for context %d.\n", i); + dev_warn(dev, "handler already present for context %d.\n", i); plic_set_threshold(handler, PLIC_DISABLE_THRESHOLD); goto done; } @@ -575,8 +575,8 @@ done: } } - pr_info("%pOFP: mapped %d interrupts with %d handlers for %d contexts.\n", - to_of_node(dev->fwnode), nr_irqs, nr_handlers, nr_contexts); + dev_info(dev, "mapped %d interrupts with %d handlers for %d contexts.\n", + nr_irqs, nr_handlers, nr_contexts); return 0; out_free_enable_reg: