Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1538989pxa; Thu, 6 Aug 2020 09:47:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7da9+fNrUDNw1uTngImas5SkbnVE7adH1eUISx10S+qE+foHKnBHbXtp3w2FGGYP6zatT X-Received: by 2002:a05:6402:19a5:: with SMTP id o5mr4949611edz.283.1596732439066; Thu, 06 Aug 2020 09:47:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596732439; cv=none; d=google.com; s=arc-20160816; b=A+OmANcy6XN2mcJdSeLwwIJub3wjfzIl03Qvcvy9Uw1bRvBfeXKxvVPBPJoOZC539s 6xHjaDKw7RgCNDnKxcs7Wvr7fjZfagPFWo2ewnnDTrDOC9f8og3EHyWZ1y76fNs6rxLN Bu4Y89F0FqpHziEso9zljS30zf8CnSLWac4cAXk4vz46gQ0oV0eDac7plKI4eaH8WNdH 00ut1Tq54NmnBx3i5Tm4dG5pLgPgH5gFpKWTAwg4LerH1N42485kZK2qxdbdkJzAfGWc vu9e72zFvxRyNvzcRm6G8jVRsSGqrM1VFxsfJzLsk72hTEFQ7mTjz8pF8Fk9WMOgpyvy 225w== 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=I2QgUmIlO6maUIvLNmFMIgB6tFghLiGYEgxkf43Wx9U=; b=utiMqkWo0GRvJHD7j5qoqrS2c1BBk5fd6V6aFDFu6/MOCIZdd7oaX/M74xNpM7/G8V sJKtWu43p0mDvXn7JEdUhHaHYxQtNjsWh8d+G50FMgskZ3hTtA3zfmpbAvxaBVi7kG7M l/VXtD7CUY8wkIF8exrODd723wn8ocduSvzR9Px8v14zafMimUbK1svPtO4FZRnJzv1H Cu4AfvePZ7T1NHMcq/v2W3GVKNCOYhXURnmVZ/d15jkP9T3KduRLdqVpL4zkaOx5eQyR aFmvyk+phEcxCki7Qwxu0wJc4kDKHxhSu09jQNEQ3SB4g4UE46/dJPnMNskf4Jgc+5vm bKog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=RU0tPU8b; 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 d6si3743007ejp.151.2020.08.06.09.46.56; Thu, 06 Aug 2020 09:47:19 -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=@0x0f.com header.s=google header.b=RU0tPU8b; 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 S1728721AbgHFQp7 (ORCPT + 99 others); Thu, 6 Aug 2020 12:45:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729244AbgHFQpo (ORCPT ); Thu, 6 Aug 2020 12:45:44 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D6F1C0A88C0 for ; Thu, 6 Aug 2020 07:58:30 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id z18so40743735wrm.12 for ; Thu, 06 Aug 2020 07:58:30 -0700 (PDT) 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=I2QgUmIlO6maUIvLNmFMIgB6tFghLiGYEgxkf43Wx9U=; b=RU0tPU8bAxRiOuvHY7DJRlCCP2+QRbiYTaM0EYG5OIICce80n/byLWVwV7uLOp8vjb zWbCdW/3rPa2b9W3bVCAqFeyee6Kk5YIEQGfReqtSa12vcltpB6yZj0yIp6dXYe+ZXTA uj1D2Zs5Yu49k1Pzvv5W7vUodcbxEQk3yvggE= 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=I2QgUmIlO6maUIvLNmFMIgB6tFghLiGYEgxkf43Wx9U=; b=afxV8DSso8eT5yH9WMXJvq9+TPBo7Q2tAex8gU+CAeMUiQfn1AsM8cVb+Wqa8mjdk8 JO7Sz304bhON6mqzU+WcKJKthRWmmYYg+Hsnnt58pNlw9vGsJ4i03+7N/KI29+bIG4NT uKe7VjnxeAdVGqvQRRgtJyrddly410lKfJknvwDqM3wydvtFKn5h2XGnuIq5l1lYiYJh z0JdBfdh/noB/RUNYpwg9PFJ8E/TzsDDdKsaTmNwtJCy3x88NHM4SVIf0tEWb93suRw9 hPT2Ksnsek78Yp7Ss5YWZ+uOnDY3OT6NN+rGOwTKJJ7aD+BgWqqmkvdbaXMJuF0mXO5s AClA== X-Gm-Message-State: AOAM531f6zA+di3VubQQu0br+uZBFm/ATK1uEMIL55fX/pI+EGvyUx/Q 0Ya9mUZCvVqrb+tmDD0BVuOkGhf1/UAvXu6u4627lg== X-Received: by 2002:adf:ed85:: with SMTP id c5mr7800963wro.307.1596725908629; Thu, 06 Aug 2020 07:58:28 -0700 (PDT) MIME-Version: 1.0 References: <20200806140739.31501-1-mark-pk.tsai@mediatek.com> In-Reply-To: <20200806140739.31501-1-mark-pk.tsai@mediatek.com> From: Daniel Palmer Date: Thu, 6 Aug 2020 23:58:33 +0900 Message-ID: Subject: Re: [PATCH 0/2] irqchip: irq-mt58xx: Add mt58xx series interrupt To: Mark-PK Tsai Cc: alix.wu@mediatek.com, DTML , Jason Cooper , linux-arm-kernel , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Marc Zyngier , Rob Herring , Thomas Gleixner , yj.chiang@mediatek.com 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 Hi Mark-PK, On Thu, 6 Aug 2020 at 23:08, Mark-PK Tsai wrote: > > Do you know if it would be possible to confirm if they are > > the > > same thing? MediaTek bought MStar a few years ago so it seems likely > > but I have no hard information. > > > > Yes, it's for the same interrupt controller IP. That's good news. :) > > If they are the same thing could we work on making one series that > > supports both use cases? > > Sure, and I think the irq controller driver should support both use cases. > So how about keep the MTK version driver? I'm fine with that. Maybe you can push the MTK version and I can send a small patch after that to add the small bits I need? > I'll send patch v2 after -rc1 as I mentioned in the previous mail, > and keep you posted. > And any suggestion is welcome. :) I think Marc's comments on my series apply to your driver and I think maybe answer some of the questions you had. For example what to do about the read-modify-write sequence for updating the registers. > > It's also possible that if the interrupt controller is the same some > > other things like the SPI NOR controller etc are also common and > > working > > on a single driver for those would save us both time. > > I'm not sure about that. > I'll check the patches you contributed and confirm with our driver owners. I have a very messy tree with support for the SPI NOR controller, SPI, i2c etc that were used in MStar chips. If any of those are shared it'd be great to know. Thanks, Daniel