From patchwork Thu Jan 23 11:35:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948192 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4B9AEC0218B for ; Thu, 23 Jan 2025 11:40:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0kw2sM+GGGQCvi7C9fRiq4muvzn9J9eRfRdcwd5c9mE=; b=GgqZEyC7KTsNb9C45Bn42dkXSy nSnvC+vjDJ51RXiWiizj7+P7zani1ixkEE63IXcZHGI5iYYWEc0jbXQfvaz7bTJOVU+hdIFyjLRtF 1kHtM1TUprZ521qjFmowGtCpiUrbASs27ON7JrzJIPYfGUwV644kuV7TsqeCi4UczE+4i+fXy4xOK 6jRwOhx+YAQKrpfbZhFvgzq1J90ipusqjgaEuDfSzi+nw3Ola7fl7ZY+SK+VgvZkS1qjNvO1fXi1z i+EPY4URoHFQ+nFQwJ1c84BaaDdivG/GXFoYwMYkHfS7Q5uw4u5+YLHYNhcgvuMEYDFvBXwEGFG0g SYkAAm4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tavZg-0000000CMKt-3LWi; Thu, 23 Jan 2025 11:40:40 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tavXK-0000000CLmG-2Pl8 for linux-arm-kernel@lists.infradead.org; Thu, 23 Jan 2025 11:38:15 +0000 Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-2ee8aa26415so1507111a91.1 for ; Thu, 23 Jan 2025 03:38:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632294; x=1738237094; darn=lists.infradead.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=0kw2sM+GGGQCvi7C9fRiq4muvzn9J9eRfRdcwd5c9mE=; b=YPmjivc2y69Z/iySLElDP7nxWFnQWybPgFaSFCfL4fqR9FMqn6xM7pBIwJOKYX+I0W C7uTkM5X+CUZ5mh00SQfGYRcXxh5EsVXT+hJ6e+F7Y3tblhy2uN1FZE4cPjLVf8SLF3E qJiFmIrpL/ASxM2mRbpFNHNemr5GES57GVbVlIACSnQR/wHv+PZNfSmMYjjcUQ7UpnSh y2VDq5vsgJxxeRFWmnqSxUcT/3bUoZ9qswhfTIcToXIzggYE7vbdVVpiGVQ0zsYEgBIA 4ufCQfkZ0B9q1pOxsYALPuqra+5Eo8DY/Ut/ykNd+9otNSsorSeNXSmkoUfEEMyNUD/y vwpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632294; x=1738237094; 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=0kw2sM+GGGQCvi7C9fRiq4muvzn9J9eRfRdcwd5c9mE=; b=IZzI763ZMqXOULDhg174F1WfHQTDn9IVnIexnXZxAHPSIO+LVYtXL9AIBsGUvPkfoL 2eLqyLcEMPEQ492d6wClxl8/pwTUT+p7sxphP5+y09dLQtPlkIqnF7nJygy5/7oy9NGw bZ71NKOHZ1mscOziu6hUf4raRpaxDz/auKffcEtDX0rs9soiwII8SgLSOUbQKA3U6K57 WFNou+7ByMaibxPnMU3c2Cz6pyyq4KTnpdGlPl/zxgqOvvWUycg2478LKt/8kTGQ9L6J LaFT+j7wbvjwPMUaXvHtISY0uhxVDPllCL2xN1VA9s8lG5E8JiXkZ393nT/BytxL/LGw kf5w== X-Forwarded-Encrypted: i=1; AJvYcCX8Mz9KyWLPjgUnxVoa9TDx/TYwjOq9X1Bjdiacdj0ybw+Zt/RkgBHm4ZayaDZFjANAsRT2QjD/+4Zm2S1fykpU@lists.infradead.org X-Gm-Message-State: AOJu0Yyqdpj3DAevNYu1P+E61hYkUnCI5k43H5OPx9caYSPhGpggrrT5 4yfdnYnBcqcUA473/xJkhkKgKVEF4MfY/D29hLmHs6SNR515aLw8BvrKOnzxGbk= X-Gm-Gg: ASbGncvShxli6BE8ETaSdyH7gU+zk6vTguHI8InRuLb0LZYH3hdggc2bNe6Wloef+79 TCGXP4og4RSKUym+mt3fc1wdUH1LLrhcF7VGq0aRvqj+nN7UxaewwsPxkB+8Z1EgVs7IPVnC/R/ ATY5Qhp0N91As8yYVLeJ18wwI35deIH2tgU5t7peYjZTm8MWiAik2mu3caX0M5o7gbgJX2sNp7/ PnCOODQJ1ag4q53UgkMPezvGqX+9W3fMWOWmFwnRgs7iAGDb7QdkiPW46RhNEDio7Zf00CMSnQ0 YLFWIIA= X-Google-Smtp-Source: AGHT+IHWLM3diQyfBwkugU/sw/GmrdkJCg0OZDXV8IndopAoO/pn5U57ZDPYAMTatmutRubStW8Kvw== X-Received: by 2002:a05:6a00:10d4:b0:72d:8fa2:9999 with SMTP id d2e1a72fcca58-72dafa03124mr36163356b3a.11.1737632293795; Thu, 23 Jan 2025 03:38:13 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab7f06c3sm12714223b3a.20.2025.01.23.03.38.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:13 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Hector Martin , Sven Peter , Alyssa Rosenzweig , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/33] cpufreq: apple: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:40 +0530 Message-Id: <17e7f171a63d9104a0688d223539d36feead8790.1737631669.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250123_033814_634948_F00BEBF9 X-CRM114-Status: GOOD ( 10.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/apple-soc-cpufreq.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/cpufreq/apple-soc-cpufreq.c b/drivers/cpufreq/apple-soc-cpufreq.c index 269b18c62d04..6ff604a0fe79 100644 --- a/drivers/cpufreq/apple-soc-cpufreq.c +++ b/drivers/cpufreq/apple-soc-cpufreq.c @@ -229,12 +229,6 @@ static int apple_soc_cpufreq_find_cluster(struct cpufreq_policy *policy, return 0; } -static struct freq_attr *apple_soc_cpufreq_hw_attr[] = { - &cpufreq_freq_attr_scaling_available_freqs, - NULL, /* Filled in below if boost is enabled */ - NULL, -}; - static int apple_soc_cpufreq_init(struct cpufreq_policy *policy) { int ret, i; @@ -321,7 +315,6 @@ static int apple_soc_cpufreq_init(struct cpufreq_policy *policy) if (ret) { dev_warn(cpu_dev, "failed to enable boost: %d\n", ret); } else { - apple_soc_cpufreq_hw_attr[1] = &cpufreq_freq_attr_scaling_boost_freqs; apple_soc_cpufreq_driver.boost_enabled = true; } } @@ -360,7 +353,6 @@ static struct cpufreq_driver apple_soc_cpufreq_driver = { .target_index = apple_soc_cpufreq_set_target, .fast_switch = apple_soc_cpufreq_fast_switch, .register_em = cpufreq_register_em_with_opp, - .attr = apple_soc_cpufreq_hw_attr, .suspend = cpufreq_generic_suspend, }; From patchwork Thu Jan 23 11:35:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948193 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 981E1C02182 for ; Thu, 23 Jan 2025 11:42:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OpVXuYPIOo1AMkujzDGS3Xg8DYJdil+zOZbNi+qKPE0=; b=z1+Xm9BEQmvw30vzTfrlSbqYgu grSdWlQVWyD5T5GwUyR+XVzrjYBhi9jXNwxfcSLHGIUzlsbKmH6d2799IqkmjcqfqKEostBkU5OV3 3u4VCCrg46Gou5WlE3vosmbxzJcK9yuht4Ag5VQyzFukmu2QC8Z9jj5yIwFdAdqaBJO2/u7WXMDK3 IO8tyk3bvRFhTIXyAv/DDn6FNA3H8y9zh8dbNq3GZyJI0zfLuEEc33FNO9mliHBPrifU+IVh99VS1 RhyrI9/CQJuGnPIY4x5kN8cwjmcXl0SQXlBbQrCQS3/Ipo6Q28GcJOgTDmieIKkagk6LOAYWu/a41 PQl2LqcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tavax-0000000CMdy-2FOu; Thu, 23 Jan 2025 11:41:59 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tavXR-0000000CLnQ-3AwI for linux-arm-kernel@lists.infradead.org; Thu, 23 Jan 2025 11:38:22 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-21649a7bcdcso12430695ad.1 for ; Thu, 23 Jan 2025 03:38:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632301; x=1738237101; darn=lists.infradead.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=OpVXuYPIOo1AMkujzDGS3Xg8DYJdil+zOZbNi+qKPE0=; b=OaQWOknh5w4nF4Do5+aKw2XY66Dyqa4HWbyoMpbq4UEoEsv0ZPeqQlSDyUKJPH3MKP fPYIvU1r1vl8o7znJ1Kikk28a7sgtRCAvUcTDEf1rehZIgJ2u78/fq3nsG5/dAuhetaR zzclC6cpjko/dv0YDve52SAOoB+uZ9NnPzPsSLqEDs7S8dAKcODA3Jb6HG6sm4YPQU1n OnOGF+aoMhoUz1BWouhgtEQfFj4knZ2dANyF+xsP7uZk/yAOt1rDYqU5pzhfdvfoAI6U mYH0ePvNmIKdENMCEDVy1GR6y9Oze+SMRdHUuS1sJ4bVk6UvS4zr4YrOiMuXm0EnA9ip 3uBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632301; x=1738237101; 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=OpVXuYPIOo1AMkujzDGS3Xg8DYJdil+zOZbNi+qKPE0=; b=ZBborRTgsB8MkBN6yEVmyOWqXrD1FIksfhtH6+qz3r51axJAj8U1UEOaSKO0meQVdV G4QMq0iiTQkbIgQWJ3jCKocaan8OrizjOgM0qWzjIJfsPNZYxEOR8x3O1rF2ZNg/mMnX vnhV/FvHMCbZJqIEb1wb3xejvx+z/F95lKYfUcykoxOpszBEpd/iCQtHGZhRRQH9Jg+A jkqIfM02IYXP7eZugaewrs4EgXjUBP+C2Q2BN+lhuWQanzeVsWlYPHLfK4b+Y0iz+622 TUVs794bH6uXMwjgjIWHyGVO7frdDfsqWX6rUjTL/UWdJ+6mlqqBxKrN0WFW1u17tccd fFhQ== X-Forwarded-Encrypted: i=1; AJvYcCVdf8UJ3K1CspqzRWuNkFbxpV3yToyAcZf9bIDLAeLcyNcjJb+F63+ic+enNEtg2skFK0r8jBQwSPzZavQWpEut@lists.infradead.org X-Gm-Message-State: AOJu0Yxtb7hWIiq3UTwE+HKLq1cAvIS9zjRPCKUIOfi6J9RUaBTV0yIu KLorrF4EycU2EhybO3usw5Hf+fMIXXQvwGmlLLQxTjWfiO4AhxLC/gZooCQWXq8= X-Gm-Gg: ASbGnctK1hYofuXavLIpc+AeBCBI8cAh8jKX4B2omxGJYLkZFaK5ZBJQKdVmKOdR3kl zIX/ndWS1Hp5j73uGkji9BWOpughR4OScr0yDn/gTXCKQQUmd7vTiPWG+9jDjicoAwDCGMntFmd 6kdP2pGWEl0KMVYj+VoARrDBvgRgOyuWW4ewOA1W8rWDUfB3pyUEJU/fIjFKHfqNyXTgnYYPCCM A8E5moDVlm35HUJz7aiGwQAYz9s5Xqrwg4dMGT8Vfhc+c+SmGRXcUVIcdfi8UVA4izmUdyws5Kw ibfcuyQ= X-Google-Smtp-Source: AGHT+IH/XL+a1IKlocNRJcPr/DB+WeQS0VytU2SOKmpvEEPtNpqG4MYiPimBgaGTBbIa0Va5cHYLyA== X-Received: by 2002:a05:6a20:4307:b0:1e0:c8c5:9b1c with SMTP id adf61e73a8af0-1eb2145cb94mr39891344637.9.1737632300901; Thu, 23 Jan 2025 03:38:20 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bdf0b7041sm10951980a12.75.2025.01.23.03.38.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:20 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Markus Mayer , Broadcom internal kernel review list , Viresh Kumar , Florian Fainelli Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/33] cpufreq: brcmstb: Stop setting common freq attributes Date: Thu, 23 Jan 2025 17:05:42 +0530 Message-Id: <3e6d8f8ac58727a8ca4d2a57fd90600618085936.1737631669.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250123_033821_792007_D96254DA X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The cpufreq core handles this now, the driver can skip setting it. Signed-off-by: Viresh Kumar Reviewed-by: Florian Fainelli --- drivers/cpufreq/brcmstb-avs-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/brcmstb-avs-cpufreq.c b/drivers/cpufreq/brcmstb-avs-cpufreq.c index 2fd0f6be6fa3..7b841a086acc 100644 --- a/drivers/cpufreq/brcmstb-avs-cpufreq.c +++ b/drivers/cpufreq/brcmstb-avs-cpufreq.c @@ -720,7 +720,6 @@ cpufreq_freq_attr_ro(brcm_avs_voltage); cpufreq_freq_attr_ro(brcm_avs_frequency); static struct freq_attr *brcm_avs_cpufreq_attr[] = { - &cpufreq_freq_attr_scaling_available_freqs, &brcm_avs_pstate, &brcm_avs_mode, &brcm_avs_pmap, From patchwork Thu Jan 23 11:35:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948194 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 29252C02182 for ; Thu, 23 Jan 2025 11:43:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sYbiAMRoMV0hiAkufuN0q0TYEj4Lvw0IVcfL3LWIkWk=; b=cY1z1+/0psndpeeC074I93NkMi TojI/hU9WMsfta/jFxy2uZmmdJY0zlHkObwTRGCGS9Tl33huuSV8NNAAGTKf2XzsLzaP7Lksf823R 7WjrcoQD5EWemY6EjS4i/J4Icxl72zhJF6J3Q9c0cb3VRQA3tFPdpColnGUIDhtFwadTm4tXiqKeG DIPoDiKDQlZcrfI5Lp1QvMXISazmNI9YM2HIsMsCUEm7Aj2i4xPws3ZjKvzBP8vyz3MlOKLDBIoMZ YvdbMQEORWP44RbYDRo5cCqLeGTuWqERvBkgNIo5Bd9O9T5OuZ/mYks8ZiQ+RdinVP7Pc+0g/bTs5 8REjWGMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tavcE-0000000CMw1-0tlm; Thu, 23 Jan 2025 11:43:18 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tavXf-0000000CLqg-1l92 for linux-arm-kernel@lists.infradead.org; Thu, 23 Jan 2025 11:38:36 +0000 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-215770613dbso8682385ad.2 for ; Thu, 23 Jan 2025 03:38:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632314; x=1738237114; darn=lists.infradead.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=sYbiAMRoMV0hiAkufuN0q0TYEj4Lvw0IVcfL3LWIkWk=; b=cPesnfwF9LMi4kIxF6smbSVhJNR3wvg94s4vk76XrQXL0JsM+6io0DB6AaAjVkISSJ DiVbYH0Q2HhQbsi2Q6vlO3j+SXbhKJPY0jzKFOjEo1Xk1XAkXSWdcgnL9vOILly7D6AY ir9ak+J8D3gTZc7C7g8X/KLzoSmedm/N3p4gwhzUyNoiPhw6s+OvxRB7VX47Xlw5T+uK 4BpwY64ZJwJ+aaCLZ2ZOf4ahOdYlSBWM53Dgzff62WRCqtyt3gYQqee3lcV033IzaS7i VwYqnzLELAcdNCsO1jNF+I9zMq+0L9h1xxCqBAAH5OZL8PK6Q8koFliYZ5dW3duHBM02 xWww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632314; x=1738237114; 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=sYbiAMRoMV0hiAkufuN0q0TYEj4Lvw0IVcfL3LWIkWk=; b=PCF8Kq+P7nlSgNqJGuUeu8sggl0JbIy0rvpHZ6MqsBVy+iDmDPmPgOPd58jFFMd2TQ dIy/AQ7pKe3boW/mE1Lb9lvGMkO00OAV/hgvVyZ91u558GZ9pgL6yjq8Vd4vpsYMYVGw DoP45fd6ssRpUDXW6xU48/Qjm0X62RN4mZKRBa6QsDokO9Vp+eDgDwayuq2mVh/5f0lS fz7uJ1Q+yTaZ1VjSZ+zrNllR79Sq5Q2ebL9hR5P6IG12Cd3vxWWfpUYgdeDTztfnFllm DtGKoCYPycKYJXvC9Dg/+O/87ISBhwm4kDBlx0mYbl9WRgNfedMd0Ra+TAgULP6QNIO6 ctbw== X-Forwarded-Encrypted: i=1; AJvYcCUGRJIfhCG3MxiFVpKsbHCmfr8w9KpFvLYACPjuOny1hhI0GW4aPi5yPTnfESudCOWWNRiYW2tRrjV6SMXrhj82@lists.infradead.org X-Gm-Message-State: AOJu0YwXDn8YCB/m6Kti8GGIJ+d5UdfufGF1dWUmsCTYncqwcyIjmjtj LtjD6EBP7TF4kw3EfgyZV6zsGmy+h2jUFuNF1S9vMKg1NK6GU+Y3vywdBETRdpg= X-Gm-Gg: ASbGncuPe99a2kYtMqJY5kqq5fH4GkLt/ep4lMnvexAMk8yWtge8nRFutRxyyS6BkWO UIKy6kLmPHYg3AuqPfrPtWOV57lekeVGuJQPt4kKq2eEO2cGoP+/4Z3m7XxmPmBoFr4Z/Kj9ieU bThsabhjD3+db5oQcjki4H4xt2zI/yRtb7yWGOwwlKYmsVDfJqEtfqxobQlME1GP/1TnYldx1xX WZSdqSkz3C+Io/mQK9E0mgBuGTmLGyB4LxuGO6++eNboNDqjPIoDTGdhLnyi4KoeJ2rzpEu5s1J bXkrwOo= X-Google-Smtp-Source: AGHT+IEWmtbirwXj+IQSwqe5xIcegzpevjEjqaadAFbmkiVSRl3S49VNOuJSbdJ9u4+HbITo37I9Vg== X-Received: by 2002:a17:902:d2c9:b0:21a:8ce5:10e7 with SMTP id d9443c01a7336-21c35530380mr379810615ad.23.1737632314631; Thu, 23 Jan 2025 03:38:34 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2ce9e938sm112035515ad.44.2025.01.23.03.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:34 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Viresh Kumar , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: linux-pm@vger.kernel.org, Vincent Guittot , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/33] cpufreq: imx6q: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:46 +0530 Message-Id: <5d3f8c59063edeffb48671025685f0189b052654.1737631669.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250123_033835_454125_3CEA0E45 X-CRM114-Status: GOOD ( 10.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/imx6q-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index f3c99f378ad6..db1c88e9d3f9 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -207,7 +207,6 @@ static struct cpufreq_driver imx6q_cpufreq_driver = { .init = imx6q_cpufreq_init, .register_em = cpufreq_register_em_with_opp, .name = "imx6q-cpufreq", - .attr = cpufreq_generic_attr, .suspend = cpufreq_generic_suspend, }; From patchwork Thu Jan 23 11:35:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948204 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F081BC0218B for ; Thu, 23 Jan 2025 11:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vt1kyyizP9VY8dmYd/NkcYQ7O3bbff4IlhNlXP/VIDI=; b=aSOvrjhdvDzrvOOzlIa/D/jt6r jk5y2/VMWvCGij261KPF4FKg0/uZ1q/SlrcX2k4wXM73Dfoq4KDNCTmIu1MHm39IeR4YAgZCvMYPM 3SBaJSrv3moTH+FnLW98itQGjPRjSpqaMVlOdbai3z+i1jTH6RInQTTaPy7XRIcQyLvtmiPnHfuE4 d9gk5U8HZpIEfjncn/T28W2eohzsepF95eSJO9rxhBoK2Xpawknr2InLXxf2fUjG5jUAdv1KlFLji vRHzp+ObSAPdlB/xfN8gUiFzOVfFSm1R03dE0V4wIfgWgtQe0+kVRFO7fbtLhgyi3X81czKZqrpLf O4O7tqdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tavdV-0000000CNHv-0fxp; Thu, 23 Jan 2025 11:44:37 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tavXt-0000000CLtH-0dtP for linux-arm-kernel@lists.infradead.org; Thu, 23 Jan 2025 11:38:50 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-218c8aca5f1so17061265ad.0 for ; Thu, 23 Jan 2025 03:38:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632328; x=1738237128; darn=lists.infradead.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=vt1kyyizP9VY8dmYd/NkcYQ7O3bbff4IlhNlXP/VIDI=; b=Nu8cHLx5meuN6zoek1hdMzrinkBHimL4XcZbmeqvJBPAy/9K5NydWV/uypjXKD68tT vSivvn0IEavMzmEycm2C/fvKMi4iL3cVfMg9stVU1Z9vkvOo7J6ONk/9jBV9U8KOBlBg GBeNgoWuHQBLHaJIlSa2JXziiB09J5Fg81A0lhF8gfnboqZr1BfpIsSaj4jXZ5JvzpEI wfl7PINRoAQzbpQRFCdatAN0YXA0n4wzgyUFSB8F38r5cVQ6ahk07CUGiajlaKvD0+Gl 3liS9qT/E70SJfWlMpcpM9QZDNIitObDvQDVEUKoIv50CfmjOHwM9IYi5EkSL0bKVM3z /Ecg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632328; x=1738237128; 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=vt1kyyizP9VY8dmYd/NkcYQ7O3bbff4IlhNlXP/VIDI=; b=lupjIV6ohqGzsPB427lUJGUyYs24c2gx5XW6ilJv/ENR36X7lyQfZIvYTc3F4Btnc8 23pVVdU0Dq5CV4K3ggoWlroL7KlAOQ6xV714UUqD1B3e+xnSD1pejK+14KL15DMPJJLm kPpEmgebXVVYD6i8+Fk6Oqru7y7QGk0yZb5ycLadSAiQwMJN9HCToF+Jz2KtDWd3/Izy cTi3w70j0Bur3WCJXQyDGisXlW6vD+OQqoTKAHUzZn3mIbHW+OmafF92pk6DCa+eGu4h 6/rSnr/CCIsB1z/E55PdBqgHPl2X9PcIFjihbiSRNZZmizPNDiSDwFwc0gwVTUPM5J1A t4rg== X-Forwarded-Encrypted: i=1; AJvYcCUJZkoGlLjmmcITmraG081mKEod1aqccpf69t0agiIAjLuNFCiL8O0qtLaDKXiMwhcK0Q+QNy+CFKbLUz3hc9L/@lists.infradead.org X-Gm-Message-State: AOJu0YwZKMRmbNhmQ73qD30ce2eW3ODWWV9uLlrMnFOHuydq0e1L+LN/ TgbhGYxMRZbpBwAGV0brJQ2nUponByIW6+dM86UwVDKS0E4KCwdXWGv9sZluYYs= X-Gm-Gg: ASbGncvz14mE8mo8gcYKvuvT8K3J6wuszHUxpQ7CsW5SPXwE0zIPijgl7euXwKIs8lj FLqgdsICCjDLXEHlD2KyRV2vaZ9UaEqyjcdCjPiYkGSZ1a+E6BpzO+ynYxknHK+7Xc8JwMbdsoA 7hRdh4eUhKL99bKQPCDLVoCUpJXXr3J4YStX5N2G4YeeNeL4ALuiR4KZZ3ZY5cVdHlIa0cMH/on 1m2jsG1AiInDm0e43pIY+aTfuwpXeL34hYz5x1RMq+K8nSNj9exS5ignWtmNW6xrARMgAjIqkLT KlGnDQc= X-Google-Smtp-Source: AGHT+IEDImNLEpDbeExd7a/CwLwEpkI62SjufT/nbplsqzlm5l6MTyrbVsJXoZ25z9KBxH8jSJvHqg== X-Received: by 2002:a17:902:ea03:b0:219:d28a:ca23 with SMTP id d9443c01a7336-21c355eea74mr385862205ad.36.1737632328330; Thu, 23 Jan 2025 03:38:48 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3d7d98sm111571915ad.177.2025.01.23.03.38.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:47 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Viresh Kumar , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 14/33] cpufreq: mediatek: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:50 +0530 Message-Id: <4f57adcf5fa9f3c95d5f86c76a323f0c8bf1a0c9.1737631669.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250123_033849_186274_6D0E4C7D X-CRM114-Status: GOOD ( 11.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/mediatek-cpufreq-hw.c | 1 - drivers/cpufreq/mediatek-cpufreq.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/cpufreq/mediatek-cpufreq-hw.c b/drivers/cpufreq/mediatek-cpufreq-hw.c index 9252ebd60373..aa209f5527dc 100644 --- a/drivers/cpufreq/mediatek-cpufreq-hw.c +++ b/drivers/cpufreq/mediatek-cpufreq-hw.c @@ -293,7 +293,6 @@ static struct cpufreq_driver cpufreq_mtk_hw_driver = { .register_em = mtk_cpufreq_register_em, .fast_switch = mtk_cpufreq_hw_fast_switch, .name = "mtk-cpufreq-hw", - .attr = cpufreq_generic_attr, }; static int mtk_cpufreq_hw_driver_probe(struct platform_device *pdev) diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c index 663f61565cf7..2656b88db378 100644 --- a/drivers/cpufreq/mediatek-cpufreq.c +++ b/drivers/cpufreq/mediatek-cpufreq.c @@ -618,7 +618,6 @@ static struct cpufreq_driver mtk_cpufreq_driver = { .exit = mtk_cpufreq_exit, .register_em = cpufreq_register_em_with_opp, .name = "mtk-cpufreq", - .attr = cpufreq_generic_attr, }; static int mtk_cpufreq_probe(struct platform_device *pdev) From patchwork Thu Jan 23 11:36:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948205 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 064F7C02182 for ; Thu, 23 Jan 2025 11:46:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MdX1SYlxV+BuSD5MpIWAGjJb4j3+Z4eC30JBUmG9pbw=; b=OqMdA6dWb2vnj1ukeMskPq7gwE 8cPJViBQf8OgZCWvjP3yjYkkHy2fORpkoKILYjKqkJQzdFwvFC8iqe2R1fG3MuhM1auuinI7JVMIe I4DICKqE3jvsPjrFk0KSDZoWFVQDsT3hrz/4yjS4y2Xvn+aAuK44Oz2b2fP0iL6yrGUUSK+AlYQib shN2B4qHkU6rh5JhdJSVtgosiRKLT278z978Fu53NFKwJMS2VhKABTWVfGLHKuUjUKtmyQElJY7g4 76eNdZsmEDlfvMUD4swlps4LLIfrlxTPoO0/ltgTp+lo+CMbPkhVJE87w4f3pUk2+XBMrC3z98UtV uNZ7hELw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tavel-0000000CNbC-1RFR; Thu, 23 Jan 2025 11:45:55 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tavYR-0000000CM1v-1W8r for linux-arm-kernel@lists.infradead.org; Thu, 23 Jan 2025 11:39:24 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-215770613dbso8693255ad.2 for ; Thu, 23 Jan 2025 03:39:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632362; x=1738237162; darn=lists.infradead.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=MdX1SYlxV+BuSD5MpIWAGjJb4j3+Z4eC30JBUmG9pbw=; b=Gb7zBvNzolj8LlZUmzydLCdOllSyVTkQdwRyDv9BINp+cT6JerVrE9pVFAvBxAFzYY P7T5c7AEkSXfmYR0A2y7r14jZXuFwmWrH1T/GW2SFO1xRFymDQAyzDSEmgPPDUEdT0hI b8EdZB9aHtGL+/jDlf0dUs2P1FsOEg5rKw52HVZ5pZnGKIfL721yj13bj7yZm2Izu9hy 3//gzr0k3+yHA1elKtJk9jKPLMnAIT2VKbDtW9PoBU/lwENrT6yBzfIt0b2QUuD1ViP/ mseXM+5Piks74wUy2oV+JkGevZajYq7dGtKuwStrEo7Q/wNop9TyQwRwPAmlT+g99AvI aB1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632362; x=1738237162; 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=MdX1SYlxV+BuSD5MpIWAGjJb4j3+Z4eC30JBUmG9pbw=; b=drCwhQE+eiJUjwfBtGddJu8fpGzRRuYJdHRP4/kBo+AhJdE1DcMz2HMy4vaiat1+j0 CkjDYY9EgYhCANbOS9qg6Br9CpgMNrAFFUuHMxlFVrlG56B+JecW9cinhJ87UjwmA6pL uuZH/fNBnOP3xWclrYyZmZCFa73u4V/4231pG1b3VyNQYpy6C38KY9/8BLwEcqr9J4oP ZZqOP9GpEhcMAw4WjREIxoCbpP8Qn1P+DMh55JCXR35H68ew4P/oBeMu4XwCDfSUmIVm krxPYqmEXp8Z+wGPyVkiSFyLlh/fL7lUoaSjTy3UqwQtvhADfS5AoPQFcCWF5CpPouAu Nptw== X-Forwarded-Encrypted: i=1; AJvYcCWykw6tRk9HjhrUq5WWbeQHQBmrPUJzIjPmAInzQYzt+Lfu3Lsqe5CWtljuat6GzDzKgdeXnMoLUi+YZW9vyvTc@lists.infradead.org X-Gm-Message-State: AOJu0YxZZy9PTT+2DesYGvt9/PtzFUISbsr+RKWTioln61zlMsDiEWAy milOsXABPVsmNB4gcrtd/A81cMhuLWEc9zpBpux3fJx+eZ4z5Wcgo9ThKacZuy0= X-Gm-Gg: ASbGncs631MXqAdzfOmmYnDdPI9aMQiNxeC3okrzOZ6Ddxf966KM8WLLPc7upXuZe1u AZZXZp+XpHemZVlqifPHUnGGDB68oaIWWib4QLtQoqgIJk0IfZxZHd9EhdU1mImmpGCLWy4afNi 6/RgrtIXDWL5uktd4RFgt0YkoSt6hxaTTEyoUnrV741Ox0vShoiDaBV4fZceAiahe+k2YvqY03C 1pD9jPvMhhKJ2IB8lds/v7DM7AJEr3fbXdhXHFSScnTbiGl1A6bv0HbLxuQeeruv3lwS5aoqOO4 Hlyoy2+bQXcNvpn0vQ== X-Google-Smtp-Source: AGHT+IGErAbE+NwTrY1AINeQ3Si6MPxs7fVewd1+h1jBQl/h9wJNR/mCHaoI/Y7H43GtjmK7onqLBg== X-Received: by 2002:a05:6a20:2589:b0:1e0:d0c8:7100 with SMTP id adf61e73a8af0-1eb214701c4mr46281215637.7.1737632362526; Thu, 23 Jan 2025 03:39:22 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab7f2a38sm12882604b3a.21.2025.01.23.03.39.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:22 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Sudeep Holla , Cristian Marussi , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 24/33] cpufreq: scmi: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:06:00 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250123_033923_410454_EA220C1C X-CRM114-Status: GOOD ( 10.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar Acked-by: Sudeep Holla --- drivers/cpufreq/scmi-cpufreq.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/cpufreq/scmi-cpufreq.c b/drivers/cpufreq/scmi-cpufreq.c index b8fe758aeb01..4a3ee59cb771 100644 --- a/drivers/cpufreq/scmi-cpufreq.c +++ b/drivers/cpufreq/scmi-cpufreq.c @@ -171,12 +171,6 @@ scmi_get_rate_limit(u32 domain, bool has_fast_switch) return rate_limit; } -static struct freq_attr *scmi_cpufreq_hw_attr[] = { - &cpufreq_freq_attr_scaling_available_freqs, - NULL, - NULL, -}; - static int scmi_limit_notify_cb(struct notifier_block *nb, unsigned long event, void *data) { struct scmi_data *priv = container_of(nb, struct scmi_data, limit_notify_nb); @@ -309,7 +303,6 @@ static int scmi_cpufreq_init(struct cpufreq_policy *policy) dev_warn(cpu_dev, "failed to enable boost: %d\n", ret); goto out_free_table; } else { - scmi_cpufreq_hw_attr[1] = &cpufreq_freq_attr_scaling_boost_freqs; scmi_cpufreq_driver.boost_enabled = true; } } @@ -395,7 +388,6 @@ static struct cpufreq_driver scmi_cpufreq_driver = { CPUFREQ_NEED_INITIAL_FREQ_CHECK | CPUFREQ_IS_COOLING_DEV, .verify = cpufreq_generic_frequency_table_verify, - .attr = scmi_cpufreq_hw_attr, .target_index = scmi_cpufreq_set_target, .fast_switch = scmi_cpufreq_fast_switch, .get = scmi_cpufreq_get_rate, From patchwork Thu Jan 23 11:36:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948206 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 03899C02182 for ; Thu, 23 Jan 2025 11:47:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bidGXEhWbEsWi+5Sth126LejibvpIMLA/P72ifY2Y/8=; b=tU77aGFxiMNYSt2U2FGtHLvqjC YP6iVc7KUwx8KLrRI8HB0pa95BIio225mF1GxKEdGzy4ctl34o+r/uv5Jg20CTyyu2YQgb6KXncLu xqLn+fsGD9934thHdfSuVamm4AYcXaRYKIJ+Ay8/jfdpk4hDV959FGLnV/m3qrXl5sgCzvPW6bkbH 6U+B9t6hC2Bd6XOGCkoKIH6dTJmL5T0AwRmgDRnl00vdDLeRMIpXU1FcCZSEZgaN5Bez3IudPpYyv suwGiUAhr1hdoRMemzBSpnKj+r1EidR/hunX5G1XVMd1+cll6E+n5ku4FTjpEB9fsTh+29HqAVPoD SdinGBgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tavg2-0000000CNr3-0SE9; Thu, 23 Jan 2025 11:47:14 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tavYU-0000000CM4E-27qe for linux-arm-kernel@lists.infradead.org; Thu, 23 Jan 2025 11:39:27 +0000 Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-2f4448bf96fso1175487a91.0 for ; Thu, 23 Jan 2025 03:39:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632366; x=1738237166; darn=lists.infradead.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=bidGXEhWbEsWi+5Sth126LejibvpIMLA/P72ifY2Y/8=; b=KKK1VOzichGv42zXVnI09nSbiAczw7PDuAJz1umzHWqmJuiFo/3iqOJHJ2jOcHT5eU 6rlCL5DV3Xf7yWoSB6LY9N1gO1rUeC+9Pk1TpkNnor0uygB7veTDaHGuk86H3utXlbXC BxH7zABXpQ9GscjvN44KSZnyWLdojKRfmv90c9+6wgucnapjx5V8+nT0QPd9OIvk3NhA 91wXF/dvnS/P3oTVPjzBcdXU9Qac+fYsoiowK0j4ft4KmGiNZ97MMV+gEcLc/EYqZU7q tZt9Ur6P/gWsbVSFVomVxC5SHJC9WbzOKGiBA9EzrtgzubNNnFsobMXBuhZXCpUGOQC4 Vbsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632366; x=1738237166; 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=bidGXEhWbEsWi+5Sth126LejibvpIMLA/P72ifY2Y/8=; b=scEAqJlNZ8puKFKb5H/v4n7HnsjbL6W320dyZndGAQPdnvS/La2eWx+y2et2v6wWcl nn/9YlIXufQR7JH5if5Q3n1mkLlnZcX1nGZ9M4hJspImXN3S6xzFh7MbXfDAUkUJxjnC X/TV+5w55IB0UzliqUMhsuZbLi11OUNT1GRG3mDM5MMSvIZUhf/+Oe+NIi1/mpev9qcN WEywAsFarEyoR8WDo1vGS0b4MWQ4fxMNpDWewXFhgxrluiaPQTWvZeoRb30sMonmX1Gv CuiuVZTpLFEw2dPXjsmsMM+NiS3og+PFP6H6vKgqI2AjbcZsSKm3sinTgShNdtLOh1et pPOQ== X-Forwarded-Encrypted: i=1; AJvYcCWqwmmiYrmkRWiT/W7Bf5WpQIOSgA7ovhNAozLCT92nC0X2Eptv216n+ZXVLwIwVP3xofrzjXGQt6FOQPp0I0/y@lists.infradead.org X-Gm-Message-State: AOJu0YzXNm4SWafGWOjOX6Wf9VbM4+5WwU4AugqqhSgBpbEYux/KqMuQ a9JM0SHn7X/emKMCDKGxIu0sJoEYVyLw9XATYHHT9iimbuaJaxBWftnS6mz85hI= X-Gm-Gg: ASbGnctv0bWopwoSVMgooUUfe8FXdSGMAY3cnve0OpjcNsY0gy01FjObaEAy06GNtyD IsKjZ7ptWK35Fgc92ZhOfbITaHwqOXvxATtkQlAI6DIcpqZCUpkcFaO1/gZionRLLXzaPV06GBz AtAnvoft8MvS85UEGcn+5UkZrzqzonydKEc8lEocYYa5u56hXwUzyh79wIZOToCy1T9ZA8DDWm9 1TvoqMazBgZkzgOv/rn12Zpp9xgP9dbopswTv2tJZf1yc6Oo12EVQCRatBiDd341fH3/5R1YNeq u4bipiM= X-Google-Smtp-Source: AGHT+IHMoaj306mgy718YKGGZ2ZKiv1T27I/McQDNCDh5aizBvwSBcMBEOMZ/suJHkPkfqgWyPwUEA== X-Received: by 2002:a17:90b:37ce:b0:2f2:ab09:c256 with SMTP id 98e67ed59e1d1-2f782d6f0b9mr39599393a91.33.1737632365880; Thu, 23 Jan 2025 03:39:25 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a9bdd309d91sm12546450a12.48.2025.01.23.03.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:39:25 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Sudeep Holla , Cristian Marussi , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 25/33] cpufreq: scpi: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:06:01 +0530 Message-Id: <2b89078adc1472d5ab9377ad7675cf4c07a8f7cc.1737631669.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250123_033926_541423_B21A8D96 X-CRM114-Status: GOOD ( 10.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar Acked-by: Sudeep Holla --- drivers/cpufreq/scpi-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/scpi-cpufreq.c b/drivers/cpufreq/scpi-cpufreq.c index cd89c1b9832c..54574978986c 100644 --- a/drivers/cpufreq/scpi-cpufreq.c +++ b/drivers/cpufreq/scpi-cpufreq.c @@ -183,7 +183,6 @@ static struct cpufreq_driver scpi_cpufreq_driver = { CPUFREQ_NEED_INITIAL_FREQ_CHECK | CPUFREQ_IS_COOLING_DEV, .verify = cpufreq_generic_frequency_table_verify, - .attr = cpufreq_generic_attr, .get = scpi_cpufreq_get_rate, .init = scpi_cpufreq_init, .exit = scpi_cpufreq_exit,