From patchwork Sat Apr 8 10:45:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 81177 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp840797vqo; Sat, 8 Apr 2023 05:20:31 -0700 (PDT) X-Google-Smtp-Source: AKy350ZFFdEKqPaT2/r9rMQkyA4bQ79pYLqo11/cvP00w6mLP31FzJy+FA5AvHoHq7foythVjJ8L X-Received: by 2002:a17:90b:4f90:b0:240:5397:bd91 with SMTP id qe16-20020a17090b4f9000b002405397bd91mr2630490pjb.4.1680956431141; Sat, 08 Apr 2023 05:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680956431; cv=none; d=google.com; s=arc-20160816; b=EBlL3le0RgcR6II1B4+gP8Xqz6A2zoME2/BqdSc+byJxhk/ARZNJ4u8t9epXx5cyEn Bc6JGD6z+j8LjqN1QzlogK1XE5/PM2JcF5B/FaiIynN9RdK9seY/1Wi4oqOSp9nEVLFO Vj3U7iGpCmGt99ucGRW6MBqNreizZn336k8ZB4OfZ8UCyrKCdtEWqO0ljd1esKVJMy3v duiOpg8/CqwrecYVgtb47MC6/hMu5rNwRcuKhtYYdGNyW3BdbzwT4arGv6M2SfAEecuJ vLfzN4nbk+zfuc7Tpq/0K39YsUxaOXNPUWebAveFv11abx6DNdg0pzxPQ726fpsoVMF7 nHrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=YFX2XZ6rPTkBPgbt+bmfi2tBwL0d+qePMLiRgHvH19w=; b=HwTTQSG/liTBXvF/G+jaT0FfKqBCnHcUwmyVgIhGD+Z4dd/sdtQ+wLvqoihN8QLWfC piXyJBehbigfIOOYTQ2Oje+vI4dSBKC1d1soNGNIuehewaDWyAMYC7nDzHbeUN+Li9qI 5YpI/ceajtEwzKrnBH18vVBHSSPqPqgGkadBwxsQ0OeeYsYnRBeLVvRgJj1kaYlnEbX5 AYi+8VpcVgXJNBBs2wscl1igb0e33hpZdBH6Ubro8Wc0Y4V3NeB96Chv8YPC/KkAUQ7g tqECZWFNdkjpJ10+hgxfCWxhoOl5xwMOxbbQH/hO8KFFgEJs1PkKLbFs/bdFi+nlKQqU q5xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=35T6t51q; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j72-20020a638b4b000000b0051309268f00si5806773pge.449.2023.04.08.05.20.18; Sat, 08 Apr 2023 05:20:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=35T6t51q; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230193AbjDHKuO (ORCPT + 99 others); Sat, 8 Apr 2023 06:50:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230182AbjDHKtl (ORCPT ); Sat, 8 Apr 2023 06:49:41 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01F4F113D7 for ; Sat, 8 Apr 2023 03:48:58 -0700 (PDT) Date: Sat, 08 Apr 2023 10:45:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1680950721; 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=YFX2XZ6rPTkBPgbt+bmfi2tBwL0d+qePMLiRgHvH19w=; b=35T6t51qir9bQL0EbZWK4k7+FDn+qICCRNJtT/asL9KudsbMZkA16ZROaojmbgOG9AUCqn 1g6+w8g4LP79kfgFqWjVbBcJ4SIg+rZHWY31+ngygHtPgJZmtv7S6l0c9+g8sk4OcE87aF +9Y44UW+HJBWtcyS8vGGlByJ4oZ4WNhrT4jRfETI8VXg+U/HP10zlrZKcCc2W6lAwyT/eT o4CHWuOK6uuVvN8keOV/tsfxrDEn7R5PJRV8A4WJ2UUz6WbDpk/Hymn4zdIiukpWVAJ2ID i+B03blEL5bIc/PkELm04gq38hoqlFJh23JGFjGKd4ubpWn2o1rP4bzsfhEvaA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1680950721; 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=YFX2XZ6rPTkBPgbt+bmfi2tBwL0d+qePMLiRgHvH19w=; b=V4tFp6o6gJbkrfq0Z3t7S3ocgUPxhkE9dkI1PxAoRuyreh/THK9IICjJeA6AMaiyMkY0Ay eWKuXKyhHh0AjyBg== From: irqchip-bot for =?utf-8?b?w4FsdmFybyBGZXJuw6FuZGV6?= Rojas Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/bcm-6345-l1: Request memory region Cc: noltari@gmail.com, Florian Fainelli , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20230316192833.1603149-1-noltari@gmail.com> References: <20230316192833.1603149-1-noltari@gmail.com> MIME-Version: 1.0 Message-ID: <168095072076.404.2128594434310940615.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762610570863914860?= X-GMAIL-MSGID: =?utf-8?q?1762610570863914860?= The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 23c7ff129cf33dee5f1f4fd9fa729ab440e8f1c5 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/23c7ff129cf33dee5f1f4fd9fa729ab440e8f1c5 Author: Álvaro Fernández Rojas AuthorDate: Thu, 16 Mar 2023 20:28:33 +01:00 Committer: Marc Zyngier CommitterDate: Sat, 08 Apr 2023 11:07:43 +01:00 irqchip/bcm-6345-l1: Request memory region Request memory region in order to display it in /proc/iomem. Also stop printing the MMIO address since it just displays (ptrval). Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20230316192833.1603149-1-noltari@gmail.com --- drivers/irqchip/irq-bcm6345-l1.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-bcm6345-l1.c b/drivers/irqchip/irq-bcm6345-l1.c index 6899e37..fa113cb 100644 --- a/drivers/irqchip/irq-bcm6345-l1.c +++ b/drivers/irqchip/irq-bcm6345-l1.c @@ -257,6 +257,9 @@ static int __init bcm6345_l1_init_one(struct device_node *dn, if (!cpu->map_base) return -ENOMEM; + if (!request_mem_region(res.start, sz, res.name)) + pr_err("failed to request intc memory"); + for (i = 0; i < n_words; i++) { cpu->enable_cache[i] = 0; __raw_writel(0, cpu->map_base + reg_enable(intc, i)); @@ -335,8 +338,7 @@ static int __init bcm6345_l1_of_init(struct device_node *dn, for_each_cpu(idx, &intc->cpumask) { struct bcm6345_l1_cpu *cpu = intc->cpus[idx]; - pr_info(" CPU%u at MMIO 0x%p (irq = %d)\n", idx, - cpu->map_base, cpu->parent_irq); + pr_info(" CPU%u (irq = %d)\n", idx, cpu->parent_irq); } return 0;