Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1665742ybh; Thu, 16 Jul 2020 19:57:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQN+iYsifupqbhSIv+Z8+cZf0qIqHYQeh9FnFd+yJ4BZdVKkB45be8d7Wqy+ZXKzOCLJuZ X-Received: by 2002:a17:906:d143:: with SMTP id br3mr6492149ejb.268.1594954675803; Thu, 16 Jul 2020 19:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594954675; cv=none; d=google.com; s=arc-20160816; b=DHvmjU9z6eBT4539KehiprYKK20pmPR3STpPYXktnAefg7tWMyyfFaCsIBqy5Rv5x9 n/kxRRT/mCl7eHwxoaXoLWXZZAfu43Q3P9QhcY4OA+JW8XMn2tPcEp+ftig0JVJPCWYN UZKSeJPvrddO56uKRh+wcI1794ye1zJ6etHB+6SXzFD+cr+0o6CmgoLaKsDYALsjPHyr ZopFYTmORvXels7zI7njxVItI2Xjh6tB2qbgqqiJdg2rgRlWA47M7DADVKtb61RwYl8a KSpVkL3J3iXdbRbVYkN86mj4w8Jbxu+hMTdS6WedR1+y2LO/Yi46OUCxHp6UaCZmGL3m BISA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8X8T8pz6At13CJCWKdkd4IkrZllcC3cL7n3XGkpoToo=; b=FdkBwAXn4pb7cF9R7nJ7wV8sTAYbUFYBPMJzdZ+9SoKNsJC3jAHIcofx+iZxDJb31J Va3XsVqZfy/Vcm+c25nYJFjpwx89qbtOw/ysdomKJ/HawXQU9QndO1NZ1o87lg4YJEWr yoodw3PTI7cf1B6Y1sEQJ6nOPJ9Zx3KFzVrnH1QfzY5WWNEynLSnDMhofcanGaYl7DM+ 8ioDFjwEHoEKSzZbu2gFOdJbOVgRpJi2XilQxndPTy7BjhZd0M81EOlJKukG4ojvghKu vapFeZ805tr0u7ZKXrfApvLo2NUZe3CWluw/TFE64cq7b8Pf0b78LBtuMJjnO13VZ+3T M3bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Zim79ws6; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo3si4330602ejb.494.2020.07.16.19.57.32; Thu, 16 Jul 2020 19:57: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=pass header.i=@google.com header.s=20161025 header.b=Zim79ws6; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726812AbgGQC4S (ORCPT + 99 others); Thu, 16 Jul 2020 22:56:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726231AbgGQC4R (ORCPT ); Thu, 16 Jul 2020 22:56:17 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E835C061755 for ; Thu, 16 Jul 2020 19:56:17 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id q17so4796720pls.9 for ; Thu, 16 Jul 2020 19:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8X8T8pz6At13CJCWKdkd4IkrZllcC3cL7n3XGkpoToo=; b=Zim79ws6Kq+0W4jp69vTApwxJi1ab1GZiZQmbPoc8ugOhcIoSw9LPZl0ztw2hGBqH1 RKTDPHVJeM/qAS+KJdbxz7Jfxlu5ZwFIBaHVeX1uk8yLjjwI/qqF8/umOtCiA1fFvZrN 4Mz1DgYnXqNWeRV+YbDi5KeqC2BsqGaa4DLXBB7nV8GDbekcrBrK36qc9L4AUuH/I2y7 rJ8oSx9wMCp+IakhSKuK5+iyDQKabeC0JHx6OQBKCMdC3Rub/G2hu+RoZeqkEL/SOOQ4 nIhE93A2nBDdvijxUUk5f0cNH6d7aqkqR/DWAHjgXuS2/jBKt2G39gjbPxdozOjKsL53 Iwfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8X8T8pz6At13CJCWKdkd4IkrZllcC3cL7n3XGkpoToo=; b=I2spcDizXyvioaUMQMgIEr45Q3B+SnXTcoOoIQyn4HGSBIHUb9hoD69hT72GaofNtW E3xDh25JUX77bJiztNWqttvSPrAYcC2ev+jooOzo8zb0vsPHNGZ77MjRovufhWq/roGF VWPrUnzHRQ1ZKle/sqYpVqw75N7q/x56wBn6R9lwSEQ8NvoioN5DcX80pRKfi+CYoUN4 Rd60VLyR+toF8s1R4RWDWuG1vj7a4c+wojTz/Mw+W3FW2xyMF5xL/cxgIwPULh2/IBVo VgPL2iYjupwns89vYQzWjh3/75Ivw4GR7quMpJ7MEVG19JhYuWQaUfZcuqTG1/7Pxttv yIDg== X-Gm-Message-State: AOAM5307MnFdzbf+LrPoyvq4YIgZrfyzk+uX5EalWMt0UxHzyrBtFZUJ 2+Ic9xZ0plZGWj10kx1ss11gD3/D9k8mVuBq5fECAA== X-Received: by 2002:a17:902:b706:: with SMTP id d6mr5977536pls.244.1594954576802; Thu, 16 Jul 2020 19:56:16 -0700 (PDT) MIME-Version: 1.0 References: <1592483471-14806-1-git-send-email-hanks.chen@mediatek.com> <1592490123.10773.16.camel@mtkswgap22> <1592894173.10773.42.camel@mtkswgap22> <3dc953265ed4cd4300bd9600bf7e33d6@kernel.org> In-Reply-To: <3dc953265ed4cd4300bd9600bf7e33d6@kernel.org> From: Saravana Kannan Date: Thu, 16 Jul 2020 19:55:41 -0700 Message-ID: Subject: Re: [PATCH 1/1] irqchip: Add config MTK_SYSIRQ and MTK_CIRQ To: Marc Zyngier Cc: Hanks Chen , CC Hwang , Jason Cooper , wsd_upstream@mediatek.com, Loda Chou , LKML , "moderated list:ARM/Mediatek SoC support" , Matthias Brugger , Thomas Gleixner , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 23, 2020 at 1:37 AM Marc Zyngier wrote: > > + 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. Sent out v2 of that patch now. https://lore.kernel.org/lkml/20200717024447.3128361-1-saravanak@google.com/T/#u -Saravana