From patchwork Thu Sep 12 14:15:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 173714 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp2191020ilq; Thu, 12 Sep 2019 07:15:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMyeCQlZqJ2Tuo6PzSvQdSwC1AvvSBvUAxNq1GpKXGmtMTXcVvRclUsisb6gc9DXwJyRjf X-Received: by 2002:a50:c209:: with SMTP id n9mr42551204edf.215.1568297753897; Thu, 12 Sep 2019 07:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568297753; cv=none; d=google.com; s=arc-20160816; b=oSwAgjxmpt0Ix4m9ESJJx7XBpFqIMnICFHsep55Ln2X4HGVI/uO2C/G5TBp7k/RfrG jn85V0VYSMsJQ7MyFsc2ufo868oBq8nUmlfASsdPJgLuki/Tj0uccOHTDgViSXjqx6Y6 DeyDQ88Ws5MZoyyl7zdFLsIbiJb44YK3pknSE/oKafopZeM5jcFw38uu0FXMZJxgi1Yo bxoZYx7iOTcOJtrIbCH7Qf47DOpImuT1YTxPIIaYq0wYuo8anAJ0fzsZ7zvaQ+wGWNkB ihpkWBnQWhyLqqUoeeg6gqbD8ZaVSvve5e81mzPd2+G+G4+hO7l3brpKqFQcrozLtaxr OCNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kdN/u39fDQLfzd7rtHJ5JZYMbTkaxu/Gufv+LpTjgaQ=; b=x8UpckICCkP2JQEAl32Ry1eAjL0NZm+OI0SBpngWQgPmQHqFCakuO9aOZ3HiYJtVXr WG4w8j6sf+f6QB7rbwMZcekWNLEIHvHdzu6oQhL+gIoYpIyFvinja/bn0CU7C2tXF2+K rvloT6Gvd4Jb8fbYMnrnrQLNtjM5iEX0sgMOKa+6im01IB2ZdUMTK+4DUOP6dt87PG6u Lpb2auo4Ut6m4Qi8EdfrrhYR7E/LweeqYYBjdB4W7i5mp8ohsdg3ODgU9gDoAMGFIxXp tBELEr2LLX49VWybLkQgWcttBO5C1ndOyFvLLsbJLJ4nghtpViwebLFg/9f3gZvSpwsS EMzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A2GJVGuR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e46si14674191eda.401.2019.09.12.07.15.53; Thu, 12 Sep 2019 07:15:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A2GJVGuR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732609AbfILOPu (ORCPT + 27 others); Thu, 12 Sep 2019 10:15:50 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37158 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732480AbfILOPr (ORCPT ); Thu, 12 Sep 2019 10:15:47 -0400 Received: by mail-wr1-f67.google.com with SMTP id i1so28071167wro.4 for ; Thu, 12 Sep 2019 07:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kdN/u39fDQLfzd7rtHJ5JZYMbTkaxu/Gufv+LpTjgaQ=; b=A2GJVGuROuKBhePAYuM1kJnzZ+T14oTz0SyhSmH80VaUITfhegPebyeXbV6zE62Xfx +M2+4fBhZJiqH6grq1qnhtyv9iCXLAEJ3YvfzPvaucKSiPMCw3XxfbpdjR8Q2oGG7+mw 5R9RIDjiEly/GhYj2fbusH1rUkt5OJDOkzd7cCa6q2O/xAg7F6XKVlTumb8lyqTRP9E8 dJThiRkX/FmBDYymYDrK3hkiKYDhOB2nbqf0RTKWXmXRHZ6uoP2Ivhb3VTnRaeluPL5f KrgTDkK6zTN2LuuCR5cMrv5xKhvqmBhTWmW1kqolkHpJpTNakCw8x9uzqGVF6e7haIYV drdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kdN/u39fDQLfzd7rtHJ5JZYMbTkaxu/Gufv+LpTjgaQ=; b=BMAt1J8pDmo4zQ2GGasnonD6eoWUnffr4alQ80ha/IjtKWUh/pAZ9n1l0teaLvohsB 2qGpS4ANbzkBRuTP4cRo5jqiYAJd7nnDx+Bpv4mXvy4kSxtWHxTvZ99qgw80fw21eoT4 YnZYIGsnC8vzAIes2SEGmfrDVGCq+xGoA5dY1EXvHePiN1KbXhlg6T9hQmtYdDDXF4Rz 1MfVImWDOuEYvd4wPE7s2zRQb0N1N8CH4/obfB29VS9hOrgM2vzuHMnSyjXvaaetZbbD PhwUuf/ckHy4L5yo1A7A50s2yo4XFhoskTze5bPEd5+O/3vv8tjL+uig8jGy35VyhDHO Y3qQ== X-Gm-Message-State: APjAAAVV3L1TQKubeMnKUqSK5Ddj7rUotnyhMuV4dooPuoL/3L0lI6Ea ZXMBh7EpEChAVGO6bKIeeIvZcw== X-Received: by 2002:a5d:4d81:: with SMTP id b1mr37475923wru.27.1568297744791; Thu, 12 Sep 2019 07:15:44 -0700 (PDT) Received: from localhost.localdomain (69.red-83-35-113.dynamicip.rima-tde.net. [83.35.113.69]) by smtp.gmail.com with ESMTPSA id p23sm137599wma.18.2019.09.12.07.15.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Sep 2019 07:15:44 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, sboyd@kernel.org, agross@kernel.org, mturquette@baylibre.com, bjorn.andersson@linaro.org Cc: niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/5] clk: qcom: hfpll: use clk_parent_data to specify the parent Date: Thu, 12 Sep 2019 16:15:33 +0200 Message-Id: <20190912141534.28870-5-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190912141534.28870-1-jorge.ramirez-ortiz@linaro.org> References: <20190912141534.28870-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Extend support to platorms using different parents. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz --- drivers/clk/qcom/hfpll.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.23.0 diff --git a/drivers/clk/qcom/hfpll.c b/drivers/clk/qcom/hfpll.c index 225c675f6779..5ff7f5a60620 100644 --- a/drivers/clk/qcom/hfpll.c +++ b/drivers/clk/qcom/hfpll.c @@ -53,7 +53,6 @@ static int qcom_hfpll_probe(struct platform_device *pdev) struct regmap *regmap; struct clk_hfpll *h; struct clk_init_data init = { - .parent_names = (const char *[]){ "xo" }, .num_parents = 1, .ops = &clk_ops_hfpll, /* @@ -65,6 +64,7 @@ static int qcom_hfpll_probe(struct platform_device *pdev) .flags = CLK_IGNORE_UNUSED, }; int ret; + struct clk_parent_data pdata = { .index = 0 }; h = devm_kzalloc(dev, sizeof(*h), GFP_KERNEL); if (!h) @@ -83,6 +83,8 @@ static int qcom_hfpll_probe(struct platform_device *pdev) 0, &init.name)) return -ENODEV; + init.parent_data = &pdata; + h->d = &hdata; h->clkr.hw.init = &init; spin_lock_init(&h->lock);