Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4179104yba; Tue, 9 Apr 2019 12:54:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzspxSTy94bvbpyRvl8jWhtTLQ8rpjAreYoJjOmfytYTnEDJp1KQsQG/ZX7dzKw2RWe9f57 X-Received: by 2002:a17:902:a706:: with SMTP id w6mr39536461plq.91.1554839682024; Tue, 09 Apr 2019 12:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554839682; cv=none; d=google.com; s=arc-20160816; b=HS8cSxQS6QKN4SvvvFga8eyq2yooLIAC4tKd6Rbo6wM0jLnDONRtAxwya1eRi/1+Ax z8odXjeic3Zmyvce+zCiaylsbFe2iN8cuY3tJKoV443/7wFCZoT4sVb7Elw5ln3eIul8 zlO44Ro0QHTf7pIzD3p8IGpWmts6y5VruN80Xi6QfI9YgauOFiIFcnPttE5O4vjwyFbZ hm/vDhXaf1ChHk75KT3UgT3hBTi8yYshvYuxKSftUhCA0Rajwk8oJrKGgxqN6r9NF3LW QKNk+50LMKHGC/WmQ6+3ZVZz0boE8qW/DYT4yElPbS+liFPR+/D8/vHJd5HAmGUFs7p9 cR6Q== 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=B7QjH+DHJebgggEI3cQJ0RyRsWLJCrfk+VPqpJ23WfM=; b=RRRphtYzdGGSjEbFphpY+9az4/KwPHiH7rY5V1hbdN3fBnUA8Hf5fXirLfXjMWVQop 1yZT4S2+WI97b49xpd3z6WMtmvJBkOGguXj2dg3xwjlYQMngEdyTI/hWDbd75Oq4Iylx wCbwibbFxRA5dOjp762o5IZVIjT8EoAimu/sCc9DhFsnoMcEosaQ4ni5Bf/2H3xyew9n 4CJ2hsMAgQRLtdQbJ4gcPfwrMbPqvbCwIiNzeQXz+yMredqGoBiaRUpCRb/Di/MNgtN+ XaVe8GIlRLzGX99thtv6dJzRKhHzh2to+Co1G6UOTy2IPSml/cn5OaeyoQxsX6spa04A 7Oiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=acczSLll; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3si5461669plp.361.2019.04.09.12.54.24; Tue, 09 Apr 2019 12:54:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=acczSLll; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726538AbfDITxs (ORCPT + 99 others); Tue, 9 Apr 2019 15:53:48 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:33740 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726446AbfDITxr (ORCPT ); Tue, 9 Apr 2019 15:53:47 -0400 Received: by mail-wr1-f68.google.com with SMTP id q1so146931wrp.0 for ; Tue, 09 Apr 2019 12:53:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B7QjH+DHJebgggEI3cQJ0RyRsWLJCrfk+VPqpJ23WfM=; b=acczSLlluIJsJZ2R3QQNk/zJICSj8xl2qabwl6Ro56EDvrs4ofbm3Hu9na+gSpA5jL PW0LRVaRZlbUwgDpN2clgzL1xpgLru6R53U6pBDNGwxh7GZquM8Dm4DyjsVRGqjZQq0m DaKWdogI1dCCIwlNPG4Tc5pn369S9E54Q+W7I= 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=B7QjH+DHJebgggEI3cQJ0RyRsWLJCrfk+VPqpJ23WfM=; b=HFHCaNl0xi19r3M4wlr/i1UCA6bVEQfjicmJhkiPo77GNVe3P8zyugssRJJTIm531p qopfPPHrxA7UkRP9y7x0NcdCHK9i7U3FhcZ+eKBBttveUfLleGaJWmr/jmoJI8vB4/u7 nbWq2Gkqu4Q02grGaWCi04tqoD1d53hxSF5OgHJUzCtVqMfa8MLQAhmdbTvZ60tUMLSN tSDSkeGwwdyjwSD3e8XudD02Ec22DqXBBiZ/ZlcH0IIfec+rGNF7BpJBhyB4EZK2Jf9k IggYy77IiYgo/AjF9anfokrohEfsnkbGynVp45YDfDgAi96QZMOu1TSPGFOIKcsfRKZt Lvjg== X-Gm-Message-State: APjAAAWzOothzW1v2ihea/3Cf7vwIyuWT8cLYIrrbO7rhNmcfe9Z3OG5 Jc0hoVjwEJlNUbMGmV49jxTFFnvDniBECQwn+QHrNQ== X-Received: by 2002:adf:eb0b:: with SMTP id s11mr4365227wrn.140.1554839626238; Tue, 09 Apr 2019 12:53:46 -0700 (PDT) MIME-Version: 1.0 References: <20190401205519.34023-2-fletcherw@chromium.org> <20190405204257.87095-1-fletcherw@chromium.org> <20190405204257.87095-2-fletcherw@chromium.org> <20190408061014.GG2803@sirena.org.uk> In-Reply-To: <20190408061014.GG2803@sirena.org.uk> From: Fletcher Woodruff Date: Tue, 9 Apr 2019 13:53:20 -0600 Message-ID: Subject: Re: [PATCH v2 1/3] ASoC: rt5677: allow multiple interrupt sources To: Mark Brown Cc: linux-kernel@vger.kernel.org, Ben Zhang , Jaroslav Kysela , Liam Girdwood , Oder Chiou , Takashi Iwai , Curtis Malainey , Ross Zwisler , alsa-devel@alsa-project.org 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 Mon, Apr 8, 2019 at 12:38 AM Mark Brown wrote: > On Fri, Apr 05, 2019 at 02:42:55PM -0600, Fletcher Woodruff wrote: > > > This patch allows headphone plug detect and mic present > > detect to be enabled at the same time. This patch implements > > an irq_chip with irq_domain directly instead of using > > regmap_irq, so that interrupt source line polarities can > > be flipped to support irq sharing. > > This changelog still doesn't explain why there is a need to open code > this rather than having the irq_chip and irq_domain provided by > regmap-irq support whatever is missing here. You said it "needs its own > irq regardless for hotword detection" but provided no information on why > this is. Sorry! I misunderstood your earlier response so I didn't clarify that portion of the commit message. Thanks for your patience. How does this updated commit message sound? If you think it's sufficiently clear, I can send a v3 for this patch. This patch allows headphone plug detect and mic present detect to be enabled at the same time. This patch implements an irq_chip with irq_domain directly instead of using regmap-irq, so that interrupt source line polarities can be flipped to support irq sharing. This patch does not add polarity flipping support within regmap-irq because there is extra work that must be done within the irq handler to support hotword detection. On the Chromebook Pixel, the firmware will disconnect GPIO1 from the jack detection irq when a hotword is detected and trigger the interrupt handler. Inside the handler, we will need to detect this, report the hotword event, and re-connect GPIO1 to the jack detection irq.