Received: by 2002:a05:7412:8d06:b0:f9:332d:97f1 with SMTP id bj6csp36127rdb; Mon, 18 Dec 2023 08:15:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgJsg1/VU9y02SKWJws9Di/TttAgnatQaeoMe7/2ejS7CWZMPTAxVMfocobCz+W1gjhdIn X-Received: by 2002:a05:620a:4629:b0:77e:fba3:a790 with SMTP id br41-20020a05620a462900b0077efba3a790mr13732417qkb.110.1702916128419; Mon, 18 Dec 2023 08:15:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702916128; cv=none; d=google.com; s=arc-20160816; b=U4en9nMQphArTX44EpsHjnzNrtaHmH6uwOF4YGIZOb7nBS6RT3dNhWXGaBETfYF7f7 LpVQ3kIKvXveFaA5VdruC9WkNCP7HzJZGZKMXCf3lV0fOWZgALl73olX/Scw4dsxwJxM Oy79BLxHaFez2n+Nbf6UnfQ9wqFyhUybxnuqVWcJIG9ZWPhqOc+v3PiapqagIVvCYfI8 WL/6N1Ca5NC5L1eyDOpW46vj0WvllNHdO4SH07SKURH8mtZ4wIGa0BM0va2wRHn1Q3s4 5OE5i0uiL7kfqoktYvHzP9cLLn+S42gY6jY2RRh6GXbdZRkrzXeDMwXWmDCh6qT7mY30 0Eew== 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=NuQkvFoOE7DbmbVDS6evAusjIw9xKO/OIgcTSDhOMeo=; fh=XHqXngksAc513APZ3lwYEUcsV7enk8+w+6ko2Qfv9vQ=; b=QGfzx+32QzxjlKryWmVmM13lJEsacM/IirIv7NiXythxYJEw9CtE6I7VClEpbMbnrx HrAqVnvdrjeIdDmvoNCZg00YyOcg5Mjk3TOWbk3uol9Hh2fSgfkx3Kmojdp1QajKki9T 0jUPzT5bPRSbqqWf7ybkVt8TcUUjoXNoz1wyfmlsESeG1laGje5pmCg5/X4LmxMwod2Z Go6jMSqbpYQaYc8IrOmcpJ8+4i9Lo+a5brQXhGr3KYHFXeucv+UgcH8wRDqVYTqwVUjf iSSsBztxC7Y2XF05kazzStDOYU7MhzUTwSNd5PrlJJCETHNn/jtxF9jEhIcY8oyZ8+VX T45Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nWGuDOgc; spf=pass (google.com: domain of linux-kernel+bounces-4048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4048-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pa23-20020a05620a831700b0077419b27787si23472114qkn.177.2023.12.18.08.15.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 08:15:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nWGuDOgc; spf=pass (google.com: domain of linux-kernel+bounces-4048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4048-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 08DAF1C258CF for ; Mon, 18 Dec 2023 16:15:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB4814239B; Mon, 18 Dec 2023 16:15:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nWGuDOgc" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 54E323D576; Mon, 18 Dec 2023 16:15:16 +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-f41.google.com with SMTP id a640c23a62f3a-a1fae88e66eso373701366b.3; Mon, 18 Dec 2023 08:15:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702916114; x=1703520914; 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=NuQkvFoOE7DbmbVDS6evAusjIw9xKO/OIgcTSDhOMeo=; b=nWGuDOgcCtvNi+SOoTkkdmS+J/lK4NXerT4qi9EGCJiVnZaJttVqDuf7LqIAkC4c3c LuzIa/yrxQQNEPWkw5GuJm/Z4HlUP/QkOaGzgxsEVsQZCsF0aQZe+G5PNYQPAc+ZJX3F G6r74FMDiuCZR4iIRATvw1Flhxa+e2tuodKTCG0Li8M+hLY5F/vsP1V7P8BdwHIXRFDE bnvlZszQlB2bVCpnIobaRnsfsvcAbLR4RJDZls68Y7SRe1idJCmib4HCVhpZcydJjcXY gNwagJgknmKjSpxXhn2JrwHnkAJGVuNNncgTfMS7GyZVHeCPjFTdpyvXHyZKIdbiaz+n 2B4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702916114; x=1703520914; 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=NuQkvFoOE7DbmbVDS6evAusjIw9xKO/OIgcTSDhOMeo=; b=RiKJKmo3KWOQaI6NpwpO4XJTXdh84PqILPHDcczu0GhxUD+1q2oY72aGf86h4+G2C6 LuciRX5/njR7vWiH6NABvYk7HHfAA0UpKKecEnNyAPleHdDZ2uB33FI4FIQLsDSdZrOD dZWBgSevNgtr+xub+4DT/FIso4+pf9ijF6DBt3AXZvXsoezWQPhwGuwbDzYHvdU2ORq2 0g2Gw8QveypG7nNGTa1CL8FsHFRndIU+jY2LqrNX0M/PwoZ8cHRaJa/VpFb2TnBIKQ2y jqei4ZT7puKJ305bE5Bo1D+0bBdj7N09PS/rrPFKF6ER47sDQqvYN9R7P6c9re3suJhF BGUQ== X-Gm-Message-State: AOJu0YwDOAVw5ixz7SZOKtEu1XhXv+6l6Jerolx81/x80yRrRujphXxS ri+rx9JHwSxoMbJzcIRxuaeP3+8VMz/caQ== X-Received: by 2002:a17:906:51d8:b0:a23:6eb6:6b29 with SMTP id v24-20020a17090651d800b00a236eb66b29mr58860ejk.101.1702916114457; Mon, 18 Dec 2023 08:15:14 -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 hg12-20020a1709072ccc00b00a2359f95ad8sm1230202ejc.37.2023.12.18.08.15.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 08:15:13 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Conor Dooley , Andre Przywara Cc: Brandon Cheo Fusi , 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 , 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 Subject: Re: [PATCH v2 3/5] cpufreq: sun50i: Add D1 support Date: Mon, 18 Dec 2023 17:15:12 +0100 Message-ID: <2710663.mvXUDI8C0e@jernej-laptop> In-Reply-To: <20231218155345.476e71ea@donnerap.manchester.arm.com> References: <20231218110543.64044-1-fusibrandon13@gmail.com> <20231218-blabber-slapstick-ab7ae45af019@spud> <20231218155345.476e71ea@donnerap.manchester.arm.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 16:53:45 CET je Andre Przywara napisal(a): > On Mon, 18 Dec 2023 14:55:30 +0000 > Conor Dooley wrote: > > Hi, > > > On Mon, Dec 18, 2023 at 12:05:41PM +0100, Brandon Cheo Fusi wrote: > > > Add support for D1 based devices to the Allwinner H6 cpufreq > > > driver > > > > > > Signed-off-by: Brandon Cheo Fusi > > > --- > > > drivers/cpufreq/sun50i-cpufreq-nvmem.c | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/cpufreq/sun50i-cpufreq-nvmem.c b/drivers/cpufreq/sun50i-cpufreq-nvmem.c > > > index 32a9c88f8..ccf83780f 100644 > > > --- a/drivers/cpufreq/sun50i-cpufreq-nvmem.c > > > +++ b/drivers/cpufreq/sun50i-cpufreq-nvmem.c > > > @@ -160,6 +160,7 @@ static struct platform_driver sun50i_cpufreq_driver = { > > > > > > static const struct of_device_id sun50i_cpufreq_match_list[] = { > > > { .compatible = "allwinner,sun50i-h6" }, > > > + { .compatible = "allwinner,sun20i-d1" }, > > > > I thought the feedback in v2 was to drop this change, since the > > devicetree has the sun50i-h6 as a fallback compatible? > > Well, this is the *board* (fallback) compatible string, so we cannot assign > it as we like. The whole (existing) scheme is admittedly somewhat weird, > because we not only match on a particular device compatible > (like allwinner,sun20i-d1-operating-points), but also need to blocklist and > re-match some parts against the *board compatible*, owing to the > cpufreq-dt driver. The board name is basically used as a placeholder to > find out the SoC, because there is (or was?) no other good way - the > CPU DT nodes don't work for this. Back when this was introduced, this was > the "least worst" solution. > > I don't remember all the details, and didn't find time yet to look into > this in more detail, but fixing this is non-trivial. If this isn't 6.8 > material, I might have a look at this later this week/month. I would say it's 6.9 material. -rc6 already passed and it's not yet aligned with all maintainers. Best regards, Jernej