From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="k9iCPhXf" Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 496A01BD1; Wed, 29 Nov 2023 00:39:08 -0800 (PST) Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id 633F960514; Wed, 29 Nov 2023 08:38:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1701247147; bh=4T2boRidFI8X28nZq5JoZ0Nop7HsXEFuU6HdeMnLYUk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k9iCPhXf3wHSonjZls9kQPzVsqEbj1er44e00sKBvEUJo4lmUkLnF6fkTv7ipfyT2 XLq2qZaeF0OvlE00LdoP4nHpeSBKCqRzQojG8loLErM6JyC2haeGWWhWCT56ZKWj1z KLzIdZ1FPlHc0ic+x8q7X2UgwS5xuE+rvgdQpCZPKkJKu8+yNp18nA4MsEKRcwcQQa RMQlZNobYSmF9TPKEUXvmweZ/eG3IC6P1SsT2xQ92+aTb4INPPKxnfqH5QKVN4Cqon 81TSI/i9Yg+J3oWIN5EfnR4oLqggQuO/7IMejufJIq4yXZFTZH05sx54LCNvIHtoqQ AnDKOi2uRfSXw== Date: Wed, 29 Nov 2023 10:38:44 +0200 From: Tony Lindgren To: Dmitry Torokhov Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rob Herring , Dhruva Gole Subject: Re: [PATCH v4 2/2] Input: gpio-keys - Add system suspend support for dedicated wakeirqs Message-ID: <20231129083844.GU5169@atomide.com> References: <20231124083241.40780-1-tony@atomide.com> <20231124083241.40780-2-tony@atomide.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: * Dmitry Torokhov [231125 04:50]: > Hi Tony, > > On Fri, Nov 24, 2023 at 10:32:41AM +0200, Tony Lindgren wrote: > > + /* > > + * Wakeirq shares the handler with the main interrupt, it's only > > + * active during system suspend. See gpio_keys_button_enable_wakeup() > > + * and gpio_keys_button_disable_wakeup(). > > + */ > > + error = devm_request_any_context_irq(dev, bdata->wakeirq, isr, > > + irqflags, wakedesc, bdata); > > + if (error < 0) { > > + dev_err(dev, "Unable to claim wakeirq %d; error %d\n", > > + bdata->irq, error); > > + return error; > > + } > > + > > + /* > > + * Disable wakeirq until suspend. IRQF_NO_AUTOEN won't work if > > + * IRQF_SHARED was set based on !button->can_disable. > > + */ > > + disable_irq_nosync(bdata->wakeirq); > > Why _nosync() here and below? Is there any harm in sing the normal > variant? Well they are enabled the same time anyways for a while, so I see no harm using the normal variant here. Will post updated patches after some testing. Regards, Tony