Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2673485rwb; Fri, 11 Nov 2022 12:57:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf5PkPfUZAxur4SLkTMMqHrtOCpYXhyFubb67NbkB+4soCFpf34pFIU7t50wYWSC276j4Mlx X-Received: by 2002:a17:906:4417:b0:7ad:902c:cf11 with SMTP id x23-20020a170906441700b007ad902ccf11mr3309742ejo.582.1668200276609; Fri, 11 Nov 2022 12:57:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668200276; cv=none; d=google.com; s=arc-20160816; b=YjGrg+6OYLizkiAbNVa+53m3D/CP8Ipzed4ZdZFdC1yB7QpvM9Ey7gPt39nU8zNc7U tpHCg9k1/QNGiQ8/rdVsCC5NI2qyp0k4zBGEf/DUHEgDx8+JRnLoJKY7r+fj7641ARSa ZRXCXbWX/4dvGz1Ifk3dbCUntHlt4U1T1ibpiLJAO/4RFYvuBJBvCvZKgh75u0Y4GKd2 sh56K7gg5jeU65AV6vaNxlTqtWml47M8eVK21hEGRyHxbvfrtyxvpqaEIeAlRntHS3Hf GozjTX2ilC0c76yd/t8jcLcjqge7aRanIwZ4o02bnggTK/qGp6OehWH3Y/sIG/p4BGpf iNQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+FGxMsUgbGfUpqrkpaSW2C3QE2cr6f2BAj4oO7YAllo=; b=D9jYKqefoz/T1PVNtHFf387xmSSzqpbkwEgmm2hhgI1twCQrRHd3U/Z4Aua8v/DiXs vCs5nOTKnvGJTy8lZcTMR9MpFzN3n5W91N+248ZjAe6Kwk7NJj1LP26IiGfOCWB+I/mB wwodhDuM8yOLNvpJYDCrV+HJxXp7gfoR7dPqlvHTONgWwbzVwW89f9fyiVen/YszovUb WQBJMGMU3CeEjL5cwVIogB4g1Eagioi3ULnCyOXtHl+aJsYn2qrC+pedzTBjBV89HNTX gsbQzOWZAu7MaGxfMNg3EgEtvfgWmE+2ByUn5M8hi4IuStEvvuClot8WoWLg7IBu6GSU R8EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VnrQAizh; 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 k19-20020a508ad3000000b00461cb25bdefsi3017283edk.254.2022.11.11.12.57.34; Fri, 11 Nov 2022 12:57:56 -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=VnrQAizh; 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 S234474AbiKKU16 (ORCPT + 91 others); Fri, 11 Nov 2022 15:27:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233844AbiKKU14 (ORCPT ); Fri, 11 Nov 2022 15:27:56 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12D9276F80; Fri, 11 Nov 2022 12:27:56 -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 A31C5620E0; Fri, 11 Nov 2022 20:27:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E1F3C433C1; Fri, 11 Nov 2022 20:27:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668198475; bh=Y5Dw/OOyI6sYBlM0cZs0xJ8i4Ulq91X+S48irGu3LUA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VnrQAizhs2WWMYfybXQ6nVwA7jJG9M0+Z8/Fot/G1aJVbjTSWyGULYrfAqmOGCQa3 5ubmZZu/5J0hE7aHgW9uHwSM1jOG7rwLjHtEV7UDVWBlBopNewIgBJfjRgMmcX4hER mjB2yjHKFx31u4XIa+GIzsqGl4pZIztfvJyLMqYscnYDdFxu2yP/GBOmlKlc/9zVit U5Bpdx0bBYk37xnmLbHMsJW4QxGDSLpdmfYjt47I9w2YO1iAKMC+OXu4LqldPwpqnK aTB9696SJWs+x62UnaDWH1+3Vg4Eq9GoTyG2Px+pmvH2iEzJlEm79gIYgZNQGsIh4u X/lo+tXVm+57A== Date: Fri, 11 Nov 2022 14:27:52 -0600 From: Bjorn Andersson To: Johan Hovold Cc: Vinod Koul , Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] phy: qcom-qmp-usb: drop sc8280xp reference-clock source Message-ID: <20221111202752.s2ob3fft5ndh7elj@builder.lan> References: <20221111093857.11360-1-johan+linaro@kernel.org> <20221111093857.11360-3-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221111093857.11360-3-johan+linaro@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 On Fri, Nov 11, 2022 at 10:38:56AM +0100, Johan Hovold wrote: > The source clock for the reference clock is not used by the PHY directly > and should not be described by the devicetree (instead this relationship > should be modelled in the clock driver). > > Drop the driver management of the reference-clock source for SC8280XP. > > Once the other clock drivers have been updated, the corresponding change > can be done also for the other QMP v4 platforms. > > Signed-off-by: Johan Hovold Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 20 ++++++++++++-------- > 1 file changed, 12 insertions(+), 8 deletions(-) > > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c > index 372f9853c749..9b1f8c9d0eb8 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c > +++ b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c > @@ -1523,6 +1523,10 @@ static const char * const qmp_v3_phy_clk_l[] = { > }; > > static const char * const qmp_v4_phy_clk_l[] = { > + "aux", "ref", "com_aux", > +}; > + > +static const char * const qmp_v4_ref_phy_clk_l[] = { > "aux", "ref_clk_src", "ref", "com_aux", > }; > > @@ -1729,8 +1733,8 @@ static const struct qmp_phy_cfg sm8150_usb3phy_cfg = { > .pcs_tbl_num = ARRAY_SIZE(sm8150_usb3_pcs_tbl), > .pcs_usb_tbl = sm8150_usb3_pcs_usb_tbl, > .pcs_usb_tbl_num = ARRAY_SIZE(sm8150_usb3_pcs_usb_tbl), > - .clk_list = qmp_v4_phy_clk_l, > - .num_clks = ARRAY_SIZE(qmp_v4_phy_clk_l), > + .clk_list = qmp_v4_ref_phy_clk_l, > + .num_clks = ARRAY_SIZE(qmp_v4_ref_phy_clk_l), > .reset_list = msm8996_usb3phy_reset_l, > .num_resets = ARRAY_SIZE(msm8996_usb3phy_reset_l), > .vreg_list = qmp_phy_vreg_l, > @@ -1755,8 +1759,8 @@ static const struct qmp_phy_cfg sm8150_usb3_uniphy_cfg = { > .pcs_tbl_num = ARRAY_SIZE(sm8150_usb3_uniphy_pcs_tbl), > .pcs_usb_tbl = sm8150_usb3_uniphy_pcs_usb_tbl, > .pcs_usb_tbl_num = ARRAY_SIZE(sm8150_usb3_uniphy_pcs_usb_tbl), > - .clk_list = qmp_v4_phy_clk_l, > - .num_clks = ARRAY_SIZE(qmp_v4_phy_clk_l), > + .clk_list = qmp_v4_ref_phy_clk_l, > + .num_clks = ARRAY_SIZE(qmp_v4_ref_phy_clk_l), > .reset_list = msm8996_usb3phy_reset_l, > .num_resets = ARRAY_SIZE(msm8996_usb3phy_reset_l), > .vreg_list = qmp_phy_vreg_l, > @@ -1806,8 +1810,8 @@ static const struct qmp_phy_cfg sm8250_usb3_uniphy_cfg = { > .pcs_tbl_num = ARRAY_SIZE(sm8250_usb3_uniphy_pcs_tbl), > .pcs_usb_tbl = sm8250_usb3_uniphy_pcs_usb_tbl, > .pcs_usb_tbl_num = ARRAY_SIZE(sm8250_usb3_uniphy_pcs_usb_tbl), > - .clk_list = qmp_v4_phy_clk_l, > - .num_clks = ARRAY_SIZE(qmp_v4_phy_clk_l), > + .clk_list = qmp_v4_ref_phy_clk_l, > + .num_clks = ARRAY_SIZE(qmp_v4_ref_phy_clk_l), > .reset_list = msm8996_usb3phy_reset_l, > .num_resets = ARRAY_SIZE(msm8996_usb3phy_reset_l), > .vreg_list = qmp_phy_vreg_l, > @@ -1907,8 +1911,8 @@ static const struct qmp_phy_cfg sm8350_usb3_uniphy_cfg = { > .pcs_tbl_num = ARRAY_SIZE(sm8350_usb3_uniphy_pcs_tbl), > .pcs_usb_tbl = sm8350_usb3_uniphy_pcs_usb_tbl, > .pcs_usb_tbl_num = ARRAY_SIZE(sm8350_usb3_uniphy_pcs_usb_tbl), > - .clk_list = qmp_v4_phy_clk_l, > - .num_clks = ARRAY_SIZE(qmp_v4_phy_clk_l), > + .clk_list = qmp_v4_ref_phy_clk_l, > + .num_clks = ARRAY_SIZE(qmp_v4_ref_phy_clk_l), > .reset_list = msm8996_usb3phy_reset_l, > .num_resets = ARRAY_SIZE(msm8996_usb3phy_reset_l), > .vreg_list = qmp_phy_vreg_l, > -- > 2.37.4 >