Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4026916imm; Wed, 5 Sep 2018 09:31:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ9G5iRpwhRPtzj5MYP9Cf0lad4rmBN+gYFKl/QYyO+AF41Dfl2t/5K9ZfVlRF+z8D9XEoc X-Received: by 2002:a17:902:7e09:: with SMTP id b9-v6mr11201526plm.221.1536165114531; Wed, 05 Sep 2018 09:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536165114; cv=none; d=google.com; s=arc-20160816; b=y6bpqkbktV3TVDTiHV8s0Q5a9z921ENr0sTOkTgGY5EJ7ikHpOYrt4L9PM/eoyCF1p CDd/tIBk2tuRibqBQN6SDcb5cjcavwUNmuZtdK7z3Ig18rTnzb3/8kM1XUq8CBj6n4a0 +f6hvRvQ7efkyICBOmV229RrtLV8NSOQAR3XPgXhxTBTsvKswVZ8pzY8mJ99wrZuIJRd A9iImSN4wlLU1BhKomsl4ksRibvxkSkl+rtYkRW03n2AetgWb2doC4zLYE8ohjUKD86v KZK2FtOQbcgHnmW9hukBW0n+7p0Ysfw/Vs7iBn0nu/t614+8RBi6BjoGjCMXyMdmdycF uBTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=VQLI4fYanzG+OtAnBzNAUK/nfYBOOTSwQlXCDcVd76c=; b=k78w8c0dFtuB8k9qaQ5aslDSccAbGwQjOj0DGtJC6MwREZ4Ze1Y4xP69gFUMhogdW0 tM0sd/3W03N4qAYWpPVAl/XyHBKC2UBBZcgPrArKoA4ZvoF8v4s5OFKUbdY3JjrzE5U3 nSAvDaFkB1RlWb75Tn+q08JqkQY5MwqD5t22L0wLvD15HVRy2Ocd7HyZUVWH3f3fBxf3 lJYB+loA+2Xaqbf71p/PMPDXLGAljxyRkoqg9AKC0JViZRrpZ2OmaEvS1sbLgGdtBwzT lkWh9/QXQHQpTr0BnJVUl8vOCGxhoOkmLAi3QLWhEM4fHCNomRQxJZEPt4goAxfrpv8B 5D2g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21-v6si2367825pgh.664.2018.09.05.09.31.39; Wed, 05 Sep 2018 09:31:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727530AbeIEVAn (ORCPT + 99 others); Wed, 5 Sep 2018 17:00:43 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:41243 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbeIEVAn (ORCPT ); Wed, 5 Sep 2018 17:00:43 -0400 Received: by mail-ed1-f65.google.com with SMTP id f38-v6so6572015edd.8; Wed, 05 Sep 2018 09:29:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=VQLI4fYanzG+OtAnBzNAUK/nfYBOOTSwQlXCDcVd76c=; b=Xoq4jotfM2CdNHhNn8onEgyWUoVun4i4Ka0ZB3IDPuB9heTGph9fNky6jmpbfI+EVn Kf1h9k9kUJB7DgiJescGz2o+0mHMdi5D9MK/Qaoqh5AlQ7cDP/uKSY5RbryDO1jMi5PT +1RBaEmEL1PmcKSGApu1r5T1axHWB/Hpx8/sUmGh80dtHy9kU+APQjytWire4xFCwedn MDGi1HqAo1Opii4j1Sdf5StAswdUsBwzJW6gr3A16aiM/LoGBobQvPBaG0aGq3scwxw7 zQ2VQ7gZVJqx/VvHkkbbMAZf87EpkqTIsyOsqGs7KYU0aEi4tXZUqPA6l0AJtcxe7+2y ZFNw== X-Gm-Message-State: APzg51D4sIenOD1Bairja5Po7EPzpkAGmh3mvHUs0OqblltMcdRnb7Qn RkEyAxU2EvfKHSxb4CxX+KA= X-Received: by 2002:a50:9a02:: with SMTP id o2-v6mr43878260edb.236.1536164985149; Wed, 05 Sep 2018 09:29:45 -0700 (PDT) Received: from kozik-lap (xdsl-188-155-58-14.adslplus.ch. [188.155.58.14]) by smtp.googlemail.com with ESMTPSA id r44-v6sm3160697edd.87.2018.09.05.09.29.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Sep 2018 09:29:44 -0700 (PDT) Date: Wed, 5 Sep 2018 18:29:42 +0200 From: Krzysztof Kozlowski To: Marek Szyprowski Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, MyungJoo Ham , Lee Jones , Bartlomiej Zolnierkiewicz Subject: Re: [PATCH v2] mfd: max8997: Disable interrupt handling for suspend/resume cycle Message-ID: <20180905162942.huedb7grtqvp3xpr@kozik-lap> References: <20180905143606.5916-1-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180905143606.5916-1-m.szyprowski@samsung.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 05, 2018 at 04:36:06PM +0200, Marek Szyprowski wrote: > Disable IRQs during suspend/resume cycle to ensure handling of wakeup > interrupts (i.e. RTC wake alarm) after max8997_resume(). This way it can > be properly handled when I2C bus is finally available. This pattern is > also used in other MAX PMIC MFD drivers. > > Signed-off-by: Marek Szyprowski > --- > changelog: > v2: > - reordered the sequence of operation as suggested by Krzysztof Kozlowski > --- > drivers/mfd/max8997.c | 2 ++ > 1 file changed, 2 insertions(+) > Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof