Message ID | 20221111092457.10546-9-johan+linaro@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp637737wru; Fri, 11 Nov 2022 01:29:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf78AZdcnYpf7uG7Fmj8OWJ+np4F9WKGQZezVE1RNGq1i7+8m9PExZNtm6vVcx0QMerqzbK8 X-Received: by 2002:a17:906:1b4f:b0:7ad:a030:4816 with SMTP id p15-20020a1709061b4f00b007ada0304816mr1115628ejg.765.1668158956708; Fri, 11 Nov 2022 01:29:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668158956; cv=none; d=google.com; s=arc-20160816; b=ba8ErmywTuIwCS2nCsu7l5nOTWgN67orxgcfunFluHz3WQjrYlgLMF2D/px3JB4qAo cWTVxUT+oz4TQU8Jqa4jPDGbfqZH7TEkuzYkJfF3q0DqGnje48mqmqE85iyDGzz7xHZ1 6+W88dMVm48ukkarJ/Rp4DC3cMwkOI3RKO0ovznuEPhDGUt6Ou2fanQX3qQlwba7BwY6 x+BzgWH/FgIiPT8iMU/zk1neG//bsZ1IoUUl7INKEbJ/ER0ZcTCHA44m1eeY1KJTM+Hl 4ZPpviGN8bWST5gcSzHefqKmJ/8GUz/3KWvQlNIgt3CihY2zpYZ5gqyv71hbymylVCmE 9QIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EDsspcAhJ0AX52H3i9zixF/2UtL3bATBFGZnWZ5Nj+4=; b=po9lFhyFewW16XET3vI6YfUej/rNqr2VHvf2eOlbZa3sGJgAHOEykjG6wUqRtiqbPB psk7FOjgcvcBKXbSW7wPLh3cbb2BKtF2IoVR/b02jhgzWx/PW9WDJDHfss9r6LbrsQ29 2BEYXPX2rE7GqJvrJlgfea70x19VaznXCBOeM4IqVJBpJh+0mnwAH+6zlj6YdO2ZCt7n W2aJtXUDjCoC61E1HNMMBCqcTjWmvXr7edwxFKFcwsBUizC8ZDkuq/tk0I/uBzEWhApz AUUhYUdc9Ui577pVI4FIEQcGzCmhIBdglIeyazgtuYTCVk5CI8680qqLFcA3tU6QsMok oj2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AhX1QBXa; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu20-20020a170906a15400b007ae0ca417e4si1321026ejb.690.2022.11.11.01.28.53; Fri, 11 Nov 2022 01:29:16 -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=AhX1QBXa; 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 S233764AbiKKJ1T (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Fri, 11 Nov 2022 04:27:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233694AbiKKJ0U (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Nov 2022 04:26:20 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6505A7879F; Fri, 11 Nov 2022 01:26:10 -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 ams.source.kernel.org (Postfix) with ESMTPS id 8A0A6B824B5; Fri, 11 Nov 2022 09:26:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A949C4FEB6; Fri, 11 Nov 2022 09:26:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668158765; bh=YTzDKatV7cNFjndGeNHVi/KTXZYRUJpAkkvylvZRhMM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AhX1QBXa7nafMttzim7jKcCTAQYCUyv8wjXrabWTDrNts47A+0LlrPzRx7wdn8C96 N0/MJfxK0lExdZ/Mji+MEq+7qmkT2deb+mRd+i0ZC7FSPjqz8+BxnsZB0h7PiDCCoD G+zPtAMtl7ACw4CBpQYlOM/ZKmTFcf3zLgoQuA7DyTUdXV+dxhGZI3+xn/+RxpagoE Zi0cS5M5RN3iwMncB/SSh/vKKAUhKRg+9xZOo4VaZymfm0vurtd/bbPXI5qVFezOOq Yha4Qi5SpcsIVFtErvkp0bmWHsAxBRK4g7W8TX7GO/9E79r4gYM1HB3W9jYVk+WyAO Ux0uxGvkH6qLw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from <johan+linaro@kernel.org>) id 1otQI5-0002l7-5e; Fri, 11 Nov 2022 10:25:37 +0100 From: Johan Hovold <johan+linaro@kernel.org> To: Vinod Koul <vkoul@kernel.org> Cc: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold <johan+linaro@kernel.org> Subject: [PATCH 08/14] phy: qcom-qmp-combo: drop redundant clock allocation Date: Fri, 11 Nov 2022 10:24:51 +0100 Message-Id: <20221111092457.10546-9-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221111092457.10546-1-johan+linaro@kernel.org> References: <20221111092457.10546-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749191446222477221?= X-GMAIL-MSGID: =?utf-8?q?1749191446222477221?= |
Series |
phy: qcom-qmp-combo: fix sc8280xp binding (set 3/3)
|
|
Commit Message
Johan Hovold
Nov. 11, 2022, 9:24 a.m. UTC
Since the QMP driver split, there is no reason to allocate the
fixed-rate pipe clock structure separately from the driver data.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
Comments
On 11/11/2022 12:24, Johan Hovold wrote: > Since the QMP driver split, there is no reason to allocate the > fixed-rate pipe clock structure separately from the driver data. > > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> > --- > drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Note: it would be nice to port these two patches to USB & PCIe QMP PHY drivers.
On Sat, Nov 12, 2022 at 02:17:44PM +0300, Dmitry Baryshkov wrote: > On 11/11/2022 12:24, Johan Hovold wrote: > > Since the QMP driver split, there is no reason to allocate the > > fixed-rate pipe clock structure separately from the driver data. > > > > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> > > --- > > drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 7 ++----- > > 1 file changed, 2 insertions(+), 5 deletions(-) > > > > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> > > Note: it would be nice to port these two patches to USB & PCIe QMP PHY > drivers. Already done: https://lore.kernel.org/lkml/20221111094239.11547-1-johan+linaro@kernel.org/ Johan
On 14/11/2022 15:42, Johan Hovold wrote: > On Sat, Nov 12, 2022 at 02:17:44PM +0300, Dmitry Baryshkov wrote: >> On 11/11/2022 12:24, Johan Hovold wrote: >>> Since the QMP driver split, there is no reason to allocate the >>> fixed-rate pipe clock structure separately from the driver data. >>> >>> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> >>> --- >>> drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 7 ++----- >>> 1 file changed, 2 insertions(+), 5 deletions(-) >>> >> >> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> >> >> Note: it would be nice to port these two patches to USB & PCIe QMP PHY >> drivers. > > Already done: > > https://lore.kernel.org/lkml/20221111094239.11547-1-johan+linaro@kernel.org/ Thanks!
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c index bfe6d1e59ac7..d513b8924aee 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c @@ -897,6 +897,7 @@ struct qmp_combo { unsigned int dp_aux_cfg; struct phy_configure_opts_dp dp_opts; + struct clk_fixed_rate pipe_clk_fixed; struct clk_hw dp_link_hw; struct clk_hw dp_pixel_hw; }; @@ -2251,15 +2252,11 @@ static void phy_clk_release_provider(void *res) */ static int phy_pipe_clk_register(struct qmp_combo *qmp, struct device_node *np) { - struct clk_fixed_rate *fixed; + struct clk_fixed_rate *fixed = &qmp->pipe_clk_fixed; struct clk_init_data init = { }; char name[64]; int ret; - fixed = devm_kzalloc(qmp->dev, sizeof(*fixed), GFP_KERNEL); - if (!fixed) - return -ENOMEM; - snprintf(name, sizeof(name), "%s::pipe_clk", dev_name(qmp->dev)); init.name = name; init.ops = &clk_fixed_rate_ops;