Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp859901ybh; Wed, 15 Jul 2020 18:05:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP4u8sQAKYSZgZAUDzv3MxuxuMOvFVu9AaqWO6zP2uwpGBoe+01dc/iRXgIMj+aZjgY4OB X-Received: by 2002:a17:906:4a17:: with SMTP id w23mr1603749eju.360.1594861554342; Wed, 15 Jul 2020 18:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594861554; cv=none; d=google.com; s=arc-20160816; b=uh3aMzBVbNkGoF8+RBQZkvdu/BaPF0mU82AKExCQ+7Q7UpSRfyzcoTvbMqoGNyGqDO PeeyRtD2yxPJdFcT07ZriJjROfe3ErHpUMpg7qMqhFZW7Z4IjRuJuEfDzmF3fB1NzJSp eVwnDVdLJGbOwXfvgEyWaaQ3cMa7tK4JjMIT3/Fyou66mh49R1eECru3bkOm/Lf5usvD On7lap3pgVg4rvm/B/i4CKK7VsayoPOCEX07dNr1QJSWZVD+vy0egV3FbZku5xao1wqK pVkxsKUN0fU1Z1qwNJ+Ab7aUK4Toc7iN//3yUJ0KHzA1qMPEwQg+Rd22OTDCBx1Fgidp fyHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=owfs5HH68rrQ+QI4CluLKuoWrou52Eh0d1Xn4HaZbWc=; b=mWISCldLIS+bKo4cnPvbwvGd0uvyvKY8sps79h82JPXGGRcwB2ckOtEftnie4S+G3i xf9uqaIAew4n/pZWNUmKHot0XPmis9ssOMcKexPH4vF4HEr1PgGoDOJyLhxRnQOnsyZp v0E1VxmcDgFlE7lHTRkrldhU3BQl5HlgC6mqTdI3Aw95tm9VZUXUreE1sYHInDzrQu51 Ww1gFJsq/NpIUhKNPirRSdTT9CfQmURba74Vvbq0DWWYPXSIrtOQNNt2cUgFq/OPNk66 tbVYyIyT9OkzHhVipWvhad/U48rwy19uBUbLZD2NAORWcSrMDILyTGLPMSdumVhrWVUc jtyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ha9iSYJx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g9si2073982ejj.380.2020.07.15.18.05.31; Wed, 15 Jul 2020 18:05:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ha9iSYJx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727097AbgGPBDS (ORCPT + 99 others); Wed, 15 Jul 2020 21:03:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:38886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726479AbgGPBDR (ORCPT ); Wed, 15 Jul 2020 21:03:17 -0400 Received: from kernel.org (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 1F2EF2078C; Thu, 16 Jul 2020 01:03:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594861397; bh=6oZhkB9EWxV3GBYwjhNGD/mi4wQQrv5Y+A8n809Z7PU=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=ha9iSYJxgqg5SF24utqMLGdWN6TNR9WG7Bwyear+4qjGZk8W8TVdt/HY6OC0u/cjK SF8vyHqa5x9AR6BWHFW5aan3mNP4Ijs0k88TKBlAwBXeQWNzzVRBaRqHn7QWiXlDsi +wZyDWTyIBGQCDIoitwQgW/rsoPu13TYYKObhNjU= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20200713010001.18976-4-akshu.agrawal@amd.com> References: <20200713010001.18976-1-akshu.agrawal@amd.com> <20200713010001.18976-4-akshu.agrawal@amd.com> Subject: Re: [PATCH 4/5] clk: x86: Support RV architecture From: Stephen Boyd Cc: Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: akshu.agrawal@amd.com Date: Wed, 15 Jul 2020 18:03:16 -0700 Message-ID: <159486139638.1987609.10837351469119432355@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Akshu Agrawal (2020-07-12 17:59:52) > There is minor difference between previous family of SoC and > the current one. Which is the there is only 48Mh fixed clk. > There is no mux and no option to select another freq as there in previous. >=20 > Signed-off-by: Akshu Agrawal > --- I only see four out of five patches and there isn't a cover letter. I have no idea if I can apply this change or if you're expecting me to ack it. Please help make my life a little easier! > drivers/clk/x86/clk-fch.c | 55 ++++++++++++++++++++++++++++----------- > 1 file changed, 40 insertions(+), 15 deletions(-) >=20 > diff --git a/drivers/clk/x86/clk-fch.c b/drivers/clk/x86/clk-fch.c > index b252f0cf0628..a8aac71a3b65 100644 > --- a/drivers/clk/x86/clk-fch.c > +++ b/drivers/clk/x86/clk-fch.c > @@ -61,9 +78,17 @@ static int fch_clk_probe(struct platform_device *pdev) > static int fch_clk_remove(struct platform_device *pdev) > { > int i; > + struct fch_clk_data *fch_data; > + > + fch_data =3D dev_get_platdata(&pdev->dev); > =20 > - for (i =3D 0; i < ST_MAX_CLKS; i++) > - clk_hw_unregister(hws[i]); > + if (!fch_data->is_rv) { > + for (i =3D 0; i < ST_MAX_CLKS; i++) > + clk_hw_unregister(hws[i]); > + } else { > + for (i =3D 0; i < RV_MAX_CLKS; i++) > + clk_hw_unregister(hws[i]); Can ST_MAX_CLKS or RV_MAX_CLKS be a local variable and then the loop consolidated.