Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4759400rwb; Tue, 17 Jan 2023 05:16:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXv2SJ90JBQzkCn54JVXQ0Mg7PT4nDUViBI9QLS9wJ85IDi1uBjTpStQiXY+DB/XC943sQ6P X-Received: by 2002:a05:6402:401b:b0:46f:d386:117d with SMTP id d27-20020a056402401b00b0046fd386117dmr2712994eda.33.1673961410894; Tue, 17 Jan 2023 05:16:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673961410; cv=none; d=google.com; s=arc-20160816; b=O/FIPfdo6Jywon0LQahg0RBBma4RwutGUGIvYK5p0WBuY4w23nZ1QUH2VU2hw1RNgl xOhAIOg7+KS03mX2OsEDF/peR2eTk22EQ9O/Fv+eW+M4xu1pNjyhMLBmYNMUlBAoVP1v Ii4+vtNyihETbcVZIksD/BiYZZTsMD0Dy/F0N6vnHpv8sWtSXuE5llIw7vn70tPcXUdT y/5/EyXaRlK88WDTcg4jwB4ixwWnJO1IUFaNF4YetZYruDj8pJSfFJOIT0HYAnqoCEP6 LmRN92cuZNd9cO1MA2ZBE+Zq8lEABd145KibXCBpfqkmlxM7bUO0tSA/ePjGqIEAf8mL XeqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=0vAXlo1+KmzVCHdtK5nVV4/3Y1bUF5O6kHwPxr8fQok=; b=go0UtFmKMdyBrLM1uPlZmI8e+F8e+ShTs2D9AU4kuiFI47LQ+m9TEi0es44ESTYstr h8bgA/5T21iF94HYJZ2HPd09h2mQlTfHAhCGNaJP84BRkC7kh7QspGJ3rf7hqHN0AYXF 7lhuvgYL+xVKmFUDAuZP935gurXUEOLjdRWWcZ4Jt7j9kIfoZW9r8JH48bil0PyNiwNw ed92WjC27jw5z+8g8ikQogZmhcFEaSIYsMlpUCejS7Z6vSwf2zqick2uU5eVvduty1H0 tElvxQjRLUc62cV/+scHdyscRaUsia7bVGV2iQgq22ucsendFDExJFOJMtVEKgcp7qZ+ NyZw== 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 ec36-20020a0564020d6400b0045c3f6adb7csi12391453edb.215.2023.01.17.05.16.38; Tue, 17 Jan 2023 05:16:50 -0800 (PST) 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 S236895AbjAQMzB (ORCPT + 50 others); Tue, 17 Jan 2023 07:55:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236885AbjAQMy5 (ORCPT ); Tue, 17 Jan 2023 07:54:57 -0500 Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A233310E7 for ; Tue, 17 Jan 2023 04:54:56 -0800 (PST) Received: by mail-qv1-f43.google.com with SMTP id l14so17704370qvw.12 for ; Tue, 17 Jan 2023 04:54:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0vAXlo1+KmzVCHdtK5nVV4/3Y1bUF5O6kHwPxr8fQok=; b=sisOYN/G+qD2cXr9IjRrw/651XPdMyySEqQtcbWAPIToIwplHKa/QHjypG6TZMvFOt xHwJ6PxM8vg8T6nLY713qR985UfH/N0v+J6i0eii6NNV4RQWnOdAjEXqhW+unKnZvHqd 2bB4IxMjdxk6M/FD0fgv+NSfQ9C7ykvPFq0TMh0croBTh/4jSKQB91yYo2+HtOnCXwSu BYPFIxAinJhWgIHPsvcnoV6Dyr5wh+lk/Mc20CfsQMWGlbPvseQHiKWm7fCnmX6kaLBL dkXFgwHIzv/IWywAiFBuIBOBuHeyeMfoioR+KHvU2ExJLeEgn+v47sa5Js0AuvppUlGF fn/A== X-Gm-Message-State: AFqh2ko50oxUmny78EktWr57Dk3PNkQ4w7NyGqRqJLiP0lEeYPI7i3IV JAD8BLBQHNvkDMfuetZpWBrBYiKh+XdfWg== X-Received: by 2002:a05:6214:1401:b0:4c7:cf4:f424 with SMTP id pr1-20020a056214140100b004c70cf4f424mr4700142qvb.35.1673960095184; Tue, 17 Jan 2023 04:54:55 -0800 (PST) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com. [209.85.219.171]) by smtp.gmail.com with ESMTPSA id j20-20020a05620a289400b006fed58fc1a3sm20260463qkp.119.2023.01.17.04.54.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jan 2023 04:54:54 -0800 (PST) Received: by mail-yb1-f171.google.com with SMTP id p188so33869196yba.5 for ; Tue, 17 Jan 2023 04:54:54 -0800 (PST) X-Received: by 2002:a25:9801:0:b0:7d5:b884:3617 with SMTP id a1-20020a259801000000b007d5b8843617mr310008ybo.380.1673960094321; Tue, 17 Jan 2023 04:54:54 -0800 (PST) MIME-Version: 1.0 References: <20221226031417.1056745-1-victor.liu@nxp.com> In-Reply-To: <20221226031417.1056745-1-victor.liu@nxp.com> From: Geert Uytterhoeven Date: Tue, 17 Jan 2023 13:54:42 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 RESEND] drivers: bus: simple-pm-bus: Use clocks To: Liu Ying Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, saravanak@google.com, linux-imx@nxp.com, greg@kroah.com, arnd@arndb.de Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Mon, Dec 26, 2022 at 4:13 AM Liu Ying wrote: > Simple Power-Managed bus controller may need functional clock(s) > to be enabled before child devices connected to the bus can be > accessed. Get the clock(s) as a bulk and enable/disable the > clock(s) when the bus is being power managed. > > One example is that Freescale i.MX8qxp pixel link MSI bus controller > needs MSI clock and AHB clock to be enabled before accessing child > devices. > > Signed-off-by: Liu Ying > --- > v4->v5: > * Fix build warnings when CONFIG_PM=n by using RUNTIME_PM_OPS, > NOIRQ_SYSTEM_SLEEP_PM_OPS and pm_ptr macros. > * Drop Geert's R-b tag due to the fix. > * Resend based on v6.2-rc1. Thanks for the update! Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds