Received: by 10.192.165.156 with SMTP id m28csp2379813imm; Thu, 12 Apr 2018 13:18:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/hjuqAnYSLqSHSy/6PXZHcHsX64F9Rg1ef2Vo+O8hjAuZ32SNLCF84PfOdnutHDyW1mafG X-Received: by 10.101.101.150 with SMTP id u22mr1767134pgv.368.1523564338188; Thu, 12 Apr 2018 13:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523564337; cv=none; d=google.com; s=arc-20160816; b=c682j4Y12KYMkZOk3+Dd5UH7STy/NR/VjllS5qTFxSPgb3jbYUoWCkUJrz0S9U+FFf KWqGHXITImJMgd8cXXvxic2IoQOB0N9oQrvsv9pMQNQIWBj+bWRlvq/NypBLlVW7Z26S AdxstOROuRaCsAf0cHsE+OSsKDxvgWFoKhBS9y9a80oRxdHviVMAt8pG+YYXvmOgs8ZC s1A004sH2WIpdVk8IgZPUK0HoGgrYKsFc+aREF7cKGZzmzWYOcXuWHiNSA3asuUdqxZh wMtX5UsH73xBQWB2ZMHzQSHn4Vcmi1SWhtC2zZnkFLGt15Ca0nYNefAeAllMpuFVUe5+ ckzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=Hsv9njDEPOajQb7PrcOvczfG++wPvsZsHwwB5ePBzXU=; b=F6xC94Vn18r0i91Jyj4uPyi47bV7M/OsXJsdWT2xQbUR7JROEKMMtzrRdf6O69pO1C pdCvqkip/5fTb61YAYI1a63Jr9xfWEOA06L3KBh95/vrHxrmQFgaoMSmohqG1/r1vjf9 2gS2dl7EvbpZW+4dGV3Pd+3gMyLZR3cC1sOpF/joILBle8ZAZvzUFzkc2ic/Yuad/cVq vjjKKzbRPP5yT0Gd+qOWPkRSbgDwezDFMACcYeyv047bj0DbT3XBsXyeQH4p1xWjnqIL G2l+s/iZg03YgFLGztZxyXFWViVv2+7ftzWIIXsuTMR0bIdrgP1xzkh8noOB4mlJklP1 ol/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NQcM3sbQ; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1-v6si3988993plb.459.2018.04.12.13.18.43; Thu, 12 Apr 2018 13:18:57 -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=@ti.com header.s=ti-com-17Q1 header.b=NQcM3sbQ; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753469AbeDLUDK (ORCPT + 99 others); Thu, 12 Apr 2018 16:03:10 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:49666 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753063AbeDLUDJ (ORCPT ); Thu, 12 Apr 2018 16:03:09 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3CK2qXw010345; Thu, 12 Apr 2018 15:02:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1523563372; bh=Uc4A3LJONXqJXnWAABc4fcxj/x+lcRKMM9wwoWog3xY=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=NQcM3sbQp7nEstj6G/uAPwEF1qlVfkekS0FqVTgqZ5E9OE/rU+NwPtUtM31De8576 Fh7VFodUP9+o+FIL20aJzn1DYMhMO5yPJXXiJ1HQJgo3lynK6m9iVAQSeAKY+ALU3y CiYJX5Y4RR5T5S4MxQ8VPm1xTtagHqpLPnur5sFw= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3CK2qkq007660; Thu, 12 Apr 2018 15:02:52 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 12 Apr 2018 15:02:51 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 12 Apr 2018 15:02:51 -0500 Received: from [128.247.59.147] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3CK2pkh010293; Thu, 12 Apr 2018 15:02:51 -0500 Subject: Re: [PATCH 11/14] gpio: omap: Restore power_mode configuration at resume time To: Tony Lindgren , Keerthy CC: , , , , , , , , References: <1523505239-16229-1-git-send-email-j-keerthy@ti.com> <1523505239-16229-12-git-send-email-j-keerthy@ti.com> <20180412143932.GA5700@atomide.com> From: Grygorii Strashko Message-ID: Date: Thu, 12 Apr 2018 15:02:51 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180412143932.GA5700@atomide.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/12/2018 09:39 AM, Tony Lindgren wrote: > * Keerthy [180412 03:56]: >> From: Dave Gerlach >> >> Commit 2dc983c565e0 ("gpio/omap: cleanup prepare_for_idle and >> resume_after_idle") introduces omap2_gpio_prepare_for_idle and >> omap2_gpio_resume_after_idle to properly configure gpios that are used >> as wake sources. When entering off mode, omap2_gpio_prepare_for_idle >> can set a flag indicating off-mode entry is desired, however once this >> flag is set it is never cleared, so any additional calls to this >> function, regardless of the mode, have this flag set. >> >> This patch restores the pwr_mode flag to 0 in >> omap2_gpio_resume_after_idle to ensure the flag is not misconfigured >> during non off-mode operation. > > Seems like this should be applied as a fix, can you please add > a proper Fixes tag? Correct. And please send it separate. But not sure about fixes (to many changes) - it has to manually checked for the lowest kernel version to apply. -- regards, -grygorii