Received: by 10.223.176.46 with SMTP id f43csp284368wra; Tue, 23 Jan 2018 21:03:06 -0800 (PST) X-Google-Smtp-Source: AH8x227dJrwdfoFIIUrOyTT/bRA3OsMoHI59VX7CKNv54PIR/zy/OlMNjUo/XCw3umeEvirY274i X-Received: by 10.101.100.208 with SMTP id t16mr2711732pgv.19.1516770186677; Tue, 23 Jan 2018 21:03:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516770186; cv=none; d=google.com; s=arc-20160816; b=JIjq/Zxa/NhGH+iF3bDRf0BRNCuPmtxw/gvPirtNfwaS3+Pxj6caHag3PSGTdWaG4G uFTaht+Zzh7unVs2oh9UZ76TXeuRXsL0TJfPTeyk9D+mD8Og7as8hKGX+nB5mhWSh0/8 sckIri0pjkhRrZ6CkWVh1SOJ36vIGsQBD7OvyDKLC/OkQqjDNv3WeKuN8HGCvqtR1IlN BLdPvaCKxSRUx3x9kBBAJ/iNnVTlDl8NTiOJXnhX/zErfg7HG3cR41hrqH+TF9rjJI1B k7BU4asLAz/7YGPQxdYnTeRQGHZnHHeR9LPYhjYIcn5/ID/j9m6qTuEGuhYDDnOnSn06 YUMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=fVNw0gYmXHo6t3N4YBj3d2oplNb0ca82acMtJ9EN1Mc=; b=aqg7/M/jyZoPSVh5Hj3oMGM4oGgMzFea1sahnjLa6GaVuD3PcYymAwU5e8snDycqVY RG54t1+kDIwvo6Q5pynnzONbSn82u65CWqEkx2+8z5+NxJ2l2wANvqgZ0CJWwb/KZwFK cjstDJiBcqE7fQ6IhQYEMys30+L6tt8p3pVidjLC8bze0cRot6mcE4S5bz8uom9g5F9/ NzPagQlszmiz2zukbubHbG03YXHLrY0NzgHZUBFgcKxa8Ni61FUcGW0xOCX7N+V373hV KkyYUX7zv4mvZ2U2aKLJpoGHrn+mu+eOK0iuAjnECHSLN3J6tirPpj7Bs06TRfsURAbw rmRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Cp1LSMlq; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g83si2337753pfk.234.2018.01.23.21.02.53; Tue, 23 Jan 2018 21:03:06 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Cp1LSMlq; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751482AbeAXFB6 (ORCPT + 99 others); Wed, 24 Jan 2018 00:01:58 -0500 Received: from mail-sn1nam01on0126.outbound.protection.outlook.com ([104.47.32.126]:36640 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752718AbeAXEOi (ORCPT ); Tue, 23 Jan 2018 23:14:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fVNw0gYmXHo6t3N4YBj3d2oplNb0ca82acMtJ9EN1Mc=; b=Cp1LSMlqk1uZ6SoREBBj+iA8eQfqlOT8bniHth4VV/myKP1TZEZmE/XXDZUcnAls0RTSxHJM0IX13vSXaD2VFGuTHWvlUK2DM8NFIqs4De+es6NfbSEyOdVp1+NaO3XXbFHoPrF0k7YCmxYa/Mir1Gui49B+sU0VNsvtXPw1cWw= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0998.namprd21.prod.outlook.com (52.132.133.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.0; Wed, 24 Jan 2018 04:14:36 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::6485:b98:d15e:9da7]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::6485:b98:d15e:9da7%2]) with mapi id 15.20.0464.000; Wed, 24 Jan 2018 04:14:36 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: James Hogan , "Rafael J . Wysocki" , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 026/100] cpufreq: Add Loongson machine dependencies Thread-Topic: [PATCH AUTOSEL for 4.14 026/100] cpufreq: Add Loongson machine dependencies Thread-Index: AQHTlMnY+cqq6fW6lEOjZGLv42x8mw== Date: Wed, 24 Jan 2018 04:14:36 +0000 Message-ID: <20180124041414.32065-26-alexander.levin@microsoft.com> References: <20180124041414.32065-1-alexander.levin@microsoft.com> In-Reply-To: <20180124041414.32065-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0998;7:F8B78GJKT3R8vf7gYy4nTbJbukAP9WnxVkLyEvorejGRYBI9r/WOyearr/V0oJCoLh1sX8158ZaTeBmRrdbYF7x6ZyxKTSgqxllUPSaRxkvkDDphNGjbqvwZQvw8uwt1dNRvOfeiEgYfMxt5t6lZCAbL+erNKhlSVUmlRtky9LUgENrcVY+WVZID8G/8DnhalkNK9fZZe4mlGwFqfNFdnKGrreBXwF+bkMKzqNsSS2/S4gwkcIzq9Lo1ChsyWzGG x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-correlation-id: c0f27746-85aa-4ac8-aafb-08d562e0fab9 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603307)(7193020);SRVR:DM5PR2101MB0998; x-ms-traffictypediagnostic: DM5PR2101MB0998: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231046)(2400081)(944501161)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB0998;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0998; x-forefront-prvs: 056297E276 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39380400002)(346002)(39860400002)(396003)(376002)(199004)(189003)(14454004)(3660700001)(6346003)(10290500003)(105586002)(66066001)(6506007)(8676002)(22452003)(86612001)(54906003)(10090500001)(81166006)(81156014)(76176011)(110136005)(86362001)(68736007)(106356001)(8936002)(3280700002)(36756003)(25786009)(107886003)(2501003)(99286004)(2906002)(26005)(2950100002)(72206003)(102836004)(305945005)(6116002)(3846002)(5660300001)(4326008)(478600001)(316002)(53936002)(97736004)(2900100001)(5250100002)(6512007)(6436002)(6486002)(1076002)(7736002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0998;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: u15zuuORXGUo6EaEzEAaKKuuKeRPiJkZjONYXj0CtTe7oM/ddjNRF0PqBJmTT3jsuQnm7tzaCPS7pzLIZn8ZQA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: c0f27746-85aa-4ac8-aafb-08d562e0fab9 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2018 04:14:36.0180 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0998 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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=3Dy, 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=3Dy. 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 --- drivers/cpufreq/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 4ebae43118ef..d8addbce40bc 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -275,6 +275,7 @@ config BMIPS_CPUFREQ =20 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 =20 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. --=20 2.11.0