From patchwork Tue Oct 20 16:57:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 55322 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 6A3FD22EA2 for ; Tue, 20 Oct 2015 16:58:48 +0000 (UTC) Received: by wiyb4 with SMTP id b4sf11802233wiy.2 for ; Tue, 20 Oct 2015 09:58:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=3PZ8zbMqd3QeMUrowOhD3ycZBql7UUvG/72RWR9P+2o=; b=VySHomdimaSV6dtcWY/sNV40V6Q8ZHA0N+rV1p9JxJp33jKce5pwd12QAy6fgqFGmC jfHtsQFsb2+LyNLBK+nkHmiOidIZ64rU2JfSoCQn/Ayo3E+3ZVvb1FW+oscZWi6aOIvy vLEFoJj8oQvPLGP0dDmcMDkl5BLrqoCMoxSako/mSpvgGsri7nwA1keTKpQVmUeBi/4T yCA5NKrsFM53JD488z7syQX/qGtOptxiWRdHveAn/Fld3JaTzSE2b1dIRbeH3QDGMJ0w kmDcoM9hEpnM0pCLGH7fKNgYdABlFy5pWPSgDFuEFLnrpvM/7hG2JeGOd4/hvzcR4GxD B5uw== X-Gm-Message-State: ALoCoQlL0nAaALkPBNiU0aNL+Q89+ydDCms6yLtBbz/FTddwv4VwX2H1f6f7IScrJQfJOxDjtcpi X-Received: by 10.112.136.99 with SMTP id pz3mr898234lbb.11.1445360327734; Tue, 20 Oct 2015 09:58:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.142.16 with SMTP id q16ls93172lfd.64.gmail; Tue, 20 Oct 2015 09:58:47 -0700 (PDT) X-Received: by 10.112.140.4 with SMTP id rc4mr2534258lbb.26.1445360327438; Tue, 20 Oct 2015 09:58:47 -0700 (PDT) Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com. [2a00:1450:4010:c04::230]) by mx.google.com with ESMTPS id or9si2995815lbb.110.2015.10.20.09.58.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2015 09:58:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::230 as permitted sender) client-ip=2a00:1450:4010:c04::230; Received: by lbbec13 with SMTP id ec13so17701076lbb.0 for ; Tue, 20 Oct 2015 09:58:47 -0700 (PDT) X-Received: by 10.112.202.35 with SMTP id kf3mr2540950lbc.19.1445360327320; Tue, 20 Oct 2015 09:58:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp2197548lbq; Tue, 20 Oct 2015 09:58:46 -0700 (PDT) X-Received: by 10.68.129.6 with SMTP id ns6mr5129817pbb.77.1445360326131; Tue, 20 Oct 2015 09:58:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id uh9si6455395pac.58.2015.10.20.09.58.45; Tue, 20 Oct 2015 09:58:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752700AbbJTQ6k (ORCPT + 6 others); Tue, 20 Oct 2015 12:58:40 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:37085 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752162AbbJTQ6h (ORCPT ); Tue, 20 Oct 2015 12:58:37 -0400 Received: by wicfv8 with SMTP id fv8so38421771wic.0 for ; Tue, 20 Oct 2015 09:58:36 -0700 (PDT) X-Received: by 10.180.188.169 with SMTP id gb9mr30228388wic.72.1445360316017; Tue, 20 Oct 2015 09:58:36 -0700 (PDT) Received: from mms.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id ex17sm20092069wid.23.2015.10.20.09.58.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2015 09:58:35 -0700 (PDT) From: Georgi Djakov To: sboyd@codeaurora.org, agross@codeaurora.org Cc: mturquette@baylibre.com, linux-clk@vger.kernel.org, bjorn.andersson@sonymobile.com, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, georgi.djakov@linaro.org Subject: [PATCH v3 2/8] clk: qcom: msm8916: Set the parent of xo to xo_board Date: Tue, 20 Oct 2015 19:57:54 +0300 Message-Id: <1445360280-2347-3-git-send-email-georgi.djakov@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1445360280-2347-1-git-send-email-georgi.djakov@linaro.org> References: <1445360280-2347-1-git-send-email-georgi.djakov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Original-Sender: georgi.djakov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::230 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Remove the hard-coded clock rate from the driver and set the XO parent to the on-board XO oscillator that is defined in the DT. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/gcc-msm8916.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" 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/qcom/gcc-msm8916.c b/drivers/clk/qcom/gcc-msm8916.c index d0a0313d6bef..3c0668b12142 100644 --- a/drivers/clk/qcom/gcc-msm8916.c +++ b/drivers/clk/qcom/gcc-msm8916.c @@ -3360,7 +3360,7 @@ static int gcc_msm8916_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; /* Temporary until RPM clocks supported */ - clk = clk_register_fixed_rate(dev, "xo", NULL, CLK_IS_ROOT, 19200000); + clk = clk_register_fixed_factor(dev, "xo", "xo_board", 0, 1, 1); if (IS_ERR(clk)) return PTR_ERR(clk);