From patchwork Fri Dec 9 14:01:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 31756 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp794615wrr; Fri, 9 Dec 2022 06:06:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf6q6fEmph12ImjkfyCSt7rvFZM9o5dMDOHlOtMmsm16xBbQCTNodsbp3hUOd1VVY7YuvWv8 X-Received: by 2002:aa7:858a:0:b0:56e:705e:3608 with SMTP id w10-20020aa7858a000000b0056e705e3608mr5342872pfn.31.1670594809058; Fri, 09 Dec 2022 06:06:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670594809; cv=none; d=google.com; s=arc-20160816; b=bDBjgwpaL6JlsCGZQxmZFydo7osOfLqrUpM9jnObykbl+tw55zUk95Uyje534LIiqb +5x19lLMS/3h6w6sDif2be1V04mN/mbicVkJV40gUI1ndhZVdQYx/qxT1vBeNQQTlQ4U 74oPFWZAiXLEO3sS9ZUjuhVzOjPXP4ej1z5TSYMD80OF8f+sfHrCMjP5KOarnPtISXIa uNxL8s/7A7WRHu+AagazmS88FTL3W4w5/MuUYf/nIAlxWzB+2vRdDijVNBOqrj9DGgaa +uAMlMoL1jHJ/u+oNgmdB2kWwDyP5dgQ6gWTFDdlbfJDfHwdTbuiC9juT9p342bjcGts 18sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=s4/ZtNgD94wBCnDtH6rUcAaL0L1ocdWfdSs2GB5k+9U=; b=K8WDKRrhvXppXUNIQnlKXT44JyLfeNzKqOAmsSBdBzUTa1a9qWLh6MHA7Uvy6JueJ4 y3fWDRvlN5PeBSCCODXMJmy2iqhfgHd4bwvrdgjcIETTT8inRExBKedYhVtCKMuP/Cek hpGKmf2QBj1Z5uyqhfIg1jRelysD3rVbCOGAq/VerauqjHnCTUo+L5qczXcRO2ZRPazZ hjt/pdWBW6zN98OLrOspmc9fseGSZJZR8JSZ6ekyqp3A+MzoYgoLA44lhvIQyGvc8kFQ Fktj0dJMGY/Ud5vVfWyG1Yj5XqO4IISbf/wlx5mXlngjDKr1FauIJpn6h1zaZMMSvFqP 2yMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TtPqP036; 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=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7-20020a056a001a8700b00574250bd73dsi1790055pfv.321.2022.12.09.06.06.25; Fri, 09 Dec 2022 06:06:49 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=TtPqP036; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230074AbiLIOFm (ORCPT + 99 others); Fri, 9 Dec 2022 09:05:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229897AbiLIOFT (ORCPT ); Fri, 9 Dec 2022 09:05:19 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 496E678686; Fri, 9 Dec 2022 06:05:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B3185B82880; Fri, 9 Dec 2022 14:05:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FE20C433F2; Fri, 9 Dec 2022 14:05:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670594713; bh=N1BLDRjjNKEXoxfIcTMF9Q00bHff3r4yykAh+872CX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TtPqP036tkrcpv8Bt8ZY85ddGfPygznR0oI4wrG4ml4cOxlh6GVIgC5zOR8M9UJjh Uh9O2pzEW7CpDacllUilQyJnITlv2eyNBoQN1j0hw+49TBfYAoMKTzggSQVSkG7p4b T9cehDQjtLS2DQTRdBEy5zRBVLsirgEKLn8emPyVRIS/0zEWbYxJW7lCNfQO/VMoI6 yAC9rNvM6NGAP2CcipblH0bRWIegOw9ze3sAVakaSO3wSe4iCsZaMOfl6AWoQ7q7kM mQU2FNCRbCIjg4YF8g4WPIYIwV36kZ3orKASqrvbFDDlQb15WEizOxfA3appk0sg5R hFHPmeEi/25gA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1p3e0I-0000RR-9J; Fri, 09 Dec 2022 15:05:30 +0100 From: Johan Hovold To: Marc Zyngier Cc: Thomas Gleixner , x86@kernel.org, platform-driver-x86@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v3 02/19] irqdomain: Drop dead domain-name assignment Date: Fri, 9 Dec 2022 15:01:33 +0100 Message-Id: <20221209140150.1453-3-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221209140150.1453-1-johan+linaro@kernel.org> References: <20221209140150.1453-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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?1751745622751393557?= X-GMAIL-MSGID: =?utf-8?q?1751745622751393557?= Since commit d59f6617eef0 ("genirq: Allow fwnode to carry name information only") an IRQ domain is always given a name during allocation (e.g. used for the debugfs entry). Drop the leftover name assignment when allocating the first IRQ. Signed-off-by: Johan Hovold --- kernel/irq/irqdomain.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index bf67de1733ee..fe9ec53fe7aa 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -593,10 +593,6 @@ int irq_domain_associate(struct irq_domain *domain, unsigned int virq, mutex_unlock(&irq_domain_mutex); return ret; } - - /* If not already assigned, give the domain the chip's name */ - if (!domain->name && irq_data->chip) - domain->name = irq_data->chip->name; } domain->mapcount++; @@ -1118,10 +1114,6 @@ static void irq_domain_insert_irq(int virq) domain->mapcount++; irq_domain_set_mapping(domain, data->hwirq, data); - - /* If not already assigned, give the domain the chip's name */ - if (!domain->name && data->chip) - domain->name = data->chip->name; } irq_clear_status_flags(virq, IRQ_NOREQUEST);