Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030207AbbENAZV (ORCPT ); Wed, 13 May 2015 20:25:21 -0400 Received: from mail-ie0-f179.google.com ([209.85.223.179]:33284 "EHLO mail-ie0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754819AbbENAZQ (ORCPT ); Wed, 13 May 2015 20:25:16 -0400 MIME-Version: 1.0 In-Reply-To: <1431451444-23155-19-git-send-email-rklein@nvidia.com> References: <1431451444-23155-1-git-send-email-rklein@nvidia.com> <1431451444-23155-19-git-send-email-rklein@nvidia.com> Date: Wed, 13 May 2015 17:25:15 -0700 X-Google-Sender-Auth: o7jBOAeLuIulIlAKusOV_iRPEB8 Message-ID: Subject: Re: [PATCH v5 17/21] clk: tegra: pll: Add logic for SS From: Benson Leung To: Rhyland Klein Cc: Peter De Schrijver , Mike Turquette , Stephen Warren , Stephen Boyd , Thierry Reding , Alexandre Courbot , Bill Huang , Paul Walmsley , Jim Lin , linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1210 Lines: 38 On Tue, May 12, 2015 at 10:24 AM, Rhyland Klein wrote: > +static void pll_clk_start_ss(struct tegra_clk_pll *pll) > +{ > + if (pll->params->defaults_set && pll->params->ssc_ctrl_en_mask) { Is there any reason you're checking for the existence of ssc_ctrl_en_mask rather than ssc_ctrl_reg? > + u32 val = pll_readl(pll->params->ssc_ctrl_reg, pll); > + > + val |= pll->params->ssc_ctrl_en_mask; > + pll_writel(val, pll->params->ssc_ctrl_reg, pll); > + } > +} > + > +static void pll_clk_stop_ss(struct tegra_clk_pll *pll) > +{ > + if (pll->params->defaults_set && pll->params->ssc_ctrl_en_mask) { > + u32 val = pll_readl(pll->params->ssc_ctrl_reg, pll); > + > + val &= ~pll->params->ssc_ctrl_en_mask; > + pll_writel(val, pll->params->ssc_ctrl_reg, pll); > + } > +} > + -- Benson Leung Software Engineer, Chrom* OS bleung@chromium.org -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/