Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp863125imp; Thu, 21 Feb 2019 12:50:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IbcZdm5/In+c/aWetDqeFrouGgFgl5OxAZWIRU7T4AyVeN066NyksE+EZXhZuak2yODp/7I X-Received: by 2002:a17:902:7614:: with SMTP id k20mr485608pll.298.1550782229313; Thu, 21 Feb 2019 12:50:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550782229; cv=none; d=google.com; s=arc-20160816; b=fMT3+HQAKYRf7HiUsUjBrSR10JxBQvSslCywKXiWUlRzCzyMvj1ekSADhu5jHpRRQT WnodbiaOOs+7BEmlaVmoffvh895LHy2I5XOIk4N/VeFd+tIPgq9YsDQpPUsrsAGnjafb 88wZxpx/vboaYjwo7O2CAdDWZvR/tHObGEIqd7yAd7MEXOEfDNrirDjyk02kXRA1+0Hw qWnyVz80HUSkzQVtHCx4+K0OxDV3mHyszLyVgkQ/vzZuobgnl/759yHtmts2MWivWVM4 We/FLvuQppXOyhnhaFhFdG3Na6j4gPGrEy8t+m0GHB2pHB/yb9KSuzUgaoGKi5nyIiPM 0Pvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:in-reply-to:from:references :user-agent:message-id:subject:content-transfer-encoding :mime-version:dkim-signature; bh=Ra/u2XDK+qiXQuJqC+7rUWqqZWiijqe75jCX5X+uc5I=; b=iOoFADC7O/ysBLs8ALa2g4NmcnB5lgJsX/RgWNPtETjg8AZdRH1LU3EOKes7KUX4pE cL63srstzrjWYq85uaEGur7jjiwEn+Rnm56SQ+brVtGRodKifv5pTa1mAWVMgET+IRut bexJmRPwRmz/xGaPAXFgfXdifRUBnAPnPCBe3LFlH7le9CIfvtk2wmBC3M1KFH4kXaHd 7u4taxJ0xdJMQnjcE6F00XTQ5Eq4UP1riOIgsaiTitOQ9sjLVPQWmv5LZnMT/rCvOA2V V9L1Pno+XYObajzxjE9OmiFuzmsVtayMNx5h1kFySVVj8Pfw3ytigMp7nsyEyxCEf24G isOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FyZuSNgT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z20si22476602pfl.3.2019.02.21.12.50.13; Thu, 21 Feb 2019 12:50:29 -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=@kernel.org header.s=default header.b=FyZuSNgT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726623AbfBUUsb (ORCPT + 99 others); Thu, 21 Feb 2019 15:48:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:48234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbfBUUsa (ORCPT ); Thu, 21 Feb 2019 15:48:30 -0500 Received: from localhost (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BF47A206C0; Thu, 21 Feb 2019 20:48:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550782109; bh=D5uAlfH5MQ+LUH+dDsqRfPtFiwt8vEAS50I5eHRaTLA=; h=Subject:References:From:In-Reply-To:To:Cc:Date:From; b=FyZuSNgTkyV8pMBr7s41jFRncLjFM6I1iWWOcUGoEC1FjptbwxmEqN985s1eZXLhd WygzNYYT1q+IkCu8WIjsQmcSjIw3KaoEMaYJQIIWMgO4WbqElBgBAYN49+OhUmgTie 4ZUoSMHr6b+1K4UG/OD3zPMgUMhT5WiStAGNX0TU= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH V4 2/2] clk: imx: scu: add cpu frequency scaling support Message-ID: <155078210899.77512.5319038009555276321@swboyd.mtv.corp.google.com> User-Agent: alot/0.8 References: <1550108915-574-1-git-send-email-Anson.Huang@nxp.com> <1550108915-574-2-git-send-email-Anson.Huang@nxp.com> From: Stephen Boyd In-Reply-To: <1550108915-574-2-git-send-email-Anson.Huang@nxp.com> To: "devicetree@vger.kernel.org" , "festevam@gmail.com" , "kernel@pengutronix.de" , "linux-arm-kernel@lists.infradead.org" , "linux-clk@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "mark.rutland@arm.com" , "mturquette@baylibre.com" , "robh+dt@kernel.org" , "s.hauer@pengutronix.de" , "shawnguo@kernel.org" , "viresh.kumar@linaro.org" , Aisheng Dong , Anson Huang , Daniel Baluta Cc: dl-linux-imx Date: Thu, 21 Feb 2019 12:48:28 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Anson Huang (2019-02-13 17:54:08) > On NXP's i.MX SoCs with system controller inside, CPU frequency > scaling can ONLY be done by system controller firmware, and it > can ONLY be requested from secure mode, so Linux kernel has to > call ARM SMC to trap to ARM-Trusted-Firmware to request system > controller firmware to do CPU frequency scaling. >=20 > This patch adds i.MX system controller CPU frequency scaling support, > it reuses cpufreq-dt driver and implement the CPU frequency scaling > inside SCU clock driver. >=20 > Signed-off-by: Anson Huang > --- > Changes since V3: > - use different clk ops for CPU clock to avoid runtime check in c= lk_set_rate; > - use rsrc_id to determine whether it is CPU frequency change and= also to get > cluster ID for SMC call. This directly conflicts with a patch to add get/set parent support from Aisheng Dong. Can you please work together and rebase the patch on top of that patch (which is in clk-next) and resend this?