Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2285560lqo; Mon, 20 May 2024 00:19:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFRk2xRL3Oe4T3dXGfIo2OrQJ1sthaz/2w9R7FGaOcqT4P4vYf+TORrBZeG0YTdNaRTZ0H6YvuDAyMzPbYPP7eQb7ikXl+AAxsTL4cjQ== X-Google-Smtp-Source: AGHT+IHAl61LXrmmHUaYjThb3tFIoLfDOESYKoQbsdYLMEc2TBMzsKqvnjWWwzZXvYKo4ZDbuM/l X-Received: by 2002:a05:6a00:21c6:b0:6f4:9fc7:daf2 with SMTP id d2e1a72fcca58-6f4e02a5f45mr33202358b3a.7.1716189573253; Mon, 20 May 2024 00:19:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716189573; cv=pass; d=google.com; s=arc-20160816; b=ZOQKlCix0AFm+5M7sad6Q2G9xtzNKlDCOl+C3xMlRJ5BBcaFU0z2QKYSTsJhXROpcp qRjRASWqZdGqe+3gaQOh51azWEyxKnQbVocdKoahih9WBsw31bBZhj48ui5Gkb4FnxLJ GKgVJ567tXFT8cfwYCRFpPUAHGEhE8yicPUuPc+wftsGNliXUEUZB9d/Cq4MI3vC7eso wO+puOC0ER2mhqBt99hwpyuppPq8+xGDPHUPXgeJcarD+jekoB3ktkQeG8rmtfkrdOHk PJZR/bvQ1QV3vVyrItvMdwBOfMNpoyDbPUxUwZXefLrGTqO6qzYjR5INDd0LdY1GczlB CX8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8y4kuhNsW46WW9yuHhh+VXBJRBrezkcZVwyuntDPHmY=; fh=AB7CMEtdSNU+wAueHQ1s43xYSlO9sxK9Ljds6ITkrzo=; b=Bk1taU8Kg2VDFE5VP3rIh6lFRX1vBha/m9xlj4LgnYKhbNzGyqzoMZBUOWlLEdq6GB wjT0hOG8gnQAKWKh2kr/r4KOzo+mhAcFTXlPTjR1WW/gS/yM6TsD7hNUpj3DvxE+GMqt 7bs1z5LZ8vdPJsjyZxl70tXsfEB2OzORZgSUuw/Jjv+DoMoD/aIgVV5TmXwOwHEYoSw0 xfNFIYU1itFeFoPiH2gwzHzmM4jxs/vYURx11xRP2ak0F0akEak/imV2RhIhs3Chvoge FNxlY9VzMFr05M4r1+yprc2cEif3epWNXfl2JPNR89A+7UhWjYMy7/XgyVk7ZRivnNxu qpbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ET+R8R74; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-183452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183452-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6340b3956f0si1831067a12.211.2024.05.20.00.19.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 00:19:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183452-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=@linaro.org header.s=google header.b=ET+R8R74; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-183452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183452-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 2DB40B213DF for ; Mon, 20 May 2024 07:19:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAB1A1B800; Mon, 20 May 2024 07:19:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ET+R8R74" Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 89983D2FF for ; Mon, 20 May 2024 07:19:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716189559; cv=none; b=Q0TyyjRPcJKCjatpoVcavX99tcDwbZ7jhpNbG61tWtODTp0D6wG+26/fuwBU45OmQHcFXeN8wG59FsaYeGhKyUINk5zsdHIm5OFCahYAvbeMgwWW54ViJiJLSeLGWYUcTYycu5vlujuX2TCfGO1tNWrUAFshg3xVS6Ah6x59L+4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716189559; c=relaxed/simple; bh=TtXBp/y1GJ993Y2IImPK83yaJTrKtBSiVf0gbVNi4Fw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JNuU6M10U13B8eJv1Orxz0tTgJ3apS6f6auOn572QHk++UyvhR2xMMtERYDvPOOhV8bEajlOF02peTz8hxYIcAUbEv2xI/KpWkhzIWUEvjU2x/PXB3rgqj0IKyz3AMyHLP6B+tMl6kBZW9E53Qjkze9phI1oe5hJQiaBnOx+7AY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ET+R8R74; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1ee12baa01cso71020375ad.0 for ; Mon, 20 May 2024 00:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716189558; x=1716794358; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8y4kuhNsW46WW9yuHhh+VXBJRBrezkcZVwyuntDPHmY=; b=ET+R8R74FHqdMda7gwL2lzdL5rjR1XdF5H+ewKW9umw4Wl3P6Xp+gHwA7b/EmkE1Cd fDFKZcVuInB09b9qm2lo9k5TRoKnVkWuKGibSvX3c1+UN4KzoBjF6N9+7gxfOj+wO1W2 66eaRrr6O7nP7n4RwHAWJDTUWtYxp43eQ51nm+EZikab6y6fCLWwrcEIuI1eU/3m94BQ siNXzXrUAdzN5J0gpQ5JfhwYWo8kqq3I3nWgc/Aoah9rYjdq62HZS86P+aOl+RPfGaLH b2qpZTjsfPdYSsx8ccwnvjSD99VQ+poop4OjYAXJHHvtzbcaGUPSnKXGnKQgCDhJdK86 LmAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716189558; x=1716794358; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8y4kuhNsW46WW9yuHhh+VXBJRBrezkcZVwyuntDPHmY=; b=R66MWscXCQpIE5lbF0xs2TPY779BHOUdTWNuNB7VkRtDsZhFgECIYuibUOMt/zRRVb jI2QrI1pjrEEcFhglW+s4dAKKIpiU9Dl7VmoXZK7/uA8oV7alf7DYynrNzOr4QSGJSXb hwzLKWy0HoCLlXCL4x6kB0en3vRwm7mCmn7jGt4TnI20gwfX0Rw6G7+tN4+BlPOAKO3c FLokgBKpiDS+aJm8xj325T5PngbY0QHQcsBAeZUO+vIf4g/QLADJACXHyaPiy8m+6CMB CQVgTJtIwl2xREvfi/Ovo1qF1U/W0+4V/whnNhfW+ysUh05Qq2GpRE+3CHs5kqdW65vX H5XQ== X-Forwarded-Encrypted: i=1; AJvYcCVoUJp5M6yBfzIU9sLZh8nD0+2+P6IGAEH7eSMTye8VQxGQIFPeXv/f3o4QdwU5A0rx+tJNAxQUjLC9oC0kJvSsmcvA1mJ9KTQYOEHk X-Gm-Message-State: AOJu0Yzr9TJ4sFfVT6vUqY1NUSPXdnsyMyhRQELwTTO07n3w4O2t8enf 6yFmiVPYjmGqDcKURKK1tSco5sAGrqxZvzKhh2n0aLlF2Vc/ClCxBhUTtYQSoJw= X-Received: by 2002:a17:90a:e7ce:b0:2bd:820b:7863 with SMTP id 98e67ed59e1d1-2bd820b7aa8mr1147725a91.18.1716189557840; Mon, 20 May 2024 00:19:17 -0700 (PDT) Received: from localhost ([122.172.82.13]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2b62884b837sm21341342a91.20.2024.05.20.00.19.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 00:19:17 -0700 (PDT) Date: Mon, 20 May 2024 12:49:15 +0530 From: Viresh Kumar To: Merlijn Wajer Cc: linux-omap , rafael@kernel.org, zhipeng.wang_1@nxp.com, Tony Lindgren , Ivaylo Dimitrov , Carl Philipp Klemm , "Sicelo A . Mhlongo" , "linux-kernel@vger.kernel.org" , linux-pm@vger.kernel.org Subject: Re: No cpufreq entries with omap2plus_defconfig since "cpufreq: dt-platdev: Support building as module" (commit 3b062a08) Message-ID: <20240520071915.knnmxkjtajbnw7sp@vireshk-i7> References: <657f402f-3c22-48bb-8102-ab35a74444c1@wizzup.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <657f402f-3c22-48bb-8102-ab35a74444c1@wizzup.org> On 02-05-24, 13:04, Merlijn Wajer wrote: > Hi, > > I was looking at switching my Motorola Droid 4 phone from Linux 6.1 to Linux > 6.6, and it no longer gets any cpufreq entries on boot, and I found > cpufreq_dt was no longer loaded. I tried to force the issue by modprobe it, > but to no avail. The same issue occurs on the latest 6.9. > > After a bit of digging it looks like the problem is that cpufreq-dt-platdev > can be built as a module and when this the case (apparently the default), > cpufreq_dt doesn't work. With the omap2plus_defconfig, > CONFIG_CPUFREQ_DT_PLATDEV is indeed set to module. > > When I manually probe cpufreq-dt-platdev and cpufreq_dt, I get the > cpufreq_entries back. > > Searching around I found this debian bug report [1] which just flips the > CONFIG_CPUFREQ_DT_PLATDEV back to '=y', but I think there might be a deeper > issue here. > > Is there a way to define this relationship/dependency for cpufreq-dt, so > that it will automatically load this module? Does this fix it for you ? diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 100760259f70..bb48b674be5e 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -233,4 +233,5 @@ static int __init cpufreq_dt_platdev_init(void) sizeof(struct cpufreq_dt_platform_data))); } core_initcall(cpufreq_dt_platdev_init); +MODULE_ALIAS("platform:cpufreq-dt"); MODULE_LICENSE("GPL"); -- viresh