Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp577053pxb; Sat, 6 Mar 2021 09:11:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXUXPHxSgdZwRYmJFwpceN9BeoT+j+0UnmNPhmhvVc8SVty7VuDIhhWcTI21dY7v5658yw X-Received: by 2002:aa7:c9cf:: with SMTP id i15mr14589510edt.296.1615050674580; Sat, 06 Mar 2021 09:11:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615050674; cv=none; d=google.com; s=arc-20160816; b=NS2fF1kfyoNAmiTNY8b12uHFj964l4bWl7BFtmFjE8y+NfVdg3CKSrlyqJUpQBdzIa tVlEl+CwNpTnduRuVb03ons7PV0HK7Kc1mlllW/EUuHdgXgQHaHw569koRuAOBgnmej/ gNlNBkuFmvF+4vbd673b3ICYroMAgDBn62El8kWXx4uvurvNK5U6VufbdugP/RXJhyZQ LOEaH0f0F1HH4A9yJhNgvk6rXFZaZCaMgerMeh36aSnGCfElv5SAq2WpMzrOFIErQfNL cfgHOuWfmjtjxbYluCWHU1bA8xOYYPy2u6+XeZE4l97RFup664POQ+iEkJskFXDT0k/k buDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YpqFU/WH93rAnDj1yFPOUMsML7kE15FG7OpMRmI6VOk=; b=aaAHOTvTCHOYJ2GQ3/aCQ4k8SMz0yygcA+egZCm6/tVvGub3pnQ+7qXZZnXV12D+D9 Uv1wA7ao2uHZqQCrw3rGAIgSF9nBXIJZPR0YPeUQMCw9W04+LSzVAaZKSn2xFvbYf79d 393l4b1NfEoix5363ZOrU251iS1HIZ9iNL3nmDNWiIuHYo5c7nn+m4UZUnV6lqf+VLIP VfoCazHyFWW9WYtli3HERWRtXd+ic5ibZ5pjAkCLjnHn6blQe6mkLyKapek4AYz1Jiea PBSDlaIst3YkqT/qq4FHIf7w6FvtYFiXgGiJRGOPxhrz03MEJoLvtmNr1HOKzr5cKkvI GbMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=lqUa3JgA; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si3253381edm.187.2021.03.06.09.10.51; Sat, 06 Mar 2021 09:11:14 -0800 (PST) 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=@0x0f.com header.s=google header.b=lqUa3JgA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230311AbhCFRHE (ORCPT + 99 others); Sat, 6 Mar 2021 12:07:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231249AbhCFRHD (ORCPT ); Sat, 6 Mar 2021 12:07:03 -0500 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EED92C06175F for ; Sat, 6 Mar 2021 09:07:02 -0800 (PST) Received: by mail-qt1-x833.google.com with SMTP id l14so1607680qtr.10 for ; Sat, 06 Mar 2021 09:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YpqFU/WH93rAnDj1yFPOUMsML7kE15FG7OpMRmI6VOk=; b=lqUa3JgA7vwzlGmAnIReW+CDdgbpUq1hHgrXc7tsb3EAg5ZpHTuO59ZvYQ06oeoCmL NFKLBBs4hVllSFacz+T27+DzAV8eufHWwEwuEw6j4I4xAVQ/JXdXPqVeOY5dMjm3A5KS rOUoq/Z0GGiHgqFQjmoGzoE57zRpPiVqZCN3s= 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=YpqFU/WH93rAnDj1yFPOUMsML7kE15FG7OpMRmI6VOk=; b=XRHVA3LEiFSB0glyEb2Dy+omQKd2MUrtYImHhQDGSAXXMCPoeSNzbmOXsCSPoKsZBu VKs99Rh9o118V+7TdYrhIbCfx6nnn1/0/xmHZF4wFahTfLOXEqw3Zzg3OTu2kk04OrnD wm/KgPwC9E5rziqPzr6kbiJ1a3B3+9SsyZ2919DqeWtAiKtGgPGbx4cKgR1WcOMhV1rd gzjplImsnkD0W8s+VxkJ7EjJD4z9LbJpjC2d9VknyBb6f/eBF5XJJhOJw+cBKEHb+sxI fIwGc7H2iMtMqIzRWpfsfNRbatCvyi3UH5v4e4Nj3rHm2PiADHgLnl63QnKMg0gVaRsW JTfg== X-Gm-Message-State: AOAM531BspgBOoMGEwpdsOkm/+JHC0SGMF/YgWUaEM80q3dmlEeFCK8U rto6fccmq+jfxKlePIZa4UUU7CiSqeFVWxc+XWWcPA== X-Received: by 2002:ac8:480e:: with SMTP id g14mr14104704qtq.249.1615050422018; Sat, 06 Mar 2021 09:07:02 -0800 (PST) MIME-Version: 1.0 References: <20210305120930.14297-1-mark-pk.tsai@mediatek.com> In-Reply-To: <20210305120930.14297-1-mark-pk.tsai@mediatek.com> From: Daniel Palmer Date: Sun, 7 Mar 2021 02:06:51 +0900 Message-ID: Subject: Re: [PATCH] irqchip/irq-mst: Support polarity configuration To: Mark-PK Tsai Cc: Marc Zyngier , Daniel Palmer , Thomas Gleixner , Jason Cooper , Matthias Brugger , Linux Kernel Mailing List , linux-arm-kernel , linux-mediatek@lists.infradead.org, yj.chiang@mediatek.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark-PK, I'm trying to understand the logic behind the changes. It seems like the polarity of interrupts is always the same between the MStar intc and the GIC? Low level interrupts are handled in the mstar intc and become high level interrupts to the GIC? I think for the Mstar MSC313(e) and SigmaStar chips all of the internal interrupts are high level so I never noticed this behaviour. I can't remember seeing anything that handled this in the MStar kernel code I looked at. Is this specific to a certain chip or does it apply for everything with this intc? The register values being lost if the chip goes into suspend to memory makes sense for the MStar chips too I think as everything that is not in the "pmsleep" register group seems to be lost. Thanks, Daniel