Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp565579yba; Wed, 3 Apr 2019 14:34:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaxRb5UOoVvGOWU3a18TBlPHm2hhIvKxomK9xPWAO3WG00sb14k53JvCJ2DDjfo3bza33L X-Received: by 2002:a63:5947:: with SMTP id j7mr2002449pgm.62.1554327249110; Wed, 03 Apr 2019 14:34:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554327249; cv=none; d=google.com; s=arc-20160816; b=kLuiQc83qGuK0PdpcDCz10UHiKjtUx9iaRRIrl6Gv17oIT6AH3rCTHKSzY24Ec3Vl8 oD5qbnwxL2NHw/O3yLU7qXNF9Fma21gtd5FP6/sGW3JLTP8EcmwEledjP3oYMMB2ZDZv pUFRbkoEts2JZOZILd0Q9nLdNaaxlXoS348ehvuoZ65je0O/L9hGAz9q7idiCxSwXZq/ HKwaUQ0djDjnFLnBXAp99La8MkKzyBQg/tORamAMJ6VMFjEkWQJJh9+H/NcXShl1ZUFp 4Pr2Fs7QZuwIbgnUJ7DHxTqwCjvBMQLyrXIeHbM0TEsh99SwcGM91Jo+11YdNOEZiah0 8s9w== 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=ByAw7ZR6ppOZoPxGHhqQr9zSGZ2le3CNmTXxN67arNE=; b=Cv9ydQ6gZ2qY8tOlFkqQHMZTjRBc+UYBCZQ/XyQ6GvC8n+xjMoXl/aGaGe2RyRGGP9 z5cO4v7NM6YlgKNquklYVLpTFq54tsXRgX08a/JW6mb9oJhsKZTzFWbx4mzdkveQurrn s4ozNYcy3zfUc6iE5oxK+LcgEKnrLJD7QJKFSfEG0rUfsX9buK2QcdFDEmZTnihuJEat xBwWSkTs9FUN+EbkUBj8KnB5QrpDUdHdKI5M0FmZHzudrMDh2FMjP5T7w1CHQjW/mi9s LCXf0/tPi82s30E6sB+EQG7N6Qa8Cg2mBvc0R3R171/CBQfhBpuOvxmlQDgX2burftvq KaFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=k6LWMqWi; 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 o19si14074922pgv.355.2019.04.03.14.33.54; Wed, 03 Apr 2019 14:34:09 -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=k6LWMqWi; 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 S1727053AbfDCVcg (ORCPT + 99 others); Wed, 3 Apr 2019 17:32:36 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:33201 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726792AbfDCVcc (ORCPT ); Wed, 3 Apr 2019 17:32:32 -0400 Received: by mail-wr1-f67.google.com with SMTP id q1so797628wrp.0 for ; Wed, 03 Apr 2019 14:32:31 -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=ByAw7ZR6ppOZoPxGHhqQr9zSGZ2le3CNmTXxN67arNE=; b=k6LWMqWifaDFU8lghK1viRjprgiM3hWpKvBbTJGuVS3gn/61rRG/TCssLrlB0sW0By a+NsC46DmL7ZjsnfHJUmjEvl/MrmevNvM1+y9aY4KFZJg2/x02PJqqjnkOV71iuc1mJj His7QmshItXwiQTX1IotZuIM/5BOjxv0UAJ8Y= 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=ByAw7ZR6ppOZoPxGHhqQr9zSGZ2le3CNmTXxN67arNE=; b=QQHxYv1TwK3ZxvPQHbrjqxHiFgam59t7X1FhhEOf7f+SKL8zBxwlC5BdSud8tnnEiW P82LdCISpomXP0JsTWYksUUfGxUiy2uHor1WvrQa4UiDIrXtj1dC0C/fyEu69nHONkqY vwtfMP6KBBctEkOfMMoqLeZTdMtJTlvDTrzJRCU7Ngjoi57qJcuocjbIxosfxLwmacqA aV4t/qIXDrs07vRTNnR7X5gOkpPF4qAAulnmbQJEMqpfvO111QGp98gbDacoDmoyt7y8 ftUFzLx+BBrgi/yCbFfqJywZZxSJFTvmNhJkbWmwZWImhEFXDa5TIE0XHj6KbM3Km+C0 u6oA== X-Gm-Message-State: APjAAAX+YdYMhCBAb7m5aHoGvkOWVc+IOqCQsqAWjAvhSr/z7wceSAmj bxSuWrUiIucVO7XtBiFUPVEiqTSvYeZ2crpqocZWrA== X-Received: by 2002:adf:f30b:: with SMTP id i11mr1285926wro.297.1554327150593; Wed, 03 Apr 2019 14:32:30 -0700 (PDT) MIME-Version: 1.0 References: <20190401205519.34023-1-fletcherw@chromium.org> <20190402050236.GV2059@sirena.org.uk> In-Reply-To: <20190402050236.GV2059@sirena.org.uk> From: Fletcher Woodruff Date: Wed, 3 Apr 2019 15:32:04 -0600 Message-ID: Subject: Re: [PATCH 1/2] ASoC: rt5677: allow multiple interrupt sources To: Mark Brown Cc: linux-kernel@vger.kernel.org, Ben Zhang , Bard Liao , Jaroslav Kysela , Liam Girdwood , Oder Chiou , Takashi Iwai , Curtis Malainey , alsa-devel@alsa-project.org, Ross Zwisler 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 1, 2019 at 11:02 PM Mark Brown wrote: > regmap-irq should support active high/low, and if it doesn't it can't be > a unique thing that only this device wants to implement so the common > code should be improved. The rt5677 driver needs its own irq regardless for hotword detection. If we implemented this in regmap-irq, we wouldn't be able to use it. > This looks unrelated to the polarity of the interupt? Yes this is separate. If a plug/unplug happens after regmap_read and before regmap_write, it will not be registered, so we loop to make sure that it's caught in a later iteration. I can clarify this in the patch notes.