Received: by 10.223.176.5 with SMTP id f5csp1036434wra; Fri, 2 Feb 2018 10:04:51 -0800 (PST) X-Google-Smtp-Source: AH8x225vlVVFD6BcU3hfxjR2xX/UAxzXQSQ4+SB5sNpKCog5qxEulzvaeajelzRRqLaEdSXQJGr1 X-Received: by 10.99.176.15 with SMTP id h15mr32789679pgf.374.1517594691883; Fri, 02 Feb 2018 10:04:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517594691; cv=none; d=google.com; s=arc-20160816; b=levX6WMNOPdfEb99lGRobgi49rm3P5y3r/Y3tMvYl8tClP13Pgqutt+oI2hCPD5qra T3fptR40Bu3Nr7mGkSn4k70AeqQZGho0kg91iQEKSgRO6NwWHZDGosgpDwbM3mJOb5lN /omF142iLnRj5PspK/sd3fD3DesGzksFtSn7d/MUuuobJM4i1o9p7VzQiObSIswa7gkN 6nVoEwJO2KrHayQdTnEGNuB1rQDzR1B6Z/+j0eVwk5NM48BIjEjqwxAKVR/fxz/YsnfL 5Hn4DSzME2NJaBtQ43Pb9fn49cL2ub/bocsm8aITSbalPJMAjwQPlHM/TIlSJT/0RBbO YElg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=GiJh1CofubcDxrrXnI6lyz4fMF46E8olKIh35idsPjM=; b=ng/oJsXpflcQwljOpTOSeIWo0ljtaZmZKK7Ouf3/iFqd+Gq4dKD2ofSo6d0Hqr2XS+ QVJA862W4DvVPQ/TWs6mue1xNZtZw95aK+6Mk54DJO7bxU7YMLUgfb80yeUeBy1Jhg65 wkRujAECW2bkjOLYtVc6NKhBI9PpJgorb+8CysR55QMrkJyJ2zHLW5ZhnbMljOnjYLAh 2OG4F9XJwjka/hlMfKQDeDPT5NMrpqiXIrX+SX17GdwwaOUWNKiFNyaPQJVd/6kkJKiR 1YnTHpyYnNjDMboaRFzZkQzGO/t7e/pCAmFGWrpNyqhZoy76TYrskMderFTS4Ul/ZZ5j GjRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x185si52163pgx.159.2018.02.02.10.04.37; Fri, 02 Feb 2018 10:04:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752558AbeBBSCO (ORCPT + 99 others); Fri, 2 Feb 2018 13:02:14 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:37956 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753213AbeBBRJ2 (ORCPT ); Fri, 2 Feb 2018 12:09:28 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 796BBD31; Fri, 2 Feb 2018 17:09:27 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, James Hogan , Viresh Kumar , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 4.14 055/156] cpufreq: Add Loongson machine dependencies Date: Fri, 2 Feb 2018 17:57:16 +0100 Message-Id: <20180202140842.782504671@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140840.242829545@linuxfoundation.org> References: <20180202140840.242829545@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: James Hogan [ Upstream commit 0d307935fefa6389eb726c6362351c162c949101 ] The MIPS loongson cpufreq drivers don't build unless configured for the correct machine type, due to dependency on machine specific architecture headers and symbols in machine specific platform code. More specifically loongson1-cpufreq.c uses RST_CPU_EN and RST_CPU, neither of which is defined in asm/mach-loongson32/regs-clk.h unless CONFIG_LOONGSON1_LS1B=y, and loongson2_cpufreq.c references loongson2_clockmod_table[], which is only defined in arch/mips/loongson64/lemote-2f/clock.c, i.e. when CONFIG_LEMOTE_MACH2F=y. Add these dependencies to Kconfig to avoid randconfig / allyesconfig build failures (e.g. when based on BMIPS which also has a cpufreq driver). Signed-off-by: James Hogan Acked-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/cpufreq/Kconfig | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -275,6 +275,7 @@ config BMIPS_CPUFREQ config LOONGSON2_CPUFREQ tristate "Loongson2 CPUFreq Driver" + depends on LEMOTE_MACH2F help This option adds a CPUFreq driver for loongson processors which support software configurable cpu frequency. @@ -287,6 +288,7 @@ config LOONGSON2_CPUFREQ config LOONGSON1_CPUFREQ tristate "Loongson1 CPUFreq Driver" + depends on LOONGSON1_LS1B help This option adds a CPUFreq driver for loongson1 processors which support software configurable cpu frequency.