From patchwork Tue Oct 10 18:16:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 13415842 X-Patchwork-Delegate: viresh.linux@gmail.com 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E998CCD8CAE for ; Tue, 10 Oct 2023 18:16:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232809AbjJJSQd (ORCPT ); Tue, 10 Oct 2023 14:16:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232728AbjJJSQc (ORCPT ); Tue, 10 Oct 2023 14:16:32 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9639B99 for ; Tue, 10 Oct 2023 11:16:31 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-694f75deb1aso98926b3a.0 for ; Tue, 10 Oct 2023 11:16:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1696961791; x=1697566591; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=VJqlcB+TIpcVsf3JAMUnWMr1MkTNnIUnPrUDXTUUK6U=; b=fTFFuHwOWAGwqtuph28pAokJNsudoVQmE08bI8N8ICdshLGe6MRHCgsJveqqLtsxVi AzEeeIYQCHNeyPBc0w9fyw+2uLibyXio5JexgYsLJ+/gKwWSxvZdiZ4zygSQgegScw6c Wa6j7gP3DfUviSzwcVdotmRjlCDgriLX8QB0w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696961791; x=1697566591; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VJqlcB+TIpcVsf3JAMUnWMr1MkTNnIUnPrUDXTUUK6U=; b=gTFrjImkfDKbFsjfwtBN5YN0BgeHnAhtJVdm3vKJdkvZDYxkNXRnikER6R+frqcd7H 3R0PXXJIAQ/his5quGp3SJHuL3JkoBMEECOAa7lImKz9uMlQwdR+Bx6qW7RG9cLWezi6 ekf4B45YsXGTm2B7m4KmSnBh2v2NqThlFeyC9ULvq2WWe3BcsJpdUmSVY1fVoRHzE6Sb 30z9n6i7qIiYbwv1h19uEisSuKLv8hOCeOk6AvRUx9yWD1w8d0EUoo+mx6DmDFioTcO/ mnROZFZcQU4xo6dVTX4n7nS6R4+5+aoie4Mi0BtG6UwF15ab7tsf8ciXT75uGwMQ0Umz gHHg== X-Gm-Message-State: AOJu0YzNqaZ5XkTsv5m3MOYWOesqYWAIUiZ3Rfjo834oqI174CGgH5ci jE5bIFOlYdAjXIj3+RwnWHYsmw== X-Google-Smtp-Source: AGHT+IHB9aOqxyWNaGnzCM1ZGlKoXIdoBOTkH9mVMZjGQHukDtXYLzOTDnkiy8DEQ8hgTi5KHh8ajA== X-Received: by 2002:a17:902:c946:b0:1c8:7bb8:321a with SMTP id i6-20020a170902c94600b001c87bb8321amr20995663pla.27.1696961790973; Tue, 10 Oct 2023 11:16:30 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u4-20020a170902e5c400b001bf6ea340b3sm12135513plf.116.2023.10.10.11.16.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 11:16:28 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: mmayer@broadcom.com, Florian Fainelli , "Rafael J. Wysocki" , Viresh Kumar , linux-pm@vger.kernel.org (open list:CPU FREQUENCY SCALING FRAMEWORK) Subject: [PATCH] cpufreq: ARM_BRCMSTB_AVS_CPUFREQ cannot be used with ARM_SCMI_CPUFREQ Date: Tue, 10 Oct 2023 11:16:26 -0700 Message-Id: <20231010181626.3449090-1-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The brcmstb-avs-cpufreq driver is considered a legacy driver and since 2018, ARCH_BRCMSTB systems have been using scmi-cpufreq. As a matter of fact, when SCMI is in use, brcmstb-avs-cpufreq is unusable since the SCMI firmware takes over, this can result in various problems, including external synchronous aborts. Express those constraints such that the driver is not enabled by default when SCMI CPU frequency scaling is in use. Signed-off-by: Florian Fainelli --- drivers/cpufreq/Kconfig.arm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 123b4bbfcfee..c287305820b7 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -90,7 +90,7 @@ config ARM_VEXPRESS_SPC_CPUFREQ config ARM_BRCMSTB_AVS_CPUFREQ tristate "Broadcom STB AVS CPUfreq driver" - depends on ARCH_BRCMSTB || COMPILE_TEST + depends on ARCH_BRCMSTB && !(ARM_SCMI_PROTOCOL && ARM_SCMI_CPUFREQ) || COMPILE_TEST default y help Some Broadcom STB SoCs use a co-processor running proprietary firmware