Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1470522pxy; Thu, 6 May 2021 08:36:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCT51siDjUFUUZuKs7W416fQ/cDegwZ1ahjYT5kIRXuVfFKZ3EnZphZWpNvAvnj0eHjUuu X-Received: by 2002:a17:90a:fd88:: with SMTP id cx8mr5316124pjb.190.1620315364323; Thu, 06 May 2021 08:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620315364; cv=none; d=google.com; s=arc-20160816; b=QmDovlIcuoNEkOLzVXHaoYFE70Qoz3zI6XrDL2xCtup+0zj5Q1wVCBMwRYd5guGKZk BYeBL0wfrHF8VGLgeNHtz2yP+LcTyRJsM885EdbiNeZFWLd6ED3SQFJdB+afD2Qyo2CB hWlFaggrR6l17q+h1NjRakKMB6S/khHbXQvFqkC8zcAVCOWvYBqaBJ0y2A64VzSzJG+U FlbAnYy0HOt5o9DwnjMoadx+n8V3m5JbyNJGXe3aIKbe/pQXNhSrxIIIJHsxGfdxbBUS CCS7bEnEJHUtWVyoCueFZFwtk+nd1LzK6WshVc14CZBGY4srgnzDc1DcJYVmElzYcOz3 2NQg== 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=/OJRZ1Bl7p7tGJShkPLHTGnIWIyLBhcE19DqCn8zrpw=; b=mkvdH/jwuCPSBByf4EzlrwJfcHT0+r0xDr18nmqeLpe09G4DybwP3OUDjbyu2QhR3j fdxLHzkTAOMqPX38MdzafAdlwa5/ZZ+S0moBeeODv46i3bPYcOQGIqJQ+6gkkCsOu/ZH sQ9wu+mtk4bSgGLUsngzXYS4GHt7cyAablSCOFnofKrq4NAFQf67cyk1OdK1aHU7VbZm tLGnitH+dwPAVHWSM8TYqd2uE64VNn2cbvyV+NNr+7WR9UhMXtvYj6V8JaLmgE/NT9V9 jKREbeE5a5viWm5raeBJHhIg1FMkITrxtKRZuETmArVwHkEZqLFef+fw8GgfpIr8adv8 QGYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iWR1wIeo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si3431486pgo.287.2021.05.06.08.35.51; Thu, 06 May 2021 08:36:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iWR1wIeo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235258AbhEFPfh (ORCPT + 99 others); Thu, 6 May 2021 11:35:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:45970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235453AbhEFPdr (ORCPT ); Thu, 6 May 2021 11:33:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C4FA4613EE; Thu, 6 May 2021 15:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620315168; bh=zoiVY2XI6nExpUKOXT9A0hPboS1rFrKCjUz6eR0Qm/M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iWR1wIeo72aTtyzz5OLdJt76iqVyuXbceGj5Q/uy61i57HtsZ+9M/68WFGLZVmVdL lP6mcXCe/m7gYGy7wPMO/0uGwUM3eWPvwFi8Bvvqo5kOYIN8n/2OFZr/yrF8ykeLf6 rFcq87GBCQzC7jqHlwRwGhQ9ejlGRq8hzt6BI9R9s2XCVZy+jBl78cTAgE2uiBsICa 9OPd4hsI5zUrA/P7U4JWDEpfku/xLArJrGEnRUIyysATpQ8hbiAkHJC/wWEGVqFqHQ 9X2W8YwGV4iKY0ApEIqMLY0vyw3jVWpXBwFGhgIg9MDP7m7JmkDOj/JOQxXg8O2Ys2 WDlvbGFWcNYlw== Received: by pali.im (Postfix) id 7BDF98A1; Thu, 6 May 2021 17:32:48 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Lorenzo Pieralisi , Thomas Petazzoni , Rob Herring , Bjorn Helgaas Cc: Russell King , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Remi Pommarel , Xogium , Tomasz Maciej Nowak , Marc Zyngier , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 15/42] PCI: aardvark: Change name of INTx irq_chip to advk-INT Date: Thu, 6 May 2021 17:31:26 +0200 Message-Id: <20210506153153.30454-16-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210506153153.30454-1-pali@kernel.org> References: <20210506153153.30454-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This name is visible in /proc/interrupts file and for better reading it should have at most 8 characters. Also there is no need to allocate this name dynamically, since there is only one PCIe controller on Armada 37xx. This aligns with how the MSI irq_chip in this driver names it's interrupt ("advk-MSI"). Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- drivers/pci/controller/pci-aardvark.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c index 08f1157e1c5e..c50421af9d06 100644 --- a/drivers/pci/controller/pci-aardvark.c +++ b/drivers/pci/controller/pci-aardvark.c @@ -1022,14 +1022,7 @@ static int advk_pcie_init_irq_domain(struct advk_pcie *pcie) } irq_chip = &pcie->irq_chip; - - irq_chip->name = devm_kasprintf(dev, GFP_KERNEL, "%s-irq", - dev_name(dev)); - if (!irq_chip->name) { - ret = -ENOMEM; - goto out_put_node; - } - + irq_chip->name = "advk-INT"; irq_chip->irq_mask = advk_pcie_irq_mask; irq_chip->irq_unmask = advk_pcie_irq_unmask; -- 2.20.1