Message ID | 20221115144005.2478-6-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 l7csp2767295wru; Tue, 15 Nov 2022 06:42:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf6S8BK+VvSZVp+Nb8L6IpIRLSHEeTvFjL8JbDH0KZU0wblOm1QTDsu1StWjnJdHWXdRfEIF X-Received: by 2002:a17:906:3101:b0:78d:6429:a806 with SMTP id 1-20020a170906310100b0078d6429a806mr14039639ejx.553.1668523360138; Tue, 15 Nov 2022 06:42:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668523360; cv=none; d=google.com; s=arc-20160816; b=mY0nL2KCgOMBDyNb3U8r3PN5L0d4jSDDyHDHvdSkFrsOslFveFJx9yNnlcpT/rmgTq MuhAXKRt/PwupYpgEt8E+lJ9MccdfVUgLSKeb1sRnINASoeb4qD0O8g1g59t9Qw3oRYc 05hpJK6XQgvzgxFX4g859WhWT/ekr4EmtRWsIpHy2zdzoTJfuj7JIhl23MXlNP4Dgo4B td9+b+9LpMJLrsv2yXuNKMgPxJOUlUvu4cSNglrqHuO2IA9UzS8cQRmJzftxlj1pYCE5 sYD3BvHjorTs/QhYtd2BTQkxjdlgujYZryif88ChQGBui7WQAQl14xZiZcV4LBlDX+gW HvZA== 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=3KLhYJJF2scZBOgYbxK6zMHL6LwXIYj1TvdJZk5Bbm0=; b=aR6223kF38o5rrFda0XNwt/7UurkTo+dMU5Uv1DmdLfoGrjoVty7rDGztis2iUwz4d gO/tuOYO4F0HKth7aZ4Hkx9Qg/md4bfBnK/H0i+2bYEr3bfXsw5CxbTLpjMSdfUDWrWO XriLR1hK0BY3wWZpPzDB/GTIxfrhMVpEJwvhl6+uGFismz2bv3U17pUObr6anFW9pHO9 4z+vBvbkDdn/+vMHrkfYI2P5zp5NgIZlU2MY19eBx/aihPBnDbGoC8XVCMu/7nZwpE7q Vjl5P+2Mui6/nVJUkMaWlRjmsXb6Ab7K+Wf8WyCMCzS9eUJ7qlVGRT/rbjwPY8vZkydm IjxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FI163I6p; 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 wu10-20020a170906eeca00b007a9e6f0f82fsi10708245ejb.516.2022.11.15.06.42.13; Tue, 15 Nov 2022 06:42:40 -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=FI163I6p; 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 S233025AbiKOOlP (ORCPT <rfc822;lkml4gm@gmail.com> + 99 others); Tue, 15 Nov 2022 09:41:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230481AbiKOOkz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 15 Nov 2022 09:40:55 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF23D264A9; Tue, 15 Nov 2022 06:40:53 -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 7C569617D6; Tue, 15 Nov 2022 14:40:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B0FEC43144; Tue, 15 Nov 2022 14:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668523252; bh=rhNguSejjtkHA6rQ2L6dE0ZSqitXPRK1vRjUNJUgpvM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FI163I6pAoAbxCyhZ10riblsY+ld8dh2mGqc0qp2/M0zRCkLVc+Kknglp7SN5zvwU XI6YYEmT0TaTaSkbmt6uE06Yqc/bLKPumQL3QA+5fUdM6mzLgQCzNC5FVdNP+MDOWg /hKuekscgL1qrPhLDBH4OFhUYx2ybnBiq/rO7Ln5y7jLh9AjVK0A9d+DrQm6gybUXP vqMBmE9Cc8AqBocsfVPBF30gql8vxCCHAic7JMfmTWo2edF4AbyB9pGrTl9ginc40I kuhcrH65tp/P4bb71KTh36Pp6vVo5ar2UcICF+WgrXtW+B/omgEO7PPEoMEVvRbII3 goUpN4J6Nbt6g== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from <johan+linaro@kernel.org>) id 1oux6s-0000fU-TI; Tue, 15 Nov 2022 15:40:22 +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, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold <johan+linaro@kernel.org> Subject: [PATCH v2 05/15] phy: qcom-qmp-combo: generate pipe clock name Date: Tue, 15 Nov 2022 15:39:55 +0100 Message-Id: <20221115144005.2478-6-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221115144005.2478-1-johan+linaro@kernel.org> References: <20221115144005.2478-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?1749573550616961235?= X-GMAIL-MSGID: =?utf-8?q?1749573550616961235?= |
Series |
phy: qcom-qmp-combo: fix sc8280xp binding (set 3/3)
|
|
Commit Message
Johan Hovold
Nov. 15, 2022, 2:39 p.m. UTC
In preparation for supporting devicetree bindings which do not use child nodes, generate also the USB3 pipe clock name based on the platform device name as is done for the DP clocks. Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> --- drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c index 85def6560e43..7434955c8898 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c @@ -2247,18 +2247,15 @@ static int phy_pipe_clk_register(struct qmp_combo *qmp, struct device_node *np) { struct clk_fixed_rate *fixed; struct clk_init_data init = { }; + char name[64]; int ret; - ret = of_property_read_string(np, "clock-output-names", &init.name); - if (ret) { - dev_err(qmp->dev, "%pOFn: No clock-output-names\n", np); - return 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; /* controllers using QMP phys use 125MHz pipe clock interface */