Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp99333rwb; Tue, 13 Dec 2022 14:37:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf6xk2FY19C8jQbuRB5ErWF3apQRyTa9B0KS7BIEp0o5hkqFB9OZGIUZayam9ClH15Vn2q+E X-Received: by 2002:a17:906:5012:b0:7b5:5cb4:5edd with SMTP id s18-20020a170906501200b007b55cb45eddmr11278296ejj.19.1670971041362; Tue, 13 Dec 2022 14:37:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670971041; cv=none; d=google.com; s=arc-20160816; b=RjmKkMHnJHu3EbJW0luYmY3WYh7SMnFn7d+BGmNSZBcKj+wNESbPk7uFAEKAuOsKOq GugnKNEEXP27DB7cO/hp2Sarxsk9aqUaG/0cUsKA90jqgbpfo2jNO4E2qj+/IDFHcbtg r1fGN1QbM5S3CRJDO2sSXlRZIfzEWiSb/u8jQN5uWhZ9p6AwFM4Mx0PcBgX/5VnChJPf RFN8PciaNIM0w+6w/BqLvfqeT+qB26zX15DQrFvh3LvYlHD6I5mxFeuyksLDG5O8bGbH UlNe/ATvPtBHzDykKNDD3UcgZ1EN9IQ4ZIRssOaP0lepeJcHwWZlTDgzh3w/gkzR3Syb MvJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=JO/eSwWZUUbXFe4OjZYVy3ojwNFD/RBbWg+KZd4uR5A=; b=VgntpiYOzAEvU5kEVmvqFZl6s0xI8yQBccDAQZ0lCSlbXFNeuTPDBHjvkfkNXtaMfc KzxM6tmSc5AKn7sHCmSMgEyLmTWMESQJjYEVur5qVjC886NWjO8JUulOuIyyQlhek9iq x1cmILNLc5vpy768RU7aKZRENZm/XKX4Xw3S1nu/hOXe26oo8Pf5rpKQVk9Pz42xQRkS xBWqZjm/UiP5g4DS4KJG0ZIsw5x53Gj5ytcUUA2j7Sn8MCurXNMwKB9kOcIFv7GHGWB+ rHkqHAF74dWJC4wW+VRuAox6gA1kBFYhibkLSduKICMt8gwtW6TGpok5T4YMCltmDXlr rfcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ci3hzPgR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xf9-20020a17090731c900b007c1275dd934si9793449ejb.792.2022.12.13.14.37.03; Tue, 13 Dec 2022 14:37:21 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ci3hzPgR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236632AbiLMWYZ (ORCPT + 72 others); Tue, 13 Dec 2022 17:24:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235112AbiLMWYX (ORCPT ); Tue, 13 Dec 2022 17:24:23 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97F5AC28; Tue, 13 Dec 2022 14:24:22 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3451E615B9; Tue, 13 Dec 2022 22:24:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B112C433D2; Tue, 13 Dec 2022 22:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670970261; bh=8KDQaVBEYbG4DZdbHVeTVitMLcZQSUsPaXO6w4+Dp4s=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Ci3hzPgReGmg2iGCZgyMvJTXpbfQvPs9pvHUgu+dkZHx3AQq/Iy25IUX9PgkGlmZ5 Wle730BtgUeflp+YObvw32o3HCZUu+miBCvt9ZD78brAmN/PvEmA3XhFzqzPBTyzif WhWF+CmMqOgFX3g+t3T0Uuo3I+dNGO1jJkt0Qe8RzcBNmEnS8M1ajFlODuYVh4JPJO Ls7ynxnSqxdj1vO+hNKcHsb0WDZoVRtK0qJHfSQlW3exuUCWAe6EwAiXSU+qUuxQU1 r6X1m25pfVPjnmgp6bZI9CB8Q/w2DsAjN5D99src0AdNenpJH1Q6r66/jg71nGINMG gl79zOUBbn+Fw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20221213104333.27548-1-konrad.dybcio@linaro.org> References: <20221213104333.27548-1-konrad.dybcio@linaro.org> Subject: Re: [PATCH] clk: qcom: dispcc-sm6115: Shrink single-parent definitions From: Stephen Boyd Cc: marijn.suijten@somainline.org, Konrad Dybcio , Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Konrad Dybcio , agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski@linaro.org, linux-arm-msm@vger.kernel.org Date: Tue, 13 Dec 2022 14:24:19 -0800 User-Agent: alot/0.10 Message-Id: <20221213222421.7B112C433D2@smtp.kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Quoting Konrad Dybcio (2022-12-13 02:43:33) > @@ -284,12 +268,13 @@ static struct clk_rcg2 disp_cc_mdss_vsync_clk_src = =3D { > .cmd_rcgr =3D 0x20a4, > .mnd_width =3D 0, > .hid_width =3D 5, > - .parent_map =3D disp_cc_parent_map_1, > .freq_tbl =3D ftbl_disp_cc_mdss_esc0_clk_src, > .clkr.hw.init =3D &(struct clk_init_data){ > .name =3D "disp_cc_mdss_vsync_clk_src", > - .parent_data =3D disp_cc_parent_data_1, > - .num_parents =3D ARRAY_SIZE(disp_cc_parent_data_1), > + .parent_data =3D &(const struct clk_parent_data){ > + .index =3D DT_BI_TCXO, > + }, > + .num_parents =3D 1, > .flags =3D CLK_SET_RATE_PARENT, > .ops =3D &clk_rcg2_shared_ops, Is clk_rcg2_shared_ops and clk_rcg2_ops prepared for a NULL 'parent_map' pointer? _freq_tbl_determine_rate() is never called?