From patchwork Thu Feb 15 10:19:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 128404 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1582834ljc; Thu, 15 Feb 2018 02:20:13 -0800 (PST) X-Google-Smtp-Source: AH8x225tTJ4j1gLqTpx+TVSbZ1ORHYixyxgfN+uJJHS1ED/O56bLBSVsBOKhJzqBAKZB5Q1pJXQR X-Received: by 10.98.166.200 with SMTP id r69mr825960pfl.205.1518690013309; Thu, 15 Feb 2018 02:20:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518690013; cv=none; d=google.com; s=arc-20160816; b=VFJlu7hUZu0+jcpWfvJFy+mFhn5o27dX/rAQI5G2+fWPyg1HnZgJE+7F/KxcXBmlZt Ccq0dBjQnOUajCGc5Xy3EY1LHDKDewcw+r4rRjdOPgt1Git5b1QP0ouWyDtCbTQbiwK4 wRtXdKS4fmGYUZ4qHJ/QYZUtIKRgs4YnHwsVZlnB69rJD8RNdhQtL8DEze03Y9ytBQ7r OShxDbsl/V10wizPPa8CsvBrXBuLvdPHZmm/L3NzlmW59LDSHBHvapz3QIWsRcYX5BKi xY7/N9Z0l2KdFqQU6+rAv82RdQ3EN48ushuKv/EkYP6Xf3LltR8QZrnE+Vh77CXW1wIB G+OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=42RAbqlGHCZ4eIhegJR7hwQMHc57dkSzwnjgxZb5CN0=; b=hP4aBhzkYy4LqT7GKkzmfUV9OPj1p6gSaCKbsEUVIDbQ6HtcjWkStYJCwmW4F9Cq4R x1kQsXDGSqBazwwsYl/XoezjhBAuiKTAEMBU3PBJueEHL2YD5pimnXFBq2Pf8LASjmcI 1GYDR9dQeVJ7pT+JIY4O6thuKrSpey3DKBzFg+WkMiCUzMIOLTbZ494ryPbPVUQBLFFz k1edCo8eU8r/U+JuRt5xHYhx6pY0Wfr1WDGEH564W4h61XHtHdumRSmySr4pfqCWjBDX K6KIvBy1tRkGNC9BUck26EHVlZLWN/YLre+rU0lkEC8Cop6gATr51stmnHD+BkEFnxSC LMbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=jP1i990q; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si2564406pgq.332.2018.02.15.02.20.13; Thu, 15 Feb 2018 02:20:13 -0800 (PST) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=jP1i990q; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755439AbeBOKUH (ORCPT + 28 others); Thu, 15 Feb 2018 05:20:07 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35207 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755404AbeBOKUF (ORCPT ); Thu, 15 Feb 2018 05:20:05 -0500 Received: by mail-wm0-f68.google.com with SMTP id x21so2053900wmh.0 for ; Thu, 15 Feb 2018 02:20:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=42RAbqlGHCZ4eIhegJR7hwQMHc57dkSzwnjgxZb5CN0=; b=jP1i990qx76Nq19uYMNaGP8I9iMy4BinnUSIDNVqxCEhVYG/BCGMbv2BqBB/RbHH8Y 5lNq80x0uhd4HR/NQ/+kOB3lxwHtabl5lLtn20ZiInd+dmyfcYpJ6HA9+5wNFFAV7R1u /SuEfBHRZUBt4tf3Bl+hVPAla0mw5MgLV47f2XjDmWE28XDp6kMPS/wl+3aPEpREeDg7 2bmQHEKGavjI3ACbJ0FxXP2XRhpplzeXrrv9a95vJ7URSxStMFHgY01MRgVAvwcbA3L4 joudoaj/5sImGBE9O+pi6Y3QKNZRU38ukzjYSkI9bNZS/3CMWLjoYNBjNC93+E3EUtQn aeuQ== 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; bh=42RAbqlGHCZ4eIhegJR7hwQMHc57dkSzwnjgxZb5CN0=; b=E1aB3mk0Ek33aBKhoAfsc6y3eGvGWRpkaKguanpF39lXqXfCA16Sqx0fPMcGZpcCLI IYZrbcb5FoIlK2s9rxSE3lxeZfJIaighsc7he2zDgqdmTe7DBb5RInEFrkuZ9L0XEw7C iCbtk8kNq2VZ2eOiy0MCQuXkMZt1jGr2CG9U9Dq/tjNnHql8RHs21n5P1nO6087X9KXF I64LN/bBHSS0YDmOf5sLjMqTW4AufVteb2wsIuGMAcpcM+HPPm1VVTzah5F4t8yU0Ieh wZSegqK5tvT5PMYYXEUDZzNuyiKEBiAcHaGQ/Fay2znLqtyxElSvCvL8G9d5s3x9V420 OWlw== X-Gm-Message-State: APf1xPC+sVPY9vAQ+ME++jDKgYGE+QFqk5YegV2kBAOwNlm045SfOQM3 K0Qie1ZEubNkQ2RqeJmQSrQ8Fw== X-Received: by 10.28.32.5 with SMTP id g5mr1512492wmg.62.1518690003896; Thu, 15 Feb 2018 02:20:03 -0800 (PST) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id j77sm26128745wmf.37.2018.02.15.02.20.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Feb 2018 02:20:03 -0800 (PST) From: Jerome Brunet To: Michael Turquette , Stephen Boyd Cc: Jerome Brunet , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: fix phase reported being zero Date: Thu, 15 Feb 2018 11:19:58 +0100 Message-Id: <20180215101958.22676-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While introducing clk_core_set_phase_nolock, assigning core->phase was mistakenly removed. Fixing this now Fixes: 9e4d04adeb1a ("clk: add clk_core_set_phase_nolock function") Signed-off-by: Jerome Brunet --- drivers/clk/clk.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.14.3 diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 9d56be6ead39..b33d362239e7 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2314,6 +2314,9 @@ static int clk_core_set_phase_nolock(struct clk_core *core, int degrees) if (core->ops->set_phase) ret = core->ops->set_phase(core->hw, degrees); + if (!ret) + core->phase = degrees; + trace_clk_set_phase_complete(core, degrees); return ret;