From mboxrd@z Thu Jan 1 00:00:00 1970 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 BF7FBC43334 for ; Thu, 2 Jun 2022 10:15:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233471AbiFBKPZ (ORCPT ); Thu, 2 Jun 2022 06:15:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233464AbiFBKPX (ORCPT ); Thu, 2 Jun 2022 06:15:23 -0400 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 468FF2AD9AD for ; Thu, 2 Jun 2022 03:15:21 -0700 (PDT) Received: by mail-qv1-xf2e.google.com with SMTP id j2so3226092qvp.9 for ; Thu, 02 Jun 2022 03:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iGK0zPU93j8Ge2AzP1KbQCzIzb8femdDnLBXlrSmAF4=; b=rGExpiOaZ1dgPz/IIE7N5VFS9CKXCNxc1uESwdH+rJIsRxPqcrxLlunbdvz9yDCtDJ voN25Ke98eRyOfhycMhlE6/BhgKy9kGqk0aVat6o8LmN+Dvtjo+t62ITp+NdHdJ8DaZp ZK1f4mTGjjBMuaKsCEJuIAl4s/rcnw8J1EsiMHkl+n5vTmEsXXhs/HU2YbrLab9gd73W iO3SqhvP749pR96qrqOJg0OsiHYyZEd0RhLMp5fjNgjRvmKi2oDsFTp7dnlJPyIfNnhF ozhd2EusWxJT1KgDiXtn64VqP2yLPhmHegWOXpJfg3beGU/wXASf74PTlh8Zrta1jYLL E8ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iGK0zPU93j8Ge2AzP1KbQCzIzb8femdDnLBXlrSmAF4=; b=66aOgp+xBApsWX2MzSsd2sp+ocKwIeBKmhw8U3wKyo5P6k66bJpkTj8oGwFXiJ84b9 OLy9YkmCEne//GqwRSJiP9xhWyU3W2V1wwMCIJWYnGSZLnpb/lPbw8O8STEdnQKAC4qH QVlmlHao5b4lkz+UEEv6krOsQilPPQDAD+6dDKvLRASW1V6QoJTZDsjW/27ccc50xam2 Z+0SpGyXz9xXRgC54k2C0mOoSY39wkHG1TYYrTCGkWFPz4fvAfU+8r1r9SKNC3N1dbvo D3N5eGl/PntTI3AdIRZxYBdLUAJYlVzR5WryfP3zY667b9dmpmHVvF7Xav9nYFwAcasM QL+Q== X-Gm-Message-State: AOAM531Ig0DivqoFGxic0ESq5aogIHzsEvPwXNQpaIQvsWRQSooLKSb7 mCBRqkT3+aZtmiVqxnjx019OEg5QG6kSgmK8x6NkwQ== X-Google-Smtp-Source: ABdhPJwZVrgPJE/PLNJFp4EqWodbfWB4zXOatz/ZqouAf8UAnlORn21DQ04M5d/rYnMf/jo5weyIf8kqSfgKMKENP48= X-Received: by 2002:ad4:5b81:0:b0:465:ded8:780 with SMTP id 1-20020ad45b81000000b00465ded80780mr4768269qvp.119.1654164920448; Thu, 02 Jun 2022 03:15:20 -0700 (PDT) MIME-Version: 1.0 References: <20220601220747.1145095-1-marijn.suijten@somainline.org> <20220601220747.1145095-3-marijn.suijten@somainline.org> In-Reply-To: <20220601220747.1145095-3-marijn.suijten@somainline.org> From: Dmitry Baryshkov Date: Thu, 2 Jun 2022 13:15:09 +0300 Message-ID: Subject: Re: [PATCH v2 02/11] clk: mux: Introduce devm_clk_hw_register_mux_parent_hws() To: Marijn Suijten Cc: phone-devel@vger.kernel.org, Stephen Boyd , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Michael Turquette , Rob Clark , Abhinav Kumar , Sean Paul , David Airlie , Daniel Vetter , Rajeev Nandan , Vladimir Lypak , Arnd Bergmann , Jonathan Marek , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Thu, 2 Jun 2022 at 01:07, Marijn Suijten wrote: > > Add the devres variant of clk_hw_register_mux_hws() for registering a > mux clock with clk_hw parent pointers instead of parent names. > > Signed-off-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov > --- > include/linux/clk-provider.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h > index 4e07621849e6..316c7e082934 100644 > --- a/include/linux/clk-provider.h > +++ b/include/linux/clk-provider.h > @@ -980,6 +980,13 @@ struct clk *clk_register_mux_table(struct device *dev, const char *name, > (parent_names), NULL, NULL, (flags), (reg), \ > (shift), BIT((width)) - 1, (clk_mux_flags), \ > NULL, (lock)) > +#define devm_clk_hw_register_mux_parent_hws(dev, name, parent_hws, \ > + num_parents, flags, reg, shift, \ > + width, clk_mux_flags, lock) \ > + __devm_clk_hw_register_mux((dev), NULL, (name), (num_parents), NULL, \ > + (parent_hws), NULL, (flags), (reg), \ > + (shift), BIT((width)) - 1, \ > + (clk_mux_flags), NULL, (lock)) > > int clk_mux_val_to_index(struct clk_hw *hw, const u32 *table, unsigned int flags, > unsigned int val); > -- > 2.36.1 > -- With best wishes Dmitry From mboxrd@z Thu Jan 1 00:00:00 1970 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 95DF8C433EF for ; Thu, 2 Jun 2022 10:15:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DE138112D58; Thu, 2 Jun 2022 10:15:22 +0000 (UTC) Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 58C33112D58 for ; Thu, 2 Jun 2022 10:15:21 +0000 (UTC) Received: by mail-qv1-xf2d.google.com with SMTP id j3so3287185qvn.0 for ; Thu, 02 Jun 2022 03:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iGK0zPU93j8Ge2AzP1KbQCzIzb8femdDnLBXlrSmAF4=; b=rGExpiOaZ1dgPz/IIE7N5VFS9CKXCNxc1uESwdH+rJIsRxPqcrxLlunbdvz9yDCtDJ voN25Ke98eRyOfhycMhlE6/BhgKy9kGqk0aVat6o8LmN+Dvtjo+t62ITp+NdHdJ8DaZp ZK1f4mTGjjBMuaKsCEJuIAl4s/rcnw8J1EsiMHkl+n5vTmEsXXhs/HU2YbrLab9gd73W iO3SqhvP749pR96qrqOJg0OsiHYyZEd0RhLMp5fjNgjRvmKi2oDsFTp7dnlJPyIfNnhF ozhd2EusWxJT1KgDiXtn64VqP2yLPhmHegWOXpJfg3beGU/wXASf74PTlh8Zrta1jYLL E8ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iGK0zPU93j8Ge2AzP1KbQCzIzb8femdDnLBXlrSmAF4=; b=jPkjbrmogDAtYAayzpksaf/wcq4xn2AX2c8zf+E5/5JCQ9ZhjFVcBZ7T5+3hU3kHfL tH+W5ZAF1Q85wVm+1uCI1O9f4oHSiQSA5STcBZyC+F0F2vEApTokaV4riO89xNcf9BV0 8XeWw/b+9Zw9sHUxasw+7TJ+Ym826lwevzvdMuGvwnRre9xqOW7OjK6+TIAs2EjtkEvm PyPU4pECqcU7Vx5Bc+Llsh6tj+pcvJSqSgx9xqzzSKTAJ4IFJ1X3EGF+Q6iGpAquETNW HBMXy5dQygWtPhMjwSsO8vObN1slYP5yNtwhezBvLqaupn3vMf6/E49Ko34iYQLvjL8o f5jA== X-Gm-Message-State: AOAM532bHZMo5dx9312MkT28rigCk7U6c9e6r0WQPFIe82hclu9xasQS yHGuVOCMIWeKAQb/TPt1B/LTHNbQ86h3KvcfImynVw== X-Google-Smtp-Source: ABdhPJwZVrgPJE/PLNJFp4EqWodbfWB4zXOatz/ZqouAf8UAnlORn21DQ04M5d/rYnMf/jo5weyIf8kqSfgKMKENP48= X-Received: by 2002:ad4:5b81:0:b0:465:ded8:780 with SMTP id 1-20020ad45b81000000b00465ded80780mr4768269qvp.119.1654164920448; Thu, 02 Jun 2022 03:15:20 -0700 (PDT) MIME-Version: 1.0 References: <20220601220747.1145095-1-marijn.suijten@somainline.org> <20220601220747.1145095-3-marijn.suijten@somainline.org> In-Reply-To: <20220601220747.1145095-3-marijn.suijten@somainline.org> From: Dmitry Baryshkov Date: Thu, 2 Jun 2022 13:15:09 +0300 Message-ID: Subject: Re: [PATCH v2 02/11] clk: mux: Introduce devm_clk_hw_register_mux_parent_hws() To: Marijn Suijten Content-Type: text/plain; charset="UTF-8" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , Michael Turquette , Konrad Dybcio , dri-devel@lists.freedesktop.org, AngeloGioacchino Del Regno , phone-devel@vger.kernel.org, linux-clk@vger.kernel.org, Jonathan Marek , linux-arm-msm@vger.kernel.org, Arnd Bergmann , Rajeev Nandan , Abhinav Kumar , Martin Botka , ~postmarketos/upstreaming@lists.sr.ht, Sean Paul , Stephen Boyd , Vladimir Lypak , linux-kernel@vger.kernel.org, Jami Kettunen , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu, 2 Jun 2022 at 01:07, Marijn Suijten wrote: > > Add the devres variant of clk_hw_register_mux_hws() for registering a > mux clock with clk_hw parent pointers instead of parent names. > > Signed-off-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov > --- > include/linux/clk-provider.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h > index 4e07621849e6..316c7e082934 100644 > --- a/include/linux/clk-provider.h > +++ b/include/linux/clk-provider.h > @@ -980,6 +980,13 @@ struct clk *clk_register_mux_table(struct device *dev, const char *name, > (parent_names), NULL, NULL, (flags), (reg), \ > (shift), BIT((width)) - 1, (clk_mux_flags), \ > NULL, (lock)) > +#define devm_clk_hw_register_mux_parent_hws(dev, name, parent_hws, \ > + num_parents, flags, reg, shift, \ > + width, clk_mux_flags, lock) \ > + __devm_clk_hw_register_mux((dev), NULL, (name), (num_parents), NULL, \ > + (parent_hws), NULL, (flags), (reg), \ > + (shift), BIT((width)) - 1, \ > + (clk_mux_flags), NULL, (lock)) > > int clk_mux_val_to_index(struct clk_hw *hw, const u32 *table, unsigned int flags, > unsigned int val); > -- > 2.36.1 > -- With best wishes Dmitry