From patchwork Mon Feb 26 15:10:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 129684 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp306064lja; Mon, 26 Feb 2018 07:10:52 -0800 (PST) X-Google-Smtp-Source: AH8x225qbRbwmDwcPMy37E2qEDZccat5J69TZaA2erNWwqf6VGbU7mAQSrM7zmaA5KQs+pXoHBF0 X-Received: by 10.99.61.75 with SMTP id k72mr8439157pga.384.1519657852767; Mon, 26 Feb 2018 07:10:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519657852; cv=none; d=google.com; s=arc-20160816; b=Gjukq1xrEfrManR30HeVy8q5TIicTOqeijoNm14dlA92QeHDYnDKX0O6Sz6ouUAoXB 0OxtT1QXRWkFuP8C82GV4aNLE2UR/pqRhuCQZAXTDPITnsy7jf5RNaFxYkaSwXI+uyTg DnMAk3xxMjrovBQi/AiTwFWphREIbR+DLo4l/Lb+AVfd1ocorgP60LXDHDtSX1e3Om0y 6na4JA5d8gkuWgzq818fdG0Lo59UdenxTsPDywHuAKFzT86u18giI+cMHOGxUi1ua+/k U/XeEB/YyzritX5Uz1b0tG+wa0CiU7v9hCGd8L4PRwKINXu1usMKkQBB72sYmsXwxe7u qRTA== 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=vRnbkTePfHr5sizIX4w3kInj7123Btg4r57hXyrMS28=; b=aQOMgSK98vDYv/YBPzok63vrjHBky85NMI7TCzLfSC52Kn1YQvYikB+91e7IOg/xM8 VbbiF3pNIgoRdlDkwUywu2GComPSP4fzcy46G4vkToGAIhcmf8WSKvgqALW5Ti4l6FTW V4LbaqGilMmW3bUg3agXakNsBgos6/1qhE9jvrf6/u9TnyeSD40zQT30hZfydedTuUgL v9qjzcI3wXY3lqsAAoNHEh6Y0/72r+pnWthRt7lhc4bTHtz/LpdzcyCOsPKONTQAtiPG S64kLNxsO6ftnnoXaLN0nJNxBuKySQmbm6tm6o+WonRmbvZzf9CX/iYnVXZSXLPPjJTh GPfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=Gkwndj9y; 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=fail (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 u76si5641447pgc.218.2018.02.26.07.10.52; Mon, 26 Feb 2018 07:10:52 -0800 (PST) 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=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=Gkwndj9y; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754000AbeBZPKv (ORCPT + 5 others); Mon, 26 Feb 2018 10:10:51 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:21120 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753881AbeBZPKu (ORCPT ); Mon, 26 Feb 2018 10:10:50 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1QFAlLH027547; Mon, 26 Feb 2018 09:10:47 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1519657847; bh=BHtDBWu6FE0dRTmjx3pwKyTL4Mv/1FCiawyFjXy2lZ4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Gkwndj9ywZ6hy2RBWRR4JHSlFEz0P/8DYkgu+NdjBUBgm8OgD0TgeoaN4XWuU1JV2 vEgur/CL0qkmR9M57opCnPLghYaXQxlbpc78Cq91VATZtcnPNGpwwJ6cKcGnC7w73r ni+nVZyiXrwSQR2A2VzH1gOO1H22h32Ed6VajI8w= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1QFAlqP029079; Mon, 26 Feb 2018 09:10:47 -0600 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Mon, 26 Feb 2018 09:10:46 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Mon, 26 Feb 2018 09:10:46 -0600 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1QFAgEk005932; Mon, 26 Feb 2018 09:10:45 -0600 From: Tero Kristo To: , , CC: , , Subject: [PATCH 1/3] clk: ti: clkctrl: add support for CLK_SET_RATE_PARENT flag Date: Mon, 26 Feb 2018 17:10:10 +0200 Message-ID: <1519657812-15605-2-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1519657812-15605-1-git-send-email-t-kristo@ti.com> References: <1519657812-15605-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 Certain clkctrl clocks, notably the display ones, use the CLK_SET_RATE_PARENT feature extensively. Add support for this flag to the clkctrl clocks. Signed-off-by: Tero Kristo Reported-by: Jyri Sarha --- drivers/clk/ti/clkctrl.c | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/clk/ti/clkctrl.c b/drivers/clk/ti/clkctrl.c index afa0d6b..421b0539 100644 --- a/drivers/clk/ti/clkctrl.c +++ b/drivers/clk/ti/clkctrl.c @@ -537,6 +537,8 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node) init.parent_names = ®_data->parent; init.num_parents = 1; init.flags = 0; + if (reg_data->flags & CLKF_SET_RATE_PARENT) + init.flags |= CLK_SET_RATE_PARENT; init.name = kasprintf(GFP_KERNEL, "%s:%s:%04x:%d", node->parent->name, node->name, reg_data->offset, 0);