Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1525984rwi; Thu, 13 Oct 2022 15:16:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM733eSLIn/OXzIAB6zs+V1XUtVI76D7dtBmsaFAYBRSDi55K4QjDj4I8k9YmQb5l27e4P7h X-Received: by 2002:a63:c145:0:b0:44e:9366:f982 with SMTP id p5-20020a63c145000000b0044e9366f982mr1750506pgi.584.1665699384851; Thu, 13 Oct 2022 15:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665699384; cv=none; d=google.com; s=arc-20160816; b=fKI+wFvl3w2tsdstiiv9VJCQSWyViOx/Le4U6CLVPhoJ9elr1l6R9q7N0ZI07MgW+B DTY3ABwpaXWa3rfG84/yjRBQ0r/ObLjVkwaj69YQQOYy7JVzpqa+P6GtS6fnmgY2OVIu KSpviWuJ7cfOsDtC1MMQJKTICUYlzq/YV53viIsMhexhcNviBfkpgVuNH1yzAUH4okHH rRsT44+x5M3XuSTZpbVZYcBylVsmEvceX1SO5w8I5X3b23DmdXaJ1aq4g4GNQ7wX1R7C 2Zot4ZCDxaVYDYijvd7YNst6OZsAkemoyP4m72Qhcia+zvNMgMzsNmhi3fITiRDaufbm 4jbw== 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:dkim-signature; bh=eGxDxLpBBc25/zJ1ZGUcp2ZxKbgcRfKEOp9GSqQ62os=; b=bDS0q9lVgfHf3CdHqrJ1mfOJ+0KSfhvdafEpeXsQFDhQL3F0VwfQpOP8+dLva62bmt lFSTt3cDjuRfPLWldUV8a6ZrAAFwMqXud1JjZ1DD+exUMt23WpeCBCJTASmsiYWTAieF YhaoF2OCJfb1ZHo4cNhSGzd36sKN5NQlvJdsMgwhnf/9NO5Lt6m3/01AqJ0RgqZov5KM qdTff7hWW1ByWxNyd6GPz4lwfYGXd+qbIrYrDEveQ1Qok8dY27AXeG7XaJiE7XJe6V1v 44nM0Zxo+f8wW1CgCFWH4oVvQAMvGf6U4FBzhTyANRpq0wiY99HoNsKVADeCE4l6rGHp GbiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kSyG2my3; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oj4-20020a17090b4d8400b0020d4dc7fa97si892000pjb.110.2022.10.13.15.16.12; Thu, 13 Oct 2022 15:16:24 -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; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kSyG2my3; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229529AbiJMVdy (ORCPT + 99 others); Thu, 13 Oct 2022 17:33:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbiJMVdw (ORCPT ); Thu, 13 Oct 2022 17:33:52 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED492192B91; Thu, 13 Oct 2022 14:33:49 -0700 (PDT) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id B1535C0002; Thu, 13 Oct 2022 21:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1665696828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eGxDxLpBBc25/zJ1ZGUcp2ZxKbgcRfKEOp9GSqQ62os=; b=kSyG2my3bJn2U1WBb+ScVEWIZKdErJ3ke5P/A/G9u+90riJc+oo1Gtxe361+ZD0Mj8QOJn 0UksTESsxhTrO2DXaxTCXBdLpFQVgvCEXyY7r9h6avedTBLpKg71RxLr1B7vclucLtE71M zREYLPCyF1oiqx0Pdh0wi3aOvWvVp9iqiy4l0sy2/V3HkLKrcDV9C+s8vabzG6FSZyvxOs jg7d9s19vslAa0oD8JlaxV8CLTungPd/HeI2ZxI8ls20LTBiJWNoKyONr3rcqYcPUkxmRR YLwCxIe3To6SVZyvBvXIynK1plBIAWIhIrvmrQx/tQSR2YE4DzMTv2qE78/BMQ== Date: Thu, 13 Oct 2022 23:33:47 +0200 From: Alexandre Belloni To: "Rafael J. Wysocki" Cc: Linux PM , Mario Limonciello , Alessandro Zummo , Linux ACPI , LKML , Bjorn Helgaas , linux-rtc@vger.kernel.org, Mel Gorman Subject: Re: [PATCH] rtc: rtc-cmos: Fix event handler registration ordering issue Message-ID: <166569680287.1229909.5374051655488244846.b4-ty@bootlin.com> References: <5629262.DvuYhMxLoT@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5629262.DvuYhMxLoT@kreacher> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 Wed, 12 Oct 2022 20:07:01 +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Because acpi_install_fixed_event_handler() enables the event > automatically on success, it is incorrect to call it before the > handler routine passed to it is ready to handle events. > > Unfortunately, the rtc-cmos driver does exactly the incorrect thing > by calling cmos_wake_setup(), which passes rtc_handler() to > acpi_install_fixed_event_handler(), before cmos_do_probe(), because > rtc_handler() uses dev_get_drvdata() to get to the cmos object > pointer and the driver data pointer is only populated in > cmos_do_probe(). > > [...] Applied, thanks! [1/1] rtc: rtc-cmos: Fix event handler registration ordering issue commit: 4919d3eb2ec0ee364f7e3cf2d99646c1b224fae8 Best regards, -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com