Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6920763rwn; Tue, 13 Sep 2022 10:52:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM41RcBpW02EjLHLplmZW7fMNpymL6C3DhGu89rUCP4cmLl34RiXsaAbGB5sFLaO/CnMA9PG X-Received: by 2002:a17:90b:3c83:b0:202:9e3e:8f01 with SMTP id pv3-20020a17090b3c8300b002029e3e8f01mr444721pjb.116.1663091536165; Tue, 13 Sep 2022 10:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663091536; cv=none; d=google.com; s=arc-20160816; b=jfqy3VpyBTUnFknhvMTmj5bDIppf6beW5JFOnbur2Wl/Kl5/dQ3xd1S0FRhcRJgEP9 8aD/p7SbTfUXH6ZgDsGUriSwikqbXYVpoD+kE4DgOAdc/hKSdkMlDuC/xWSbRvzp1Aux XdJhoZhr1FQ3h2NRlEOv1zlLb83m8As0ew+Xo/sfVVK+yv4oFC7YFO6J7SeZCPFn9Yk6 oLWRNPWw0AB8IaRA6fACeiWAEnf4u2xFcPwX6nG0qsctrxUS1jT07exImJWdxSFCbJjh z5MOx+/YXR0Kzke6jhEhdGxeF8Aaoq57duiEiO/sMPyHmJgg2YdG3f99Fl2a84+cmfRi PKLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CGLCtRbWwRCAf6WmqGJBYksHAfnT5oX5xIBwMzUyvqg=; b=uaP/d902Bj2MVKcoqPAtsLSEG11m+g49g+ngjnMjZf4D+uW4eyOzKx70JCIfsQZGLz 3ktgybCNwoSjMLZANgn5IEEDjiUoyzVhr6tTQP3eCD9fibMq1xXijvww+HHBD4FseAgK v2MQQlGjzXn/nkHYMcHzwotNE7RF4SVxeu3eyEuEUzfJRbSYRjNBtCw78UW2RA1PqJOM 6hPdPW3AvkfjhAJ7DbGTg83NjILCY793+GgTH1CtOHlcTU1L8kpSGiTRBKFLP2YnBo3H KoXMafkQnBBOaI5ItEzwgrJZn7F8hN+3KA2mY7QIJf7uSTadS0R5Ch6b2qLqQlCYcMlf OhRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Gjb/1drl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e190-20020a6369c7000000b0043877ff2743si13259280pgc.39.2022.09.13.10.52.03; Tue, 13 Sep 2022 10:52:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Gjb/1drl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230306AbiIMRI7 (ORCPT + 99 others); Tue, 13 Sep 2022 13:08:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231265AbiIMRI0 (ORCPT ); Tue, 13 Sep 2022 13:08:26 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41BAF915DE for ; Tue, 13 Sep 2022 08:57:43 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id c2so12279128plo.3 for ; Tue, 13 Sep 2022 08:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=CGLCtRbWwRCAf6WmqGJBYksHAfnT5oX5xIBwMzUyvqg=; b=Gjb/1drlC0T1KT6qKQp+EOjvuce3jT3ddBuZmCIhUCD1JjfynIXluqq+ydAE0YYAmG p+5JnSpv26BEqUDuJzeFgV+cDv+pcrHfjXDLRRItnLSsP1xlI5YcJEZJ7pEhDX8zjIh3 cRbSM6dRKjNE1AtZwiNsW22tXNeNU6ZbagvXk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=CGLCtRbWwRCAf6WmqGJBYksHAfnT5oX5xIBwMzUyvqg=; b=f9F973U6qQV25CtDrzdwblBBDirlICL+AJIA+116ulPvVPL205ifODYWFJAtigUW9E RvAlT2nm5f1baJC1/r8SqO6R82pegOpkBOPmsjfneOiFklBY6ky7F+UjVtT+lpXWs8S1 m+v8svCl5INB2baFM2BdoRtM37il4t47GrvjUxH9X1MMbSdF1Pp6uZoqE3abSSbW0NeJ lFjOY5YM5Z5fjoM+aaMTJ5os+itN6YpkOApX0BJWAYAWr+jzZpTr1yzhkitWh7HG58SI bzM7ZE3L2t1IakcuQvf7FTXRMubOx/xK1nLZqHB+Ht75bi9ghE7F+K3S3+vptuoNxFzN iyCQ== X-Gm-Message-State: ACgBeo2h12GKUFq8qn259Hqp+pKd5Ox793OSHAtri+C+UVBNIE5ruyK+ VMtJIeDL7TdSterJC8VvoNJ+a8OmcSK94A== X-Received: by 2002:a17:902:be02:b0:172:d409:e057 with SMTP id r2-20020a170902be0200b00172d409e057mr32304731pls.90.1663084656154; Tue, 13 Sep 2022 08:57:36 -0700 (PDT) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com. [209.85.215.169]) by smtp.gmail.com with ESMTPSA id x5-20020a628605000000b00540d75197f2sm8361904pfd.143.2022.09.13.08.57.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Sep 2022 08:57:35 -0700 (PDT) Received: by mail-pg1-f169.google.com with SMTP id t65so11743405pgt.2 for ; Tue, 13 Sep 2022 08:57:35 -0700 (PDT) X-Received: by 2002:a05:6e02:12a8:b0:2ea:f53a:2d06 with SMTP id f8-20020a056e0212a800b002eaf53a2d06mr12701463ilr.223.1663084320106; Tue, 13 Sep 2022 08:52:00 -0700 (PDT) MIME-Version: 1.0 References: <20220912221317.2775651-1-rrangel@chromium.org> <20220912160931.v2.7.I8af4282adc72eb9f247adcd03676a43893a020a6@changeid> In-Reply-To: From: Raul Rangel Date: Tue, 13 Sep 2022 09:51:48 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 07/13] i2c: acpi: Use ACPI wake capability bit to set wake_irq To: Wolfram Sang , Raul E Rangel , Linux ACPI , linux-input , Andy Shevchenko , "jingle.wu" , "Limonciello, Mario" , Tim Van Patten , Linus Walleij , Hans de Goede , "Rafael J. Wysocki" , Mika Westerberg , "open list:I2C SUBSYSTEM HOST DRIVERS" , linux-kernel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 13, 2022 at 1:28 AM Wolfram Sang wrote: > > On Mon, Sep 12, 2022 at 04:13:11PM -0600, Raul E Rangel wrote: > > Device tree already has a mechanism to pass the wake_irq. It does this > > by looking for the wakeup-source property and setting the > > I2C_CLIENT_WAKE flag. This CL adds the ACPI equivalent. It uses the > > ACPI interrupt wake flag to determine if the interrupt can be used to > > wake the system. Previously the i2c drivers had to make assumptions and > > blindly enable the wake IRQ. This can cause spurious wake events. e.g., > > If there is a device with an Active Low interrupt and the device gets > > powered off while suspending, the interrupt line will go low since it's > > no longer powered and wakes the system. For this reason we should > > respect the board designers wishes and honor the wake bit defined on the > > interrupt. > > I'll let the I2C ACPI maintainers deal with the technical details > because they are the experts here, yet one minor thing hits my eye: > > > + irq_ctx.irq = acpi_dev_gpio_irq_get_wake( > > + adev, 0, &irq_ctx.wake_capable); > > That line split looks weird with the open parens at the end of line 1. > Ah, looks like I missed `clang-format` on that line. I can fix it in the next revision. Thanks