Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp674906rdg; Wed, 11 Oct 2023 02:13:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXirlnBfni+L7+uzOC6blvvcrN35j6WdGDFDIb1bJ1gtTb+ljMGpLPhnfLib5Tn3126mlQ X-Received: by 2002:a05:6870:61d6:b0:1d5:8f05:39da with SMTP id b22-20020a05687061d600b001d58f0539damr20997145oah.25.1697015584106; Wed, 11 Oct 2023 02:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697015584; cv=none; d=google.com; s=arc-20160816; b=D8P2a5j8Lu30IRcbht/aWL76wCuhIDdreM8o5k7GMVbVyIDpqfoY3BQGADUp7z0pNs ACUS7A1c04KLYER+gILdjqIlBI9/kRZ4KfBvNDAVozAM63IlhEONDGBfBgZNehk4nsaN hu7/anrjZOEMM6Ghzsc36sa9PuGedZ+2E6achB2wNRC6YSvy+7B4+7w4PWlvKaxXZjpp Ej395b0iy2aQ0tFJMO/YOeL7kjUY48+5RYWxkbUll22OdPVbTKatvB4yY7vtl/zbqloF WyMoa+27AEG9YbVanXqX2bgQha9H4hTbJ1HZVeys4iDDmkL191xEzAYBsCBmjvOXTh9H ULvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=8mHTnG4MfEd2WInpkSaCyoIk5Nbax8kxNBig7AwLSEU=; fh=CjdcHF4EANsFJpJIHrYA5ezrY6wC5QQZIdpxjXOiQn0=; b=GwFPfLm1YaqQMIuFBVoDrHe23HHJIbOK3khAqoXuMe3Abq2UvRgYSiw+P+Q9zLgdPW YeloDa3zqtXlYjavnfrMZniE+5b1usDCsVjvE47L9u/An6BRBYpqUJ21cVZ7FbwIu5Pe TyO4liUI1ejZ/n6axQ89w4kcd6kzaT47OJh1ZH4Rj9heAWv5gN2goa7mKHdYMMlyZb6h KORtQSQ/QpgmdF5/RLVKvaPx/Xpkw0fq4yznZdR0ZqsTKwBJnEeH5VJGPSfiWMRfJk5I mUUDpgqapUCQUzgbiFcXsixOykGWtrbU2NwUP6IMYFQXzoG7VrHaACNRCQHhnZseLuDf eDUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=l5sh4dOz; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id c23-20020a631c17000000b0057776b67494si13627845pgc.887.2023.10.11.02.13.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 02:13:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=l5sh4dOz; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id D054C8136BC5; Wed, 11 Oct 2023 02:13:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345742AbjJKJMa (ORCPT + 99 others); Wed, 11 Oct 2023 05:12:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345567AbjJKJM2 (ORCPT ); Wed, 11 Oct 2023 05:12:28 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A12E94; Wed, 11 Oct 2023 02:12:27 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1697015545; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8mHTnG4MfEd2WInpkSaCyoIk5Nbax8kxNBig7AwLSEU=; b=l5sh4dOzDZ2X5HB7Xi84ttICGEA/Gzkkha41sxLmx8M1qkMsMpYCG0Xnyt/vGoVR0Dbdjy ucI9k/OtsU/Er7zqcw00spV0cvJPo8qfx2tD3YPpBhY0FsWc5l8QHCRzkkJmx1fffCitpK p3KWoVHzp++qoCf8dlfDVFuEtfML3i0rNKwNitl84UoRHNZN9AAmKlVTliBtrwQaQZlHcc +UrlmjwOIV/vAWWxlbAC1SBwNYR5Gymwi67+BIgiBXfjMjMllp22y0hZga4sAYbDkS36Fo sJnENvRXJ20gGfmlw9LvJsEEA5EcKGm5czz2PAlXomLE/TJQXC7jLHM8Xrnp8w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1697015545; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8mHTnG4MfEd2WInpkSaCyoIk5Nbax8kxNBig7AwLSEU=; b=QxJnYCZjXLEtyBI07eDRRe9WPqv1ZDHIwowp2BRGFJbN8R4Ajg6bj5fwV7Th8ozoNOCQOJ iYr4BRUAc4t+t+Cw== To: Biju Das , Geert Uytterhoeven Cc: Alessandro Zummo , Alexandre Belloni , John Stultz , Stephen Boyd , Douglas Anderson , Geert Uytterhoeven , Biju Das , "linux-rtc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , Greg Kroah-Hartman Subject: RE: [PATCH v2] alarmtimer: Fix rebind failure In-Reply-To: References: <20230922081208.26334-1-biju.das.jz@bp.renesas.com> <87il7fq1al.ffs@tglx> <87fs2jpznr.ffs@tglx> <87bkd7pic3.ffs@tglx> <87o7h6o6d1.ffs@tglx> Date: Wed, 11 Oct 2023 11:12:25 +0200 Message-ID: <87r0m1ldza.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 11 Oct 2023 02:13:01 -0700 (PDT) X-Spam-Level: ** On Wed, Oct 11 2023 at 06:58, Biju Das wrote: >> On Tue, Oct 10, 2023 at 5:16=E2=80=AFPM Thomas Gleixner wrote: >>=20 >> The "if (alarmtimer_get_rtcdev()) { ... }" you pointed out in the probe >> function seems to be rather fragile, as it depends on probe order. And >> both CHARGER_MANAGER and RTC_DRV_88PM860X can be modular. > > Does it mean that current patch is fine? On normal scenario, no one > will remove RTC device, so nothing to worry about battery charger. On > exceptional cases if anyone wants to remove RTC driver, this patch > will help(for eg: checking resource leak remove/unbind followed by > modprobe/bind). Did you actually read what I wrote? Allowing removal of a registered RTC alarm device is a user space visible change as it violates the assumption that an armed alarm timer is actually functional. So unless you provide a proper analysis why this does not matter, this is going nowhere. Thanks, tglx