Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2564966pxa; Fri, 7 Aug 2020 14:33:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkY5KqqmFbPT7cxiqMGf2IP02z0XpyKga9OpeADe1hlaM7WociX7j0DKSZm+FKvmjdQWFz X-Received: by 2002:a17:906:c04d:: with SMTP id bm13mr11032986ejb.321.1596836006996; Fri, 07 Aug 2020 14:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596836006; cv=none; d=google.com; s=arc-20160816; b=DAgBTrvjHoxBZAHqN5naxbZcdtxb/DU6Ap2X+rcelG4TlmPNHf+Jxica3KZHOhtXtU 2A+OEEoTj51NEalEA8BazwcjrEPPt2QdfXyRuIPnFa3sa9mT1A/sdzg77CuFLaGtFbBz MLxc0YKrGAY9BaG/s+vRvK8umquj5Y6KHWQD7pk5qGmvRej1R3VbWGjQ/i6yCponGgZq VUd9WR5YD+dhgvsHDv9Z2eLJ/Kedda8dCo7HPWo1EVBK178e9AIfeczI7KKFouSVVN1G YlDvFHv1voYg768FHw4N3lc8PoDpLPHaNF0jnWRGl0lloCunFtzcCpAtxmWII5nXdZ0b Zwyw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=MyVu1ijnTqsVR4YS7BhG8NIm6fEf09PQLDBrRFSJxio=; b=EDDdOrfXsm/JTqXhDiviVwihuXNOp9faZbKv5ltzIkk2paTK8cTVAfMbWHxzt0jXRO FSg7TnxRjyz7XjCs3i7MBOUfV2Dr2QKgilcwlcKJQirKvJRnHl5uaByToR9GtJy+snrW Zmp2vs93xR4eCFKZKsWqj34mSBFcmbsrMnkCYqEGBtjCrgq5ux+GFBrVPQhlxKX5xn1H nsCPOlCNfEDem14MTmP3ypqJE3W1PHtxBYkQPpbRgg1u0jLMIWGIc0q2LP+VkktKXNu7 1Oj4ckLqTTI0yDc+h+tx/tVcGMNMs73gxMUORM4Z7GyDCSo5TyfAqt+zcA61vgJvyoeF sYYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si6097404edq.564.2020.08.07.14.33.04; Fri, 07 Aug 2020 14:33:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726078AbgHGVaM (ORCPT + 99 others); Fri, 7 Aug 2020 17:30:12 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:41991 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727890AbgHGVaK (ORCPT ); Fri, 7 Aug 2020 17:30:10 -0400 X-Originating-IP: 90.66.108.79 Received: from localhost (lfbn-lyo-1-1932-79.w90-66.abo.wanadoo.fr [90.66.108.79]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id EEE70E0005; Fri, 7 Aug 2020 21:30:05 +0000 (UTC) From: Alexandre Belloni To: Alessandro Zummo , Chanwoo Choi , Krzysztof Kozlowski , Jon Hunter , Bartlomiej Zolnierkiewicz Cc: Alexandre Belloni , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH] rtc: max77686: Fix wake-ups for max77620 Date: Fri, 7 Aug 2020 23:30:05 +0200 Message-Id: <159683578749.18787.912305362655306164.b4-ty@bootlin.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200806125431.699339-1-jonathanh@nvidia.com> References: <20200806125431.699339-1-jonathanh@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 6 Aug 2020 13:54:31 +0100, Jon Hunter wrote: > Following commit d8f090dbeafd ("rtc: max77686: Do not allow interrupt to > fire before system resume"), RTC wake-ups stopped working on Jetson TX2 > and Jetson Xavier platforms. The Jetson TX2 uses the max77620 PMIC and > the Jetson Xavier uses max20024 PMIC. Both of these PMICs have the same > max77620 RTC controller. > > For the max77620 RTC, the variable 'rtc_irq_from_platform' is defined as > true in the max77686 driver and because of this the IRQ passed to the > max77686 driver for RTC is the PMIC IRQ and not the parent. Hence, > following commit d8f090dbeafd ("rtc: max77686: Do not allow interrupt to > fire before system resume"), for the max77620 the RTC IRQ within the > PMIC is now getting disabled on entry to suspend and unable to wake the > system up. Fix this by only disabling interrupts on entry to suspend > in the max77686 RTC driver, if the interrupt is the parent interrupt. Applied, thanks! [1/1] rtc: max77686: Fix wake-ups for max77620 commit: 16c24801122e2961c588562f04707b98f9c84bbb Best regards, -- Alexandre Belloni