From patchwork Fri Aug 31 15:07:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 145673 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp892860ljw; Fri, 31 Aug 2018 08:08:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY2FhcTDwb6emgd4VStdVz4vna9C8EW2qni5BM46Wcti2wUyj25kGtgZnWbXEuF20i9Rh9r X-Received: by 2002:a62:9402:: with SMTP id m2-v6mr16243862pfe.3.1535728080344; Fri, 31 Aug 2018 08:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535728080; cv=none; d=google.com; s=arc-20160816; b=OjSdaLRWW/41TKUk1hs+Pn25Q480JiANn4bJFntC7BRnf+KekARWbYM9QQMa7McHvL gzigbqyL/7d49osF37uY7HQ8Zp/jIo5o1B7Qw3l9E5fqaUP1W2fxJGM/ys+eZpeuhhxL z/JCw/VKdVWC/WtFr7azAR31K4xGCu23PcSdyRP9lQn7avFDoqjkSJlEK7Wl7RjfzgkH m7FvQ94j6ckICl3BVA5+N3Z2E4Hv3UanDYx9Y5gKdcO226Z5DseJrUcjshwO/qSp9kSV z8fiq5tDXxu5CfphNl+LrkV8ijdbeCtHND1Hpge2BQfj0EqjLFKCNc6UwL7LMW7p7Dsa lFWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=ghfY71BCSeJQncPO7Ue0NP+Lmqx6wHrLtthdihFw+s4=; b=0TINOITEKe1UHlved4x2PCcaZfXOqRdE3kBtEzQABL9h0AQDnnziHzSsW3qU8CQWft vbkcD61nVBmgnm+YoFj/B0c71pQG2AheYFrNDMHSWsXgFVIAm/yCGiDH1v1w//93mFPI kgMyXuQ2qMQtCfEHWC1pW98CVHjliXmWgQcRe1tMuJkBNltCNsBQ9hEI6ieWW0K7mToC 3uB9Qjv41m0NJGi5F7az5ywSFVUz+3LSM2DHRJdz5WiXdl1D7Fcdv6fSyLY5Gs7UsQCB 0Xdpjd8C9oJCJwa+RIsFNNljp/npP8tEfI3bVnRUN65IGDC5o1R0a28nUkNaBpKIqQNt Dv3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yP2QRS7A; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r21-v6si9595451pgi.690.2018.08.31.08.07.59; Fri, 31 Aug 2018 08:08:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=@ti.com header.s=ti-com-17Q1 header.b=yP2QRS7A; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727795AbeHaTPx (ORCPT + 5 others); Fri, 31 Aug 2018 15:15:53 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:45502 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727430AbeHaTPx (ORCPT ); Fri, 31 Aug 2018 15:15:53 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w7VF7sfl005074; Fri, 31 Aug 2018 10:07:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1535728074; bh=ghfY71BCSeJQncPO7Ue0NP+Lmqx6wHrLtthdihFw+s4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=yP2QRS7AHk3Lgr48FNv+JQiH6iLfqPon0Nr5SFi6avvR+3iFnEaSKQJeDVhlyT6SY EWeJ3Vq6D4acTUdsTKBlfccxEfZG7mB7zESlCyu6lS8L584DgOjXyAVi/M/tFCsw5f YOWWNGf/s3P23Hd8UT0oO6fn7qCKOyOexvXttRD8= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VF7sCj021835; Fri, 31 Aug 2018 10:07:54 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 31 Aug 2018 10:07:53 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 31 Aug 2018 10:07:53 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VF7fBj010737; Fri, 31 Aug 2018 10:07:52 -0500 From: Tero Kristo To: , , CC: , Subject: [PATCH 05/11] clk: ti: clkctrl: replace dashes from clkdm name with underscore Date: Fri, 31 Aug 2018 18:07:01 +0300 Message-ID: <1535728027-24573-6-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1535728027-24573-1-git-send-email-t-kristo@ti.com> References: <1535728027-24573-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The change in the DTS data node naming prevents using underscore within the node names and force usage of dash instead. On the other hand, clockdomains use underscore instead of dash, so this must be replaced within the driver code so that the mapping between the two can be done properly. Signed-off-by: Tero Kristo --- drivers/clk/ti/clkctrl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/clk/ti/clkctrl.c b/drivers/clk/ti/clkctrl.c index 51cb73a..a227f4b 100644 --- a/drivers/clk/ti/clkctrl.c +++ b/drivers/clk/ti/clkctrl.c @@ -445,6 +445,7 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node) const __be32 *addrp; u32 addr; int ret; + char *c; if (!(ti_clk_get_features()->flags & TI_CLK_CLKCTRL_COMPAT) && !strcmp(node->name, "clk")) @@ -532,6 +533,15 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node) strcat(provider->clkdm_name, "clkdm"); + /* Replace any dash from the clkdm name with underscore */ + c = provider->clkdm_name; + + while (*c) { + if (*c == '-') + *c = '_'; + c++; + } + INIT_LIST_HEAD(&provider->clocks); /* Generate clocks */