Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF97CC64ED6 for ; Tue, 28 Feb 2023 10:29:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229580AbjB1K3n (ORCPT ); Tue, 28 Feb 2023 05:29:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbjB1K3l (ORCPT ); Tue, 28 Feb 2023 05:29:41 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E1632DE5B for ; Tue, 28 Feb 2023 02:29:04 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id i5so8196012pla.2 for ; Tue, 28 Feb 2023 02:29:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=i51i9L4gm9YgKmcn4+3JtRaZ6InzUluZanVTZexr5Co=; b=MQI3+VCO9wdC/HFNe4GNotPSKnkHHYwzWxV1eOah4VsrY11XEfhhc7V+gTR/WKZtii bePvF+W0Mi15Zr3iN/HPABSddfRcYKyhzK2CLEB96tqhjJ0+5+dZeXPvkyx5FNQHFoqZ Kp8Rj2g55078K94j80asZPqWNqc47fUKRgWPjdbDMhHpZWV7MbOEjfnxr6wFyEgSVNyZ twetF5MRZvGxY88XRbOhawZeG+w4hhOfXHNwi3LGkNWcfvORZ6uMjMJPYZRuqnuBB7QT Q28rOmdTYJzlVh0nCm3YW4cok3mmsRBnBW76oxQIr9E1qKiD5K87XLHUm5/0/ETaDMUy IHtA== 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=i51i9L4gm9YgKmcn4+3JtRaZ6InzUluZanVTZexr5Co=; b=B3gQoC1bSq7nAe8L4lSPeGHp+loa5V6wNU/Zor0P6PB+Kjvxk6ED6z8Cj6l6O3o501 Q9/oYyURhRFYiE94eVilhBPbLHRrCLge5ixTKLZSlyhmvTvIICS7fudBuofk9mh23gd9 WD1DW7wL0Fm1Z0/p4zozF2pMiNPvYR3Nu1iGnGOPgucdAOFiXYgyEpSaOJOV3q3f137v dWVgaK9wWed+U5sO13r73XovF5Bg6AZn6A7gFJZWIf87tzy0acUey0b+6FWjGb/CbfEc vcTsBnZjkEuhvvJq3YvXhTk6NuEyE+nSJ7ccsysn/yhgE/c9QxlAOXyunLdsCNR1ADQP AEaA== X-Gm-Message-State: AO0yUKVqT3S/jZq2YKWQvR6R7aq3yJ+3QWg6RJ9HC7OFJNY0m3qRalrY kITPLMF7mUHe/b+KA5gUNLfnQkR9iD34dpBbNOlUMeuAVoi+DvcH X-Google-Smtp-Source: AK7set/CYKec8nhgr4pOAL6ruqsISq+MRqDlYtM3A8PX0EsLOokkixuKVPOItnrDyymvYU2FIII1h3TU2u6iX0/wtFE= X-Received: by 2002:a17:90b:3c08:b0:235:1fb7:393c with SMTP id pb8-20020a17090b3c0800b002351fb7393cmr6962063pjb.1.1677580127836; Tue, 28 Feb 2023 02:28:47 -0800 (PST) MIME-Version: 1.0 References: <20230228080619.412820-1-jindong.yue@nxp.com> In-Reply-To: <20230228080619.412820-1-jindong.yue@nxp.com> From: Ulf Hansson Date: Tue, 28 Feb 2023 11:28:11 +0100 Message-ID: Subject: Re: [PATCH 4/6] PM: domains: Export genpd_dev_pm_attach_by_name() To: Jindong Yue Cc: rafael@kernel.org, khilman@kernel.org, pavel@ucw.cz, len.brown@intel.com, gregkh@linuxfoundation.org, shawnguo@kernel.org, s.hauer@pengutronix.de, peng.fan@nxp.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Feb 2023 at 08:59, Jindong Yue wrote: > > The genpd_dev_pm_attach_by_name() allows a device to be associated with > its PM domain by name. > > Export it for use by kernel modules, such as the i.MX8M blk-ctrl drivers: > imx8m-blk-ctrl and imx8mp-blk-ctrl. The genpd_dev_pm_attach_by_*() are not intended to be used by any consumer drivers at all. Instead, please use dev_pm_domain_attach_by_*() instead. > > Signed-off-by: Jindong Yue > --- > drivers/base/power/domain.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c > index 32084e38b73d..6d66b6b14863 100644 > --- a/drivers/base/power/domain.c > +++ b/drivers/base/power/domain.c > @@ -2908,6 +2908,7 @@ struct device *genpd_dev_pm_attach_by_name(struct device *dev, const char *name) > > return genpd_dev_pm_attach_by_id(dev, index); > } > +EXPORT_SYMBOL_GPL(genpd_dev_pm_attach_by_name); > > static const struct of_device_id idle_state_match[] = { > { .compatible = "domain-idle-state", }, > -- > 2.36.0 > Kind regards Uffe