Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3266171pxa; Tue, 25 Aug 2020 16:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5r+n+drBJbKyoFblRc+6fb+TymsiXbzNWkKcJylwgwTvyMeYMM1HeM9F26bkxcq6F9rpR X-Received: by 2002:a17:906:8246:: with SMTP id f6mr12945036ejx.278.1598398975039; Tue, 25 Aug 2020 16:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598398975; cv=none; d=google.com; s=arc-20160816; b=Tps6dB+wnghySyiOQs6wC/U2r+snv2LpCHalztMOaNzW5xoX2jHr8Y2TKtkpW+Teve OOCiKadfDFVm2wPaAjR99VWRd2FYtLuCf/nF0+CFhHYxYiKzxjBMQza3iOtUXhWzZYb8 T/b+/7Daf3DIGgQw3EX4s6IlNmmkCBBajYuI8PSynbdSNbdvcqGhv2M3t/9u7GJaXTdE VourfTE41214Z9p47+qyBBRVVBciPz/Qs9HsSGRNmx6KvAdpreH4+lovWPxRMd0uUS74 eelprgX7/Y0IjfcUkPjyxSyFDqCPWw0QDH8493stPNhlvVi3D3+ZeIn6/ffehIfElOp6 zZoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=8wmgAG5W2pqZeMqd7LjtnFdAGZkv++MtSBjncFs25Kg=; b=kl7vcFOLnP16KWs9+hfFqZLnqhjcpKelsA8b180hJKb1g0x2wysndcCUECWse3YLvn PSqUbfjXsxVHzAfJCVL0GmuOgvGqwZWTWVDPUaIKb9U/SRFJvwsStX3YJct3FS6hfice +mBdEdqX115M3rQzvZz8ZkzIgojTervGIZseP+/AePff5tBv3r/XKDqeHa+qqQo8/IJ7 zXRvSeX/Rp0Tu11Vw2PnLc9CzJFTCtDPdEklXl+qLXYWdty3NMdtkChqReaNumWsQpfY u6irEFQ3xK+vuJQtwNvDLJS0X7IzqphO8qq6swiMHOC/GCENS7YGcTrUT6kmRjv/mh+w DMmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=218RE5fJ; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f4si284069edn.210.2020.08.25.16.42.32; Tue, 25 Aug 2020 16:42:55 -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=fail header.i=@linutronix.de header.s=2020 header.b=218RE5fJ; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726763AbgHYXlF (ORCPT + 99 others); Tue, 25 Aug 2020 19:41:05 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:53314 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726551AbgHYXk4 (ORCPT ); Tue, 25 Aug 2020 19:40:56 -0400 Date: Tue, 25 Aug 2020 23:40:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1598398853; 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=8wmgAG5W2pqZeMqd7LjtnFdAGZkv++MtSBjncFs25Kg=; b=218RE5fJjak4xqxD8/vygvrv8pWLIRiAxAIwo/jSuJ+XlzUyGUAwl9BH4A+tqEeqTWFt3B j9mt+hnLF5sOO3zF6Ug5mMvPOe53RLq0/z7jyR5r6mmhVOAEd+mFRCtelNgc8ByMebfaSR 2V5gawwYyjU2lY0o35JVq/5DNxLOZvaSrz0r6gpENx7+MhBIHlFGRINmciQUFtAAqdx5Ow 8ZjEL7sLCynzrTEmNeEnbWbgbVLImbLneOK+Uv1o0izyx5UjYN+lSVVsCkGFoFHUv+03Ta oTjb/MCY3vBBrfAURWOmS4a0LgtaYY0kXi6YJzP8HtO8yo5wLvJlv1kxml9i/g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1598398853; 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=8wmgAG5W2pqZeMqd7LjtnFdAGZkv++MtSBjncFs25Kg=; b=VSarBxagrqAGNeUk5aOg076LS54CMsA9p4xMlcT2wkVuGbJuXtxGa3EIRLW4r97Tx3z1x+ wzzs11KHy3jOfeDA== From: "tip-bot2 for Marc Zyngier" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/urgent] irqchip: Revert modular support for drivers using IRQCHIP_PLATFORM_DRIVER helperse Cc: Enric Balletbo i Serra , Frank Wunderlich , Marc Zyngier , x86 , LKML In-Reply-To: <93debe6a0308b66d3f307af67ba7ec2c@kernel.org> References: <93debe6a0308b66d3f307af67ba7ec2c@kernel.org> MIME-Version: 1.0 Message-ID: <159839885252.389.8655544450744275136.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/urgent branch of tip: Commit-ID: a150dac5a8fb711fdc378c23f44bee4546f04246 Gitweb: https://git.kernel.org/tip/a150dac5a8fb711fdc378c23f44bee4546f04246 Author: Marc Zyngier AuthorDate: Tue, 25 Aug 2020 10:38:39 +01:00 Committer: Marc Zyngier CommitterDate: Tue, 25 Aug 2020 10:48:54 +01:00 irqchip: Revert modular support for drivers using IRQCHIP_PLATFORM_DRIVER helperse It has become obvious that switching a number of irqchip drivers to being platform drivers without considering the platform was a mistake. We have multiple reports of end-point drivers not probing because the irqchip driver isn't there yet, breaking the expectations of the users. This patch reverts: 920ecb8c35cb ("irqchip/mtk-cirq: Convert to a platform driver") f97dbf48ca43 ("irqchip/mtk-sysirq: Convert to a platform driver") 5be57099d445 ("irqchip/qcom-pdc: Switch to using IRQCHIP_PLATFORM_DRIVER helper macros") 95bf9305d2e3 ("irqchip/qcom-pdc: Allow QCOM_PDC to be loadable as a permanent module") and leave QCOM PDC, MTK sysrq and cirq drivers as built-in, special purpose drivers for the time being until we have worked out a better solution. Reported-by: Enric Balletbo i Serra Reported-by: Frank Wunderlich Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/93debe6a0308b66d3f307af67ba7ec2c@kernel.org --- drivers/irqchip/Kconfig | 2 +- drivers/irqchip/irq-mtk-cirq.c | 4 +--- drivers/irqchip/irq-mtk-sysirq.c | 4 +--- drivers/irqchip/qcom-pdc.c | 8 +------- 4 files changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index bb70b71..bfc9719 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -425,7 +425,7 @@ config GOLDFISH_PIC for Goldfish based virtual platforms. config QCOM_PDC - tristate "QCOM PDC" + bool "QCOM PDC" depends on ARCH_QCOM select IRQ_DOMAIN_HIERARCHY help diff --git a/drivers/irqchip/irq-mtk-cirq.c b/drivers/irqchip/irq-mtk-cirq.c index 62a6127..69ba8ce 100644 --- a/drivers/irqchip/irq-mtk-cirq.c +++ b/drivers/irqchip/irq-mtk-cirq.c @@ -295,6 +295,4 @@ out_free: return ret; } -IRQCHIP_PLATFORM_DRIVER_BEGIN(mtk_cirq) -IRQCHIP_MATCH("mediatek,mtk-cirq", mtk_cirq_of_init) -IRQCHIP_PLATFORM_DRIVER_END(mtk_cirq) +IRQCHIP_DECLARE(mtk_cirq, "mediatek,mtk-cirq", mtk_cirq_of_init); diff --git a/drivers/irqchip/irq-mtk-sysirq.c b/drivers/irqchip/irq-mtk-sysirq.c index 7299c5a..6ff98b8 100644 --- a/drivers/irqchip/irq-mtk-sysirq.c +++ b/drivers/irqchip/irq-mtk-sysirq.c @@ -231,6 +231,4 @@ out_free_chip: kfree(chip_data); return ret; } -IRQCHIP_PLATFORM_DRIVER_BEGIN(mtk_sysirq) -IRQCHIP_MATCH("mediatek,mt6577-sysirq", mtk_sysirq_of_init) -IRQCHIP_PLATFORM_DRIVER_END(mtk_sysirq) +IRQCHIP_DECLARE(mtk_sysirq, "mediatek,mt6577-sysirq", mtk_sysirq_of_init); diff --git a/drivers/irqchip/qcom-pdc.c b/drivers/irqchip/qcom-pdc.c index c1c5dfa..6ae9e1f 100644 --- a/drivers/irqchip/qcom-pdc.c +++ b/drivers/irqchip/qcom-pdc.c @@ -11,11 +11,9 @@ #include #include #include -#include #include #include #include -#include #include #include #include @@ -432,8 +430,4 @@ fail: return ret; } -IRQCHIP_PLATFORM_DRIVER_BEGIN(qcom_pdc) -IRQCHIP_MATCH("qcom,pdc", qcom_pdc_init) -IRQCHIP_PLATFORM_DRIVER_END(qcom_pdc) -MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Power Domain Controller"); -MODULE_LICENSE("GPL v2"); +IRQCHIP_DECLARE(qcom_pdc, "qcom,pdc", qcom_pdc_init);