Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp517063rwi; Thu, 20 Oct 2022 01:33:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5IdnKplVI8STkN1hiLjflXJjjf+le1WzRRftKM0HUOCoyvliOowes1Zwm7oQDmhDHy884Q X-Received: by 2002:a05:6402:1686:b0:459:4ddf:8f05 with SMTP id a6-20020a056402168600b004594ddf8f05mr11172370edv.375.1666254826064; Thu, 20 Oct 2022 01:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666254826; cv=none; d=google.com; s=arc-20160816; b=pT4KbTjY4kZ5jb6Pmuxvs56FoxXqVOq6CKNndebvOxUamwRjTjTXH7RhO/AaK/r56S Qq6zXMNHZ/AObRZX//r0xlxdh74vPy18vsw6sESZi3EzMimT4/NNB/mLZScKh3pdR9Vr KW2jFq+cHT2wNFrUkVNe87ymoIddFt/mx1SwtCb5S59bL3U3LeEqad86AcM1wid1zxiW 2vB9107K7DhOrC5QEvI5IlM5aLtoin34XPwuho5mP1ShYyclnDR2fmhnTpf3+XGL90xH KV2qUJCooTV/1cldJLyZ4s0P2jYBSBovucdZ/XTbE9iCc56B26fI0snncPTow9qIHABY F0Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=9NpqQ5i0eO74czikrDZ6DLnl1vpN5hqqAF85L1Yr8ls=; b=c0DA9NRzKs6zaEoWytNA0hggx1k0qmVy1yjbpSEY+971rStsu9/2cmqurxNXHA6xNa k00NQ8f8T1/Nf86wjwSZdfCwQiKO/SdpFrTOy2oUFYXL/KbDnGl7hZh1zfBGosV1c3sb n3X89+t34/KjPUJwfJAw4ko8qtk6c9iLmAIzJ1lvLEv+elD7jsZJEXTmmH0KCmpCViFc GS3dooDetyMHo8SOFkQfQh06MNRc52dmtXPMPBmVo694iWKJHXNHfptBUyXRSxWuWyYu zKcGj3QnoWb+P0Ko6yMfYp2jYlQcW/99WTBdO/tWUaRhl0O/bRAz5ucoWuGuf/9Pi+bT Fd6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h16-20020a05640250d000b0045cf2d0357asi18823758edb.34.2022.10.20.01.33.20; Thu, 20 Oct 2022 01:33:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231143AbiJTIK4 (ORCPT + 99 others); Thu, 20 Oct 2022 04:10:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231153AbiJTIKv (ORCPT ); Thu, 20 Oct 2022 04:10:51 -0400 Received: from outbound-smtp42.blacknight.com (outbound-smtp42.blacknight.com [46.22.139.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89AC9D8F63 for ; Thu, 20 Oct 2022 01:10:38 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp42.blacknight.com (Postfix) with ESMTPS id 10FEE29BB for ; Thu, 20 Oct 2022 09:10:37 +0100 (IST) Received: (qmail 8911 invoked from network); 20 Oct 2022 08:10:36 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.198.246]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 20 Oct 2022 08:10:36 -0000 Date: Thu, 20 Oct 2022 09:10:35 +0100 From: Mel Gorman To: "Rafael J. Wysocki" Cc: Alexandre Belloni , Alessandro Zummo , Mario Limonciello , linux-rtc@vger.kernel.org, Bjorn Helgaas , LKML , Linux ACPI , Linux PM , Zhang Rui , Todd Brandt Subject: Re: [PATCH] rtc: rtc-cmos: Fix wake alarm breakage Message-ID: <20221020081035.4lafnpunbacrhdqs@techsingularity.net> References: <5887691.lOV4Wx5bFT@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <5887691.lOV4Wx5bFT@kreacher> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 18, 2022 at 06:09:31PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Commit 4919d3eb2ec0 ("rtc: cmos: Fix event handler registration > ordering issue") overlooked the fact that cmos_do_probe() depended > on the preparations carried out by cmos_wake_setup() and the wake > alarm stopped working after the ordering of them had been changed. > > Address this by partially reverting commit 4919d3eb2ec0 so that > cmos_wake_setup() is called before cmos_do_probe() again and moving > the rtc_wake_setup() invocation from cmos_wake_setup() directly to the > callers of cmos_do_probe() where it will happen after a successful > completion of the latter. > > Fixes: 4919d3eb2ec0 ("rtc: cmos: Fix event handler registration ordering issue") > Reported-by: Zhang Rui > Reported-by: Todd Brandt > Signed-off-by: Rafael J. Wysocki Boot test that previously hit NULL pointer exceptions also completed successfully. -- Mel Gorman SUSE Labs