Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1030370iob; Fri, 13 May 2022 20:17:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPF8nGQ8XqKLEe4MiqEVVvVnGZJ5RUqVy307ydze+BQHkoD7IUr/3XzCLGGv9sk6V7ku6T X-Received: by 2002:a5d:525b:0:b0:20c:e010:b9f3 with SMTP id k27-20020a5d525b000000b0020ce010b9f3mr5995559wrc.291.1652498255331; Fri, 13 May 2022 20:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652498255; cv=none; d=google.com; s=arc-20160816; b=GSsNM3TJcr0QBA9lRA0l9I9cqk5yutOhQ99i1WDdLCoZRuuOQWZz3VfFSZSp0RFdbo 0HAV2ehwQyNcsIGz5kZWZwan4J1S4ctv8xq8+mUukm9a3vA+I0vDN1d87V/S7yVaOfFX luV5nh36nVC8m55GMBxbArK8nEbDREDFvGAsor2qZJk0kHBueFnFcPLnm9S7S1MDTNT4 oXE7jGA/mJWskLpYEu/kYaHbGF30EcaNdHGgN2n/hZWFgYNIAI4vggmwlZ9Qksw7gID7 2IJZpzk/atEvLVxY+mpdI5N6B8jXE3eK5jMhxXiCeVvgYNlRqo1U6M5ZgPCTRIkLWVJY o3hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=PyfNVqLhUzNkjpgQ9UuI9hC10iZbU2Sy8hokDDhjW1c=; b=hbSBRyos0R/IULOgZ4LKU69zx0p2+dxgcskSFs8GWcoSDB57xP7sr6V0dggDCKCsbI 1mFptJwSUPGNnx5xXiupazUyW0i8QjBY6EuQhrimMQ0XKyBpEcbdmItz+NAA0gxdcpeL 811AVlHZfxtheeramZz3MLFtCM9DCg1cf6eRsknd+GbQnmt9C3lxHn8tQCHFHD6UKEIU pYQhS/srG5UIHVgFYNRNqUa2VRwI/z5SdfvXDZDYLBcmEyFGtipPibzCEO0Ld7J4pXAm vVTOuTndGLRSsLp/ltmdGq/bEBUvV3qxSrofwSlosqN3jDrssuDoe86AxsUAHmPppRio zafQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@smile-fr.20210112.gappssmtp.com header.s=20210112 header.b="uyE+J/VP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l15-20020adfe9cf000000b0020ad7929d6asi3488002wrn.281.2022.05.13.20.17.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:17:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@smile-fr.20210112.gappssmtp.com header.s=20210112 header.b="uyE+J/VP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DA4463E6CB2; Fri, 13 May 2022 16:56:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378174AbiEMIX6 (ORCPT + 99 others); Fri, 13 May 2022 04:23:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378173AbiEMIX4 (ORCPT ); Fri, 13 May 2022 04:23:56 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03F3C25B076 for ; Fri, 13 May 2022 01:23:54 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id t6so10404821wra.4 for ; Fri, 13 May 2022 01:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=PyfNVqLhUzNkjpgQ9UuI9hC10iZbU2Sy8hokDDhjW1c=; b=uyE+J/VPE/aqnTrkoYawPZOjwR8W2AJEH4pjIBgBN6s4uE4Bqneq0UBCTPQvgJuLD7 3i6I0bk+Ghzkd/Y0OApLv3XSvNbT/xBD+kMrarqJI5g0rIl6ksKsbQNluc2Dd36By0Tg UCdNwxIQS0qIUVp4hoQEKzDXqaHggpNJJlY9kN5tDiz2XfxARp5CfoJYMpAh1eghcQqv GMvyZhrtGvnyRi0ph7vstzMyjOljzqS7+2FUY9tnVndlgLBmxRk7fRk7tpZmH7liTXtG TjSI3zmV02BNZY/8QwjnW9Vxfsn3i8GtFksGO0C6ePN4ebs8nq6LA67UlGJWWn4OVffB 8EnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=PyfNVqLhUzNkjpgQ9UuI9hC10iZbU2Sy8hokDDhjW1c=; b=Jjptmz8DA59sORBT2HENxnc2U8kmkkmpq776xiYfFje5J5+F41YcbZORtOvA2Aqsgd Gf90ZOnJB4HK9Fu+m8wTFpu6cmGaT9TMQA+tzj8x0Upg02D975uqwqDAu0lS4vXiu/rR OHeEecaKGSDWgrzK/17FBBQMI4j5hl6I8uH0llt/pj1c/st4siDXfyHRaBxlCt/Orwrf aEgy1c1SkSBehAMmbkr8OzTBFq06MKFQRPGy+/5WHFZowT02VCkdEbqYsragiNadhdsJ EQybqDiQ4NF8dD8dxtWGmp2AbNUrhPs05kYl5R+ckUVit/TEd6STq32COvYwYbud9F/8 crTw== X-Gm-Message-State: AOAM533FiiBY5G5bpDsO/2Lt3LJqhgdB/NEVYKbuZpeKniqVAuwBYc6q CRVOIU40duvrMtDeZI5ZHKDrPQ== X-Received: by 2002:a5d:6643:0:b0:20a:f3a1:2d07 with SMTP id f3-20020a5d6643000000b0020af3a12d07mr2956737wrw.159.1652430232520; Fri, 13 May 2022 01:23:52 -0700 (PDT) Received: from ?IPV6:2a01:cb05:8f8a:1800:1c97:b8d1:b477:d53f? (2a01cb058f8a18001c97b8d1b477d53f.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:1c97:b8d1:b477:d53f]) by smtp.gmail.com with ESMTPSA id z18-20020a7bc152000000b003958af7d0c8sm1656105wmi.45.2022.05.13.01.23.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 May 2022 01:23:52 -0700 (PDT) Message-ID: <3102213a-1b84-6559-9aa1-d35365be18b5@smile.fr> Date: Fri, 13 May 2022 10:23:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH] bus: ti-sysc: Fix warnings for unbind for serial Content-Language: en-US To: Tony Lindgren , linux-omap@vger.kernel.org Cc: Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Grygorii Strashko , Keerthy , Kevin Hilman , Nishanth Menon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20220512053021.61650-1-tony@atomide.com> From: Romain Naour In-Reply-To: <20220512053021.61650-1-tony@atomide.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hello, Le 12/05/2022 à 07:30, Tony Lindgren a écrit : > We can get "failed to disable" clock_unprepare warnings on unbind at least > for the serial console device if the unbind is done before the device has > been idled. > > As some devices are using deferred idle, we must check the status for > pending idle work to idle the device. I didn't noticed the "failed to disable" warning so far (kernel 5.10.106 from ti-linux-kernel repository) but I applied this patch as suggested [1] while investigating another issue "tty serial 8250 omap driver crash". Reviewed-by: Romain Naour [1] https://marc.info/?l=linux-omap&m=164484408319083&w=2 Best regards, Romain > > Cc: Romain Naour > Fixes: 76f0f772e469 ("bus: ti-sysc: Improve handling for no-reset-on-init and no-idle-on-init") > Signed-off-by: Tony Lindgren > --- > drivers/bus/ti-sysc.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c > --- a/drivers/bus/ti-sysc.c > +++ b/drivers/bus/ti-sysc.c > @@ -3395,7 +3395,9 @@ static int sysc_remove(struct platform_device *pdev) > struct sysc *ddata = platform_get_drvdata(pdev); > int error; > > - cancel_delayed_work_sync(&ddata->idle_work); > + /* Device can still be enabled, see deferred idle quirk in probe */ > + if (cancel_delayed_work_sync(&ddata->idle_work)) > + ti_sysc_idle(&ddata->idle_work.work); > > error = pm_runtime_resume_and_get(ddata->dev); > if (error < 0) {