From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D065BC43381 for ; Mon, 18 Feb 2019 01:38:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 954E5218A6 for ; Mon, 18 Feb 2019 01:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550453929; bh=r+KSF9eKsWCpDgXF8cALa/CUap90ZTUAoZXXOzRKPs0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=BWM/aCDsBzJpANsCsj0dOJNyOW+tpRwUYfP55fvLCSG/LOxe4j/kOHk0GMGM03/U/ 0XbQWDBe7S4jKDtwz6shOuxD1uY//jdIVJeCWSY52x62Kt252ThK3wd/3YlyVe1vTI 8wk2XfUazu9m0k/fqVqLFhiBYu7AxrhN/WllOkT4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727398AbfBRBit (ORCPT ); Sun, 17 Feb 2019 20:38:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:50080 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbfBRBis (ORCPT ); Sun, 17 Feb 2019 20:38:48 -0500 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2007F2184E; Mon, 18 Feb 2019 01:38:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550453928; bh=r+KSF9eKsWCpDgXF8cALa/CUap90ZTUAoZXXOzRKPs0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EzPU/Jp1axZX1Dny9lPd1zMRDUBBNHzKMCnvcg/10i43wgNJfjnQszaQO1ZNPbB9I 2PMZ9h2YFtIE2sozE8XaagJUCBtchXEitlQ/kM1qTvfg2Bu/r3yfZiZ4QZLMn3iq0x YzXBsjeHVdkyQ4vsRevawQTWd6szdkBZo3y3c4wI= Date: Sun, 17 Feb 2019 20:38:47 -0500 From: Sasha Levin To: Martin =?iso-8859-1?Q?Hundeb=F8ll?= Cc: stable@vger.kernel.org, Anson Huang , Linus Walleij Subject: Re: [PATCH] gpio: mxc: move gpio noirq suspend/resume to syscore phase Message-ID: <20190218013847.GR10616@sasha-vm> References: <20190217220533.113017-1-martin@geanix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190217220533.113017-1-martin@geanix.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Sun, Feb 17, 2019 at 11:05:33PM +0100, Martin Hundebøll wrote: >From: Anson Huang > >commit 1a5287a3dbc34cd0c02c8f64c9131bd23cdfe2bb upstream. > >During noirq suspend/resume phase, GPIO irq could arrive >and its registers like IMR will be changed by irq handle >process, to make the GPIO registers exactly when it is >powered ON after resume, move the GPIO noirq suspend/resume >callback to syscore suspend/resume phase, local irq is >disabled at this phase so GPIO registers are atomic. > >Fixes: c19fdaeea0aa ("gpio: mxc: add power management support") >Signed-off-by: Anson Huang >Signed-off-by: Linus Walleij >Signed-off-by: Martin Hundebøll >Cc: # 4.19.x+ Queued for 4.19 and 4.20, thank you. -- Thanks, Sasha