Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp125681ima; Fri, 1 Feb 2019 00:23:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ3EEPWoHF8af2hBcHRnib1i9r/oQzC1FUtBm4lXK5EC11xQILHZ5U/kbsHApJb/gt2XNQa X-Received: by 2002:a63:1e56:: with SMTP id p22mr1334037pgm.126.1549009430296; Fri, 01 Feb 2019 00:23:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549009430; cv=none; d=google.com; s=arc-20160816; b=Abn9gG6OEX3pPZm38FhoAsN5J6CpoIfHqvlMQnR29D9n6k/uYIJU1PvoHcxr9iPwV/ 2znCUJKhhzJNrFC0wB+QH+vUUWs27EOyxxYZgksiIj++5wt2zXQSKM5VuljLEoFxSd4p o+7GWU9BnZFCa6AUJxfEdNDnlcDdmK3tTg2OzpVXe2VsfRcKpVDJ4URfW9qm5pU7RQB0 8qYIm8V4b/LQoxAzoKwlybdRf5Hubqb4qyuX3A/j2A4HJWEoAbJ4TW3Qq3CI74CQrCvI 38cxskit/k3wdJMevrYJ59ktCPLnDgsEDljXoUGWGrfAwHMleiVEFT41hCR6QB7SJjWE fboA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=DquMX/UQ7Y+pt2OpQ5ZuGmjzH3fXjWsS1SDdDZ4Ms70=; b=ogthcyJqYsd42rjvZ+etUzPm1kxRPXnZraRyelLzM2MyAQza04u6Eg3qOJG/QRfxh+ USVJwe+cbynQGW3v3io2Yrgqw990GQj1b4Wc/VnM/Qn0wWlmcRaoGgESurs2RtAmB2we /1/ZMBIyu/4NdSATp8rJrJOLU1rLM7efTPyGZxx8GeXxB3enaQptibvGO7GZ8PeE2iey IujsTmCOmhE5lxiuYslcD52t+s0rckpuFf7O2lcvs2tb3hbLL+3mUoA+TBV677wu48+B Pay6648KzVsvTRIsL6JIxooRGlQxWwxtjziXEWFGSvJeOZAMQX4QlIRh1MFaMMS+8CA8 zzMQ== ARC-Authentication-Results: i=1; mx.google.com; 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 y12si6584767plk.174.2019.02.01.00.23.34; Fri, 01 Feb 2019 00:23:50 -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; 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 S1728977AbfBAIWl (ORCPT + 99 others); Fri, 1 Feb 2019 03:22:41 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:57926 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728654AbfBAIWl (ORCPT ); Fri, 1 Feb 2019 03:22:41 -0500 X-UUID: f4d92ad28de54b6c9112fb1693ab0264-20190201 X-UUID: f4d92ad28de54b6c9112fb1693ab0264-20190201 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2114098548; Fri, 01 Feb 2019 16:22:34 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 1 Feb 2019 16:22:33 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 1 Feb 2019 16:22:33 +0800 Message-ID: <1549009353.22634.6.camel@mtksdaap41> Subject: Re: [PATCH v3 12/12] clk: mediatek: Allow changing PLL rate when it is off From: Weiyi Lu To: Stephen Boyd CC: Matthias Brugger , Nicolas Boichat , Rob Herring , Stephen Boyd , James Liao , Fan Chen , , , , , , Date: Fri, 1 Feb 2019 16:22:33 +0800 In-Reply-To: <154482488309.19322.1300826887966936368@swboyd.mtv.corp.google.com> References: <20181210073240.32278-1-weiyi.lu@mediatek.com> <20181210073240.32278-14-weiyi.lu@mediatek.com> <154482488309.19322.1300826887966936368@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-SNTS-SMTP: 323FA7B1E94B6F4E0691E4A862BF236DC171CD9DE8FDF8AAEDC9BCDAB7A414842000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-12-14 at 14:01 -0800, Stephen Boyd wrote: > Quoting Weiyi Lu (2018-12-09 23:32:40) > > From: James Liao > > > > Some modules may need to change its clock rate before turn on it. > > So changing PLL's rate when it is off should be allowed. > > This patch removes PLL enabled check before set rate, so that > > PLLs can set new frequency even if they are off. > > > > On MT8173 for example, ARMPLL's enable bit can be controlled by > > other HW. That means ARMPLL may be turned on even if we (CPU / SW) > > set ARMPLL's enable bit as 0. In this case, SW may want and can > > still change ARMPLL's rate by changing its pcw and postdiv settings. > > But without this patch, new pcw setting will not be applied because > > its enable bit is 0. > > > > (am from https://patchwork.kernel.org/patch/9411983/) > > Remove this. > OK, I'll remove it. > > > > Signed-off-by: James Liao > > Acked-by: Michael Turquette > > Signed-off-by: Weiyi Lu