Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp22650yba; Wed, 8 May 2019 15:33:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDiwaSQu6Afexnb/RjyFHiGttf8eRbKl4BNZ9wBs8KTZlAHtO/1H/xVK6KdOHbG2EVDZxN X-Received: by 2002:a17:902:aa5:: with SMTP id 34mr324991plp.263.1557354798486; Wed, 08 May 2019 15:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557354798; cv=none; d=google.com; s=arc-20160816; b=VJtBwNPHyAv3IrbDzawzcXifBVTvfxXz3jWJ9xCSU2wPl3vjm/hkqbT5OyLT9thKQS k5BnitaDHwMYN2/katYnACL+6Qz0BLCbHLVBo0eo2bb7N2h1hwQLYnjpXjp2G6u+10sN w7Ix6UltKTvagWzoonEVIjYUDQyktVfdeCQzajxNC885ZGMF6YgQbUGJsLIynTTBYKBx gLp/GNtt/As49tNkcU5oq5ryl/q/+WHAf3ERWfMvTZT7z4+qVfH9E3Xva0BqXAJJpEji d+4WnGsZruR0tWrdEEtz9vgpHgjlBuraThdiKARxw5WQmPMvJykdf34boITqtRqD3DWq MUlQ== 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=x35GHOC+4EYtsgrhdYQQcY08TD8wwwstK0EnEQLGChI=; b=xQewY28VjBrqKhgY54YmntAljwe9ZjLjZxpKUsxOqpOza/v+V7Xb+jzAMfgSD+HEG/ suPKcwUnRudAwIRRm14xjDIr6JeBdCzZYCnyBoXawEEA0t8WyJT+tnRiLNP1xorI91Rl r+n/eOYlcyKm6KHXQYy3W2WLE8j4i/z8dY6lAz3OZZPCgBRlHB1XLU16c3V8M3pHvKW7 dbxmHbpAa3ThIvc8KkehcEtebsy5mX+6tRS1jIaQpAoq1v/k5L58R0MEOm3soQARSbBD YqpSuCTmKAEbvM/EubF9GZptatr4PScmnytpn9Ugj1RTPMTcQOlJKfPnxfM0m2pWuvi1 RxYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kZ0sGhAL; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si75731pfd.256.2019.05.08.15.32.58; Wed, 08 May 2019 15:33:18 -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=@google.com header.s=20161025 header.b=kZ0sGhAL; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728437AbfEHVjr (ORCPT + 99 others); Wed, 8 May 2019 17:39:47 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:39540 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727041AbfEHVjq (ORCPT ); Wed, 8 May 2019 17:39:46 -0400 Received: by mail-lj1-f194.google.com with SMTP id q10so198324ljc.6 for ; Wed, 08 May 2019 14:39:45 -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=x35GHOC+4EYtsgrhdYQQcY08TD8wwwstK0EnEQLGChI=; b=kZ0sGhALn3IdcGAoIdKhFQmH3MoaO+qPD1BFqOhJCn9ot837nEvhn/WG31aFznIVPD EfJ9Jok5N+3il0QxXYCum4koYryraM6ilb3IcCtM2Cehbfb7PFKOdeG0//7rdbs9zGqM usoZSbpUAeD8beJrUyClmY5+lyaW2urpR1XZGgqSwpCkeb8/oQIXUkdQeffC110GNQZE Li/xkfjhcBnCt7ZQ+lX+zmiHyNxO15S1MeoMcU0mXj4NTLzK5LbWP7I1ZSnv/YBhin0F R3p5JzWyuw1Hv215gYur366/0cKQo0+HrXuYj+WhsT/k8OlHqp/sujpz8fBxx3f3jw8/ 9aSQ== 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=x35GHOC+4EYtsgrhdYQQcY08TD8wwwstK0EnEQLGChI=; b=Qi8EBO5eFqjYHzQnvrfQWcm0okOZokUiaaIc5HYAzoO+Lk0g+ZqDacXGhQtE25/xv0 P/AGx/rRXMLnKk6iw/ZGZK8TBqaNhVSSQz3hmQ0ZdGUnrBMNSedKw34sHbVWccvx/KAt /oa6WI8QbvaZrjYoDq1nm0hQH+7NIDg9NTGfRol93LoQyYkMuPDpa5i59i1XoJU2VdNZ F8RYhKi3xyNxOmZx3wPIe1gZdGIbE2W33BZ8zNGjmfTRyAvpqBgjGFEECzE3POfn/HGG oQnN+/yj6/ApR9oEUM77nwkJyP81Xr4ggFwY7YZUThGjdgu2IWQ5qGCLkP7ZS6aLHapU YnCQ== X-Gm-Message-State: APjAAAWQhriczOHB0BUx+0VWhvzFdvdBlsL/zYVGGqXP6PPwyeiC6UOn IscnPLLtdZtdw6JmIw9gjcXliHzDGnBYfgBBnpHoTw== X-Received: by 2002:a2e:9d12:: with SMTP id t18mr34389lji.163.1557351583857; Wed, 08 May 2019 14:39:43 -0700 (PDT) MIME-Version: 1.0 References: <20190507220115.90395-1-fletcherw@chromium.org> <20190507220115.90395-2-fletcherw@chromium.org> <20190508073623.GT14916@sirena.org.uk> In-Reply-To: <20190508073623.GT14916@sirena.org.uk> From: Curtis Malainey Date: Wed, 8 May 2019 14:39:32 -0700 Message-ID: Subject: Re: [PATCH v5 1/3] ASoC: rt5677: allow multiple interrupt sources To: Mark Brown Cc: Fletcher Woodruff , Linux Kernel Mailing List , Ben Zhang , Jaroslav Kysela , Liam Girdwood , Oder Chiou , Takashi Iwai , Curtis Malainey , 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 From: Mark Brown Date: Wed, May 8, 2019 at 12:36 AM To: Fletcher Woodruff Cc: , Ben Zhang, Jaroslav Kysela, Liam Girdwood, Oder Chiou, Takashi Iwai, Curtis Malainey, > On Tue, May 07, 2019 at 04:01:13PM -0600, Fletcher Woodruff wrote: > > > 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. > > Please have a conversation with your firmware team about the concept of > abstraction - this is clearly a problematic thing to do as it's causing > the state of the system to change for devices that are mostly managed > from the operating system. It's not clear to me that this shouldn't be > split off somehow so that it doesn't impact other systems using this > hardware. > Pixelbooks (Samus Chromebook) are the only devices that use this part. Realtek has confirmed this. Therefore we only have to worry about breaking ourselves. That being said I agree there is likely a better way to handle general abstraction here. We will need the explicit irq handling since I will be following these patches up with patches that enable hotwording on the codec (we will be sending the firmware to linux-firmware as well that is needed for the process.)