Received: by 2002:a05:7412:8d06:b0:f9:332d:97f1 with SMTP id bj6csp42318rdb; Mon, 18 Dec 2023 08:25:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkXW5mG0axta015Fyii1PQwja01uJHOuILDXbSHYBORcCorp+AvrmDtLWyCwM+8chOhxrh X-Received: by 2002:a05:6a20:1603:b0:194:5981:ae5d with SMTP id l3-20020a056a20160300b001945981ae5dmr1074014pzj.7.1702916713570; Mon, 18 Dec 2023 08:25:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702916713; cv=none; d=google.com; s=arc-20160816; b=kVktN2qwwvq3Hj8KSBF3vi5RbZ0jVAf4XL5K4QiFj8XwxwCncb3bYt0OyllZt2PZJA UtdBxFFcNSMZgJSbNWee+Prtx+KetedrXE2Tq6USdJNugWqi2fWTd8fdzynDk203VwFM slyLRL6uke5ZGJXh2pE7u/J6YyxxOSG7DzYmoMu8MOnX+BEqFF0XnQ4ZjupGWBQx80h+ bLZ4QXsATt4dPVqVkTLwAYXL9NNkhz617gFZbXuFDItLwaw429RvOSQ+SvsaD/CaHlb8 cbFZNLXspXXUGjA4RnERB8nNVGI4Y5XiEtUi0EF3rB1oZ39asygZIhxyysJnv+rSfZsn fsxw== 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=0bezxA4w3BofKoayOrhRD9PM6sHufVYtq2w+UEfMweo=; fh=livrvD2MfBD6HmyiJx/Md7l/3QHJRgLMVqlEfHr3rn4=; b=BobPMaWg9FO4TC6HDkjOnekpEhqLDUrxK238wcXdZMIF43cffFGPBw8DCB2M7Tk/qu +l/37ZUJhqXKgZvk5VN8hRCMt32nnS7pz5YideyhAr521GLCd1T4cVBnMGykZGWtPraW NGT6k9cyW2iwJGBniPjWsUTyoXaYtCtonVc3BWjDJGQ00w3B2XZuhAvGnidyALTotMjX MQl3YixY1yT/5kRg+L6ZRjEQi/A+ReFEuBf3KfMqU7b7NC41tCYjHpeXj+VTO90rnbNP iIyAWW5UAztFK0A4qJFYr8itAoPJztlyx/5jqoVDCvtrmLNZb/HOIciYol7XskfDghHW 44ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bp7stAMF; spf=pass (google.com: domain of linux-kernel+bounces-4049-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4049-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id kq10-20020a056a004b0a00b006cddfbc6095si18279320pfb.26.2023.12.18.08.25.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 08:25:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4049-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bp7stAMF; spf=pass (google.com: domain of linux-kernel+bounces-4049-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4049-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 531FCB20E52 for ; Mon, 18 Dec 2023 16:17:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76B973D57B; Mon, 18 Dec 2023 16:17:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bp7stAMF" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 CE31F42375; Mon, 18 Dec 2023 16:16:56 +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-ej1-f45.google.com with SMTP id a640c23a62f3a-a2331e7058aso242144966b.2; Mon, 18 Dec 2023 08:16:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702916215; x=1703521015; 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=0bezxA4w3BofKoayOrhRD9PM6sHufVYtq2w+UEfMweo=; b=bp7stAMFGAuiGiMOeyZ6ts3Ga2hDTGmygl8FkiAZBqjzwRURMUS4OCyQD04zO+xGmG LaiME3hslPgFuWlfiMRwQrEswv8UD5l3luGVx93JMOR24FdrjsxI8dESDOol5q6J2x1y uguQRFcr480GZMzSEFVGgeEPyvI264X0gD4W8N/1LV3OMD18NE5X3dEFSciFnLZetaMv raUJUhk+t1DOQ5Va/EEyE9ntF8vYRk0wHf9oycQjpBrM6fK8SpngU7cc+YMWwF7aoYOA ZgmhVL2vaR4PS2wX/ymjmBXCV3vRpRE21I7dmecpAJrsff9xYDWJ01hbmTN/MdDxfZ17 miSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702916215; x=1703521015; 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=0bezxA4w3BofKoayOrhRD9PM6sHufVYtq2w+UEfMweo=; b=pdfm/ZZi5yPmZhSU3ZOn/hv2LXXc1B2hd8kou0u0IjMp1qzJIA9fkDPrptxmVAL3Lp Szkvk1A3WcDDmLuctWwCsLM04lK+jsAhUsQ3OrK/4tIGlaZ38PVdpeLDb8QSFW7kYI18 zQDEiDPnMooHFRq1NhSrL5+Lx+guboWHNM6hTZH36+Uo3U5u5NjSvAUT/QbbJWoiwjIT y1O9Kbk1dFUWHDUZNP7lWsQlfKzFy6cFEHlByzup4xoxpq4436Fghg0LyKlPdwb9S0oJ Pt92gLZoPqrRIpXUMd+BiaDGQviK1o2CnAMF/hZDMtjzHUF0nPzbKTq9kxvk9d/9gZ39 biig== X-Gm-Message-State: AOJu0YxW7BswB1a3wIh0YbrJEnHYDPTJ4ZMoYFHP5Be8Ji4FOjurzNGj SMdT2LdvA9LhONbq/2iWhNg= X-Received: by 2002:a17:906:516:b0:a23:4e3a:a643 with SMTP id j22-20020a170906051600b00a234e3aa643mr528083eja.168.1702916214829; Mon, 18 Dec 2023 08:16:54 -0800 (PST) Received: from jernej-laptop.localnet (82-149-12-148.dynamic.telemach.net. [82.149.12.148]) by smtp.gmail.com with ESMTPSA id fj8-20020a1709069c8800b00a1d5c342674sm14186209ejc.27.2023.12.18.08.16.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 08:16:54 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Yangtao Li , Viresh Kumar , Nishanth Menon , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Maxime Ripard , Brandon Cheo Fusi Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Brandon Cheo Fusi Subject: Re: [PATCH v2 5/5] cpufreq: Make sun50i h6 cpufreq Kconfig option arch generic Date: Mon, 18 Dec 2023 17:16:52 +0100 Message-ID: <5737049.DvuYhMxLoT@jernej-laptop> In-Reply-To: <20231218110543.64044-6-fusibrandon13@gmail.com> References: <20231218110543.64044-1-fusibrandon13@gmail.com> <20231218110543.64044-6-fusibrandon13@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Dne ponedeljek, 18. december 2023 ob 12:05:43 CET je Brandon Cheo Fusi napisal(a): > Move the Allwinner SUN50I cpufreq driver from Kconfig.arm to the > main Kconfig file so it supports other architectures, like RISC-V > in our case, and drop the 'ARM_' prefix. > > Signed-off-by: Brandon Cheo Fusi > --- > drivers/cpufreq/Kconfig | 12 ++++++++++++ > drivers/cpufreq/Kconfig.arm | 12 ------------ > drivers/cpufreq/Makefile | 2 +- > 3 files changed, 13 insertions(+), 13 deletions(-) > > diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig > index 35efb53d5..50aa66cfc 100644 > --- a/drivers/cpufreq/Kconfig > +++ b/drivers/cpufreq/Kconfig > @@ -301,5 +301,17 @@ config QORIQ_CPUFREQ > This adds the CPUFreq driver support for Freescale QorIQ SoCs > which are capable of changing the CPU's frequency dynamically. > > +config ALLWINNER_SUN50I_CPUFREQ_NVMEM > + tristate "Allwinner nvmem based SUN50I CPUFreq driver" > + depends on ARCH_SUNXI > + depends on NVMEM_SUNXI_SID > + select PM_OPP > + help > + This adds the nvmem based CPUFreq driver for Allwinner > + h6/D1 SoCs. > + > + To compile this driver as a module, choose M here: the > + module will be called sun50i-cpufreq-nvmem. > + > endif > endmenu > diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm > index f91160689..98b8e6eef 100644 > --- a/drivers/cpufreq/Kconfig.arm > +++ b/drivers/cpufreq/Kconfig.arm > @@ -29,18 +29,6 @@ config ACPI_CPPC_CPUFREQ_FIE > > If in doubt, say N. > > -config ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM > - tristate "Allwinner nvmem based SUN50I CPUFreq driver" > - depends on ARCH_SUNXI > - depends on NVMEM_SUNXI_SID > - select PM_OPP > - help > - This adds the nvmem based CPUFreq driver for Allwinner > - h6 SoC. > - > - To compile this driver as a module, choose M here: the > - module will be called sun50i-cpufreq-nvmem. > - > config ARM_APPLE_SOC_CPUFREQ > tristate "Apple Silicon SoC CPUFreq support" > depends on ARCH_APPLE || (COMPILE_TEST && 64BIT) > diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile > index 8d141c71b..110b676d2 100644 > --- a/drivers/cpufreq/Makefile > +++ b/drivers/cpufreq/Makefile > @@ -78,7 +78,7 @@ obj-$(CONFIG_ARM_SCMI_CPUFREQ) += scmi-cpufreq.o > obj-$(CONFIG_ARM_SCPI_CPUFREQ) += scpi-cpufreq.o > obj-$(CONFIG_ARM_SPEAR_CPUFREQ) += spear-cpufreq.o > obj-$(CONFIG_ARM_STI_CPUFREQ) += sti-cpufreq.o > -obj-$(CONFIG_ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM) += sun50i-cpufreq-nvmem.o > +obj-$(CONFIG_ALLWINNER_SUN50I_CPUFREQ_NVMEM) += sun50i-cpufreq-nvmem.o This should be moved, so it's sorted alphabetically. Best regards, Jernej > obj-$(CONFIG_ARM_TEGRA20_CPUFREQ) += tegra20-cpufreq.o > obj-$(CONFIG_ARM_TEGRA124_CPUFREQ) += tegra124-cpufreq.o > obj-$(CONFIG_ARM_TEGRA186_CPUFREQ) += tegra186-cpufreq.o >