Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3419972ybt; Tue, 23 Jun 2020 01:40:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBmJhoi3XxxIlls5H41hTc3Q8KD03GeqlKt/yDjqq2k0yfLYE7D1HAEIoZ5cSn1cpoT6GM X-Received: by 2002:a05:6402:1c8b:: with SMTP id cy11mr20282680edb.122.1592901602844; Tue, 23 Jun 2020 01:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592901602; cv=none; d=google.com; s=arc-20160816; b=D88mnuND3XDEu3E6iV+DNo9PUaJEEmDAz4kX0UDxT2zQ0ruRQls3UK+rUs84rTP69P fjCv+MaeIJh7M+JLsb5xecQRW7WD9iPIXjT0KHmHD3Edbxjdb7kyJrjkPXRmvnQpzuHm 3S9LO6BcS1T3Rhct88sIjCXX4jGiNHYrjzVPfPecUQASVImts/LjUSGrLGY5PQRg5vwK wFDX8E3kr9AP+OIuz3vW3zLQZ68ZwGy2fIB5b1XicBUg0dPea7k+dC6umNkkEvD6GNl0 NyAWYgxG410XHVf8JUVOH+E5Hg56T6IMPtHsdBDdJYwDP4MwushrC7SB0kHNdnXx+aLB lM7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=tomAxptJeXCcStzrOnkT+XPgiy+F+X7bOXPkcEyZqSc=; b=sB8kQVKIhbN3WIiXEpy1bSIaa7wh7qvRdE2I23llALqF1eEnr6r6/JFVCdqBI5ckVq ZiPdO0eOaeG7tCTr7VLcj1JRA0ay9fcorsgZmGESTLMM2VNmCvEEYRjP7x7dATPxa6YV hueQAzvO1KYWBrJUQJ03IROrDqvkYkL7wHs4T5MPD2Gs3ACZIpeZD9zYqOJ9loY3uc7e BWHN6ghaEKEvYxtloCPddSfnIviJQdgRgHYN9LmS83jswVM0tgqQr3W1poJXSI7S6W28 3BtvYg0bRMrkKgWiTUytJXARJvQEx6EtXTOji4q2lpRloG5OwdAVsjKgnNGQECU6Erzh t0WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="CegwgC/k"; 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 c6si54014edv.311.2020.06.23.01.39.40; Tue, 23 Jun 2020 01:40:02 -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=default header.b="CegwgC/k"; 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 S1731819AbgFWIhw (ORCPT + 99 others); Tue, 23 Jun 2020 04:37:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:58424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731691AbgFWIhv (ORCPT ); Tue, 23 Jun 2020 04:37:51 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C36EE20707; Tue, 23 Jun 2020 08:37:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592901470; bh=yuB+KVGGndng6N/bVAKpdP7MFMnd4b/Kd5HAj2ZqLtk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CegwgC/kWMW0h1xezI5IE4V1Iu37kgjI+vIsOiT347zB55uxZ6WNajUgpriNlS+96 6Ozyv0/o+qEbu4PZ7+YKyhe4fHrMmq8WBdkzemn5ac+LTBxoyVNVMi+4Wfrzgy5z72 hbY7hDA12+aPoiz3IsC5dpgjhb4yAB9fxb3GT4dw= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jneRB-005clT-5m; Tue, 23 Jun 2020 09:37:49 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 23 Jun 2020 09:37:49 +0100 From: Marc Zyngier To: Hanks Chen Cc: CC Hwang , Jason Cooper , wsd_upstream@mediatek.com, Loda Chou , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, saravanak@google.com Subject: Re: [PATCH 1/1] irqchip: Add config MTK_SYSIRQ and MTK_CIRQ In-Reply-To: <1592894173.10773.42.camel@mtkswgap22> References: <1592483471-14806-1-git-send-email-hanks.chen@mediatek.com> <1592490123.10773.16.camel@mtkswgap22> <1592894173.10773.42.camel@mtkswgap22> User-Agent: Roundcube Webmail/1.4.5 Message-ID: <3dc953265ed4cd4300bd9600bf7e33d6@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: hanks.chen@mediatek.com, cc.hwang@mediatek.com, jason@lakedaemon.net, wsd_upstream@mediatek.com, loda.chou@mediatek.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, saravanak@google.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + Saravana On 2020-06-23 07:36, Hanks Chen wrote: [...] > Hi Marc, > > I want to break the dependency between ARCH_MEDIATEK and CIRQ/SYSIRQ, > because we need to follow the GKI. This isn't what GKI mandates. GKI requires that the SoC code is compiled as modules, not that it is dissociated from its platform (which would be completely pointless). > Could I add the MTK_CIRQ and MTK_SYSIRQ into defconfig? > (arch/arm64/config/defconfig) I don't deal with defconfig at all. That's a patch for the arm-soc people. > > It would ensures all platform are executable. > > e.g. > --- a/arch/arm64/configs/defconfig > +++ b/arch/arm64/configs/defconfig > > CONFIG_QCOM_PDC=y > +CONFIG_MTK_SYSIRQ=m > +CONFIG_MTK_CIRQ=y > CONFIG_RESET_QCOM_AOSS=y > > --- a/drivers/irqchip/Kconfig > +++ b/drivers/irqchip/Kconfig > @@ -572,4 +572,18 @@ config LOONGSON_PCH_MSI > help > Support for the Loongson PCH MSI Controller. > > +config MTK_SYSIRQ > + tristate "Mediatek interrupt polarity controller" > + depends on ARCH_MEDIATEK || COMPILE_TEST > + help > + Interrupt polarity controller driver to swap polarity for > + interrupts for Mediatek mobile chips. > + > +config MTK_CIRQ > + bool "Mediatek low-power interrupt controller" > + depends on ARCH_MEDIATEK || COMPILE_TEST > + help > + Low-power interrupt controller driver to monitor IRQS > + in the sleep mode for Mediatek mobile chips. > + > > > P.S I'll make the irq-mtk-sysirq driver as a loadable kernel module for > GKI You might as well turn both drivers into modules. Saravana was working on a set of patches to ease this transition. Thanks, M. -- Jazz is not dead. It just smells funny...