Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6745563rdb; Fri, 15 Dec 2023 07:19:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGtnPsJGTVOvdv7J+chzvfdzWC7knML3ufVtH6ExD47koCMmqgcyS/MXYb86UFCnhI2/7rU X-Received: by 2002:a0c:c48b:0:b0:67a:a721:e13b with SMTP id u11-20020a0cc48b000000b0067aa721e13bmr10877326qvi.104.1702653560850; Fri, 15 Dec 2023 07:19:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702653560; cv=none; d=google.com; s=arc-20160816; b=kD8cbEYpszgzZvgi9kTDB8pVyDU2H2psZQt28k//NG+mNakuRm7kVfBLdZQxDPx5ZK tcrQczH22Qc2ohTsLxX/P4e8F5BGFARNeO8BSaBBEVMt/kdJ6e/jp28xG/gGKbz/IX7T 6AK4czmMzKNyMKGIeAKAa/f5LVN3n3GYO2rhAsbGVfVGngUmt/XSZTPP4eydfuTaQSjn hDKGyRxiRSihk5v2WzQzVf4KE+Z+mkPAFl4/GMbSbKAVAh59dv/QCzXt1Evt1cRCQ4FK rp9A2pN44DGy74r3XmT81YytUorQAAtApWrfiWPTz+qTnEXSI/19ADmhyXk6Rj0A8h77 MHLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=UxtTXwrG/DoJdGtWMfu6YqqiGt2u0eh0tzIyDazjR9w=; fh=Bi8X0Nq+Y5HDf+/FJ/2TdHZcVx7Swbo6iuc9GJYp+dY=; b=uUho+AQlwH0qJyJrpD39QBZIX8ROzWvV7KaRSWmQEVyCeyZmsKuzdwUu0L7reKdjo7 2eJDYQEPiccQF2y78acB32Nx3c5T9/suweBUOmL08PBXS9AcVR5Y4qf+lxUYHwJQJf/Y WM3fHQb1vBVzNdhctWXz3+ygVypXdtKoOvKLCe81IYnhDigWCVKtfZmJ59/0bGq0mdrO fB8xGyumJWsxNPXKDoyEH0eBJFafhqiIkMZgCIgU/t9qX3mIfLbZxBQm4tIYskmqOjZv Op2xoXIGAQqWTLnhxLdEQmn76loHaaYTpWhDi5EEoKVDJKfuellqhotqEbIQK7QKoG6L WO9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MmPp4Fl7; spf=pass (google.com: domain of linux-kernel+bounces-1200-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1200-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id qb15-20020ad4470f000000b0067eab82617csi16916560qvb.232.2023.12.15.07.19.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 07:19:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1200-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MmPp4Fl7; spf=pass (google.com: domain of linux-kernel+bounces-1200-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1200-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9A0811C20ADD for ; Fri, 15 Dec 2023 15:19:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 633863C6AC; Fri, 15 Dec 2023 15:17:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MmPp4Fl7" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5EBF3C46D; Fri, 15 Dec 2023 15:17:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-40c4846847eso8355715e9.1; Fri, 15 Dec 2023 07:17:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702653461; x=1703258261; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UxtTXwrG/DoJdGtWMfu6YqqiGt2u0eh0tzIyDazjR9w=; b=MmPp4Fl74hIz18FfUpdp3OhT0l+KEMnzkv99Bzj//wovrsgBkJJwWk20GMK9PftQk1 gbbYj7VizJv423aeYIXk6Kjlt00Ve1TFJy9+p+u5XoemiIjYylaxE7kSZzJR6SMOk7J/ IYxK4WROIAjMlEL+TZbw3IETlNbYoQKrwncrnzbLB1iz9GwSTscOaW5a6oRECxYYTFDf IAsmgwiZJlF5pMZXxszWLCkkJ+UTGwg7b4HAtOhfuiGXFb9pcpOL5UdwtneczM8nuV5s TRadSa6ih1iDYOqmBVwb/dJLdAllkUFhLnd4+4thNhEmdnDhcqpnXZhPABDMUF/loB1h eGbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702653461; x=1703258261; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UxtTXwrG/DoJdGtWMfu6YqqiGt2u0eh0tzIyDazjR9w=; b=r9bc9KYSYwHCPlps8Fle5QU7s9T5Zz1Ye9Op5xHmm/q41NGJTyjNUwC2PpAxeX+xrO HDA8trrHK2OcqdIujolO1ysubYWG4rzCHqEMnjMwXDMKhxiLoc1tVr8zkZUanehYAYYt 7ck/ei64V8cvDP9fnehFFulqiDfbGRdcqUGpZxth3Yxy4a1OtuixAZ8/ODasHdBG8XTN QY0Mil8zyueraPLL8TkHdNASQNM/X7ZT3tGinE7bd8vR8xy1E6tNnvVNQcGmNMJh0848 rqgPILb/7Kj3eQ2+9g2MPugi80oBNMTNjIuOhacuCwQdtkRnudHXuI01NwVhsD0weQcR oBGg== X-Gm-Message-State: AOJu0YwOzXYvsSR/yWwnwlzrQaUAKdAKhvvaHv35SwUEYQeyIdhcWtUN xVBX3DF17sR9b55R1qhl+7fG+TOIwdCt3w== X-Received: by 2002:a05:600c:30d2:b0:40c:4378:f117 with SMTP id h18-20020a05600c30d200b0040c4378f117mr5479693wmn.76.1702653460855; Fri, 15 Dec 2023 07:17:40 -0800 (PST) Received: from localhost.localdomain ([154.72.162.212]) by smtp.gmail.com with ESMTPSA id bd19-20020a05600c1f1300b0040839fcb217sm29806121wmb.8.2023.12.15.07.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 07:17:40 -0800 (PST) From: Brandon Cheo Fusi To: viresh.kumar@linaro.org Cc: aou@eecs.berkeley.edu, conor+dt@kernel.org, devicetree@vger.kernel.org, fusibrandon13@gmail.com, jernej.skrabec@gmail.com, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sunxi@lists.linux.dev, palmer@dabbelt.com, paul.walmsley@sifive.com, rafael@kernel.org, robh+dt@kernel.org, samuel@sholland.org, tiny.windzz@gmail.com, wens@csie.org Subject: Re: [PATCH 4/5] cpufreq: Add support for RISC-V CPU Frequency scaling drivers Date: Fri, 15 Dec 2023 16:17:23 +0100 Message-Id: <20231215151723.46409-1-fusibrandon13@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231214111702.xdd7qlcrpqh74i3j@vireshk-i7> References: <20231214111702.xdd7qlcrpqh74i3j@vireshk-i7> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Thu, Dec 14, 2023 at 12:17 PM Viresh Kumar wrote: > > On 14-12-23, 11:33, Brandon Cheo Fusi wrote: > > Add Kconfig file for cpufreq scaling drivers that can handle RISC-V > > CPUs. An entry is included for the Allwinner H6 cpufreq driver that > > works with D1. > > > > Signed-off-by: Brandon Cheo Fusi > > --- > > drivers/cpufreq/Kconfig | 4 ++++ > > drivers/cpufreq/Kconfig.riscv | 16 ++++++++++++++++ > > 2 files changed, 20 insertions(+) > > create mode 100644 drivers/cpufreq/Kconfig.riscv > > We don't have a separate kconfig file for each architecture. Only if > there are too many entries for an architecture, we add a new file. > > -- > viresh The sun50i cpufreq driver is currently only available when CONFIG_ARM or CONFIG_ARM64 is selected, so this was the only decent way I could think of making it accessible on either one of CONFIG_(ARM | ARM64 | RISC-V). Any suggestions for a better workaround ? Also I think future cpufreq drivers for RISC-V are going to happen, so we might as well have the Kconfig file. Kind Regards, Brandon.