Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp711904pxb; Thu, 5 Nov 2020 10:56:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmMGi9WcwKJLJBQ1Wr8t4dLahZiedlUibARaNQxSn05qu+1VxT2PZUklp2DpuoJqrIR3mm X-Received: by 2002:a17:906:d79a:: with SMTP id pj26mr3681489ejb.378.1604602561199; Thu, 05 Nov 2020 10:56:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604602561; cv=none; d=google.com; s=arc-20160816; b=Kyh9cc3LW4qyi2HqT4yOSHnIrVlstmpmT5aYXOXa5tKu3EynhVRqSeR5hPh2+ZOKjD kRNDSjx2+DRJaPKDJtt4aoX2NARwlLcjptXO3Nj+XY+fOiCZct6YdUp+myVcQrY7kvlq C1fSsJZO5zXktUnQ1l5OmTH5+dMky5fZVv4ICLG1JSyEXMXcJ7CWjJAnUBWOBD5KLfBM iSNuYF1x6ZiiUdQknBGSPIJCr1QRC0Ml22bDN9LQWJ0oMKcF6JBjhnnBOTyQb+jOklAo XAsYFZe3e1uoMSKjHaVFR6gWkudF92kCOvOZ7jiPBQj/sdVa5DDYhYvUwSNsaV9c1muP k4Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=HtLxZkv0TYlH01o2C6+4735a4rHSzmaJuyNckO1OmEo=; b=SodJR7FpOgZGkmH7yuz5LenrtIuRsE90Slq7sdi0mslK75aW8ZWP4snSBUCBUJi2xJ fHQE+2nr3gsy9U/6APJ4zE+hD3LV++MhUnnlqc81EzghXHDoos1Z1AZaB9Bc31J7PPtU IAvghthR0x3oH6EeZF+ZWaEhEBbfUd50gV8lCROrcmyVfLwIbchNLCWrEYEKltR8X0UQ KE/T7Eh2SXZAt1obTtpYxNQrTXY7zE4KN6uEskLwVYmgsV/wH4MGPToxghjUQQt/Dz5y f77Ypv6WS6Bra00gfYhUMJahcqgbdeuBFHRWJ53FHuGebx5AXIgh9ybA3+lU/7NsZDsJ /HRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=vubNPTNX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bq23si1729604ejb.529.2020.11.05.10.55.36; Thu, 05 Nov 2020 10:56:01 -0800 (PST) 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=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=vubNPTNX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731149AbgKESyG (ORCPT + 99 others); Thu, 5 Nov 2020 13:54:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727836AbgKESyF (ORCPT ); Thu, 5 Nov 2020 13:54:05 -0500 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CFDDC0613D2 for ; Thu, 5 Nov 2020 10:54:04 -0800 (PST) Received: by mail-pj1-x1042.google.com with SMTP id w20so536671pjh.1 for ; Thu, 05 Nov 2020 10:54:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=HtLxZkv0TYlH01o2C6+4735a4rHSzmaJuyNckO1OmEo=; b=vubNPTNXQb0W2AOa0qY3gSc9NNtvmPNZtHq+hbpfahbGOKrqfc8qEIFLmJR6OjIrnz M2PKlPGln2O2B4T1T5fL+0eOnI93x+JUEpPyca+11W+R0NFkacD7yvvALn3ptG8FC+9J gT6UaSXZVREeguoRzPh8+TsG659OPAXdFkqLjc5NTgqNjAxP1F95L4i7MhGGpJUPb8UQ SefnFxeKpHGoL4suJs1Z4wRUrGHezEQMIAXKUQ+SPVezcECpLxvb75IcsQucNFZIFr0m brJ2tp/B0cUXkZMRbyxyR6GE9J7jC/5iZhbG8g8UtAEH2fDDSYIBtRGTfRCTl7rtsayU sB9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=HtLxZkv0TYlH01o2C6+4735a4rHSzmaJuyNckO1OmEo=; b=tFamSCTPOMxtwSoijufFjYlqHwQsRH8PwutXqbOK28n6YZMBWx0Kdoaho0xNp+YEpq ghCXGynyWNODX6p8YV90+7OB8BKD2yS4G5pUqMdjeGOekQ0h3I9FkmXFsk43iM/z+Th3 zSTRUKgAcQfV5kvDx+Yq5YwM0LE9yEj+fDcVEdy8HnYXP5mjsNjg7xSxwmr1jzw5Z79A dGR+xiXum9gjB21AOHIODK0tylyjYISvLj6WDeBB5UupAoSMZmRe0w15iQq8veoNcN5n fSCs2mtXK9fMcqm7abUcrgOdIS0UO5qc78Mt7HMhB5r8SwWmOeiM7KQIUJka7TjqXHwA uXbg== X-Gm-Message-State: AOAM5327qEgQ4YrDb2hoyGMFkvTusymEKWagwdd5NmEkTvrRkzrDf/rl 5bAfL3JYMJ6cEXrgLzGVqo6uhA== X-Received: by 2002:a17:90b:3798:: with SMTP id mz24mr3696165pjb.46.1604602443863; Thu, 05 Nov 2020 10:54:03 -0800 (PST) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id z13sm3027751pgc.44.2020.11.05.10.54.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 10:54:03 -0800 (PST) Date: Thu, 05 Nov 2020 10:54:03 -0800 (PST) X-Google-Original-Date: Thu, 05 Nov 2020 10:53:03 PST (-0800) Subject: Re: [PATCH 2/4] clk: sifive: Use common name for prci configuration In-Reply-To: <160454441626.3965362.17922436443029310228@swboyd.mtv.corp.google.com> CC: zong.li@sifive.com, aou@eecs.berkeley.edu, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, mturquette@baylibre.com, Paul Walmsley , yash.shah@sifive.com, zong.li@sifive.com From: Palmer Dabbelt To: sboyd@kernel.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 04 Nov 2020 18:46:56 PST (-0800), sboyd@kernel.org wrote: > Quoting Zong Li (2020-10-16 02:18:24) >> Use generic name CLK_SIFIVE_PRCI instead of CLK_SIFIVE_FU540_PRCI. This >> patch is prepared for fu740 support. >> >> Signed-off-by: Zong Li >> --- > > Looks ok but needs an ack from riscv maintainers to go through clk > tree. I was worried it would break defconfigs but it seems that the arch > selects the config so this should be OK, right? Ya, looks fine. TBH the whole Kconfig.socs thing was probably a mistake, but at least in this case it makes things easy. I was going to suggest spliting the Kconfigs out so there's a _FU540_PRCI and an _FU740_PRCI, but looking at the code it doesn't really seem to buy us much -- just that one offset table we could toss. Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt >> arch/riscv/Kconfig.socs | 2 +- >> drivers/clk/sifive/Kconfig | 6 +++--- >> drivers/clk/sifive/Makefile | 2 +- >> 3 files changed, 5 insertions(+), 5 deletions(-) >> >> diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs >> index 8a55f6156661..3284d5c291be 100644 >> --- a/arch/riscv/Kconfig.socs >> +++ b/arch/riscv/Kconfig.socs >> @@ -5,7 +5,7 @@ config SOC_SIFIVE >> select SERIAL_SIFIVE if TTY >> select SERIAL_SIFIVE_CONSOLE if TTY >> select CLK_SIFIVE >> - select CLK_SIFIVE_FU540_PRCI >> + select CLK_SIFIVE_PRCI >> select SIFIVE_PLIC >> help >> This enables support for SiFive SoC platform hardware.