Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp147695lqp; Mon, 10 Jun 2024 23:06:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKuGBvyOQRTVE9ukd0rPEkwDdwvvMPSgpQocU/ps0pc1wWcjWNM8EFXd2XBq50nbMlij7dA0tocflM1mYNWfXCiGyueLmYsNsMR15TZg== X-Google-Smtp-Source: AGHT+IHxfK2SPuh30nELKlAgptkpfQTPm00ojVrlPzLBjLNnjX2KIC7onskDZKOMuQt0ajStQfj3 X-Received: by 2002:a05:6871:694:b0:254:97b8:4ea8 with SMTP id 586e51a60fabf-25497b86f52mr10315822fac.54.1718085999347; Mon, 10 Jun 2024 23:06:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718085999; cv=pass; d=google.com; s=arc-20160816; b=nnxELEXYIn8zCB5n3y18puYBv++0Nr3Vkkyjmq2rpUP+8pr11kDiEl/rHMdNFXleLH YQwrsdO52+eNLlR0sOJ3LRFjIJEYkZPkeAOzQ9Jiuk4n5AW0XZowEhTQWN9e53nsGMTI 7OrO9kic00yXGZLyPa+w/OGlSxMTuhmGHSw/C8e59s54n/9sxlNPgRoTmSffTRLG4Yee duzQPRQnw3HZIMMxj51/jh1154zAal0LPp67HF2UQr0LyN8Ac5C7LDZuxKhs2pNePVH9 hlSYjidYdiuv2QiW+5kFxULBLCvx/oDWrpxayqbB+bAXHkvA1Yk5XMdVWMaHXqt3/jE2 u2wA== 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=ET389+UsQicSdzgw907HZAI0unQUJK7qvcjpNI2Srro=; fh=FbdyKYbq2uFhulovoJK/nAPzSS30+pq0PW38cjoML/s=; b=INUUO1SynIP3UIMcsmmu1umx7Tx0tPeJb3WI3jpeUmL+30KCMd/qLJbC302i9Cgm9E 51kanCY8LV5jZTrJreqJSHmWKOJ1Ne141AaRG1bIYZv6Sgjhd0tUakN8XfglfiH7KFWn NJgBTVT0LLm9GtYMLlYGZJquHvhfvH+5zq59+Z9UgMqtKubF/P4tLQojgKRkLAFbJaet Qn1RHqTVJW5KfsipN0R4Lqd3XoaKdCig40KQEFacFmPxZ5pfwHvk2ezGO+6GWMSXYmwA ykGlWyxkN2jQ0HFwLHwy26xWEZclmkmFIAusGGUpC1ntjvqo/xKC/2hXTIBrrswzRLAr PAVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xthhKOTJ; 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-209280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209280-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-6de261c99cfsi9067384a12.327.2024.06.10.23.06.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 23:06:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209280-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=xthhKOTJ; 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-209280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209280-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 667E1B26EE3 for ; Tue, 11 Jun 2024 05:34:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 118E4171663; Tue, 11 Jun 2024 05:28:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xthhKOTJ" Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 CAD21171651 for ; Tue, 11 Jun 2024 05:28:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718083706; cv=none; b=WC+70C5l688lPFVV1xoX+Vh9/SXD1K+5kbk+CbbPdE6yOh+/Q+U3ZTNv+OmGmCku8892MMPLg0jR1tVXUEkQ2qgtpUz1NeRosSR78F3le2sYf3aXdpMWdRhd0XLQki0O7RCkmOQiG+iQt71sul7QEusF6GnrZZaRfvQXTbY0hPQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718083706; c=relaxed/simple; bh=fzzc4a0DkDZ++C6R6CbvYeBpAZ2JN/F4aJ4Q2fbckzw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sswR2Q4oLs1w/0fJYyRFBrLFD2EltXuq+E869zv3mqwqBjm1vnhDoy3F1Lqxma3gn8qCNGXsQ0ZyfURfHxDbcc9gsY/C9xxU1p/eGtqSXd3X1jVn6eM5ArIEX4S5UtDU5pkO/owDSRRKrWYrp9bgx/PPouqYT5vV90cCifZWofw= 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=xthhKOTJ; arc=none smtp.client-ip=209.85.210.170 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-pf1-f170.google.com with SMTP id d2e1a72fcca58-70255d5ddc7so640068b3a.3 for ; Mon, 10 Jun 2024 22:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718083703; x=1718688503; 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=ET389+UsQicSdzgw907HZAI0unQUJK7qvcjpNI2Srro=; b=xthhKOTJT9DMob+wWExahzjmugZS1M0ey/hP69BcKsohfluMexz9yjqsJvtv5qBHvK wEhC0aZDySjAqgiV/qC1d3ZtRxEIYP7tVOfEOZHdSa0qnhSCZd688vxBMN/A2NQk1eoO qzhcfTI/jU3Eun7hLwnF2aAfhF3Eccg41A80/csDQ1CLVil9p2UV12UuD5TSpuS1voDT oBym1Qv/AvZ/TOo9C8x3kCDRJg9Hg5Zf8bvRpY+3zLRVZqBk1WIovRqi1FwZ4eAZkUDs KHBN+0Pj+xohlhpUDeAOV5e4ubAdn05bHlkcFBPZoY6wQ0LTVvDtmDFRKLwq46OjECaB Rlhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718083703; x=1718688503; 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=ET389+UsQicSdzgw907HZAI0unQUJK7qvcjpNI2Srro=; b=KxvuWy78RfKBMmXbZa57AXc1VFAc16HMTt2ZzsC28iwEEakBZgNaloY5eVjdkdCcPB PevUWLA8CIzTgGWZeOOMjwGLrV/OuCYj1l30jP2HQk3TY25x6nOqvBHezdgLBP3ZVhRD YdXedT4qe8htVzV1+I2c6B4N4ivCSJSAFmpDvGbLqDx8Zby1eKq75SqAMK8VMShJLF4u sYEGg3+261dbMdHgm2YWBhYwuDD9l+Hu72jmjHTBrwHCeZh/Jqoq7CcGpHbZc7rRkRWg QIxUwEW8vAumNknfogfKkC9zwwYq1Aq6oKEblxwR1jzjfAygJNhVpzljs2IW9QEt0R5o 8h4g== X-Forwarded-Encrypted: i=1; AJvYcCVBvPFPcKeYMPq9VsogtaWVXk4pfvogBu1JhhdV6mIIuIBLLH7E0/o2KzCiKQNfQRjsDQ1WXwuKPlCJkahRmELXUlYvAGP0lNYLkoej X-Gm-Message-State: AOJu0YyQYyogEOyByGH4a9DllUdNw8aqtIwOoAkICUi03vGPoXxkM3Le 0F0iTAS5OO8OJa4UB9PG6Eu27jyI/FcoPMJX4qDTxBpxpVFrBtXbwGlt4ADhbJU= X-Received: by 2002:a05:6a20:3d8f:b0:1b0:3190:96d6 with SMTP id adf61e73a8af0-1b2f9a61073mr11385614637.34.1718083703368; Mon, 10 Jun 2024 22:28:23 -0700 (PDT) Received: from localhost ([122.172.82.13]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6f96f18e8sm48765795ad.230.2024.06.10.22.28.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 22:28:22 -0700 (PDT) Date: Tue, 11 Jun 2024 10:58:20 +0530 From: Viresh Kumar To: Primoz Fiser Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, upstream@lists.phytec.de Subject: Re: [PATCH 2/2] OPP: ti: Use devm_pm_opp_set_config_regulators Message-ID: <20240611052820.tp3xoto5fbd7figr@vireshk-i7> References: <20240606113334.396693-1-primoz.fiser@norik.com> <20240606113334.396693-2-primoz.fiser@norik.com> <20240610042250.xccda2pr277v6asf@vireshk-i7> <00ec4120-19ca-4b20-85d0-754c05bdc669@norik.com> 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: <00ec4120-19ca-4b20-85d0-754c05bdc669@norik.com> On 10-06-24, 13:39, Primoz Fiser wrote: > I didn't because of: > > config ARM_TI_CPUFREQ > > bool "Texas Instruments CPUFreq support" > > > is a built-in driver. This driver has confused me so many times.. The driver looks like a module, since it declares all module properties but is builtin only :( > Anyway, I guess one could trigger this also with: > > $ cd /sys/devices/platform/ocp/4a003b20.opp-supply/driver > $ echo 4a003b20.opp-supply > unbind > $ echo 4a003b20.opp-supply > bind > -sh: echo: write error: Device or resource busy > > so the error comes from drivers/opp/core.c block: > > /* This should be called before OPPs are initialized */ > if (WARN_ON(!list_empty(&opp_table->opp_list))) { > ret = -EBUSY; > goto err; > } This is a different issue, which is unrelated to what we are discussing here. It happens as the driver has registered the cpufreq device from init() callback instead of probe() and remove() doesn't undo that. > > The only way to get this solved is probably by introducing a remove() > > method, which clears the OPP config and stores the token returned by > > dev_pm_opp_set_config_regulators(). I will apply the V1 patch itself now. That is probably the best we can do for now. -- viresh