Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp330107yba; Wed, 24 Apr 2019 01:50:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwx1/TkTDhbVNm357/B+hkiUcymiL0WYQLc0uHIMUOhn1AJ4tof3cfDHkItAqf1jSbID5Iq X-Received: by 2002:a63:a1f:: with SMTP id 31mr29787383pgk.427.1556095805698; Wed, 24 Apr 2019 01:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556095805; cv=none; d=google.com; s=arc-20160816; b=SaxtKuVcjWx10b24fnQt7Mu6JyFDHSQOivvNzVmk5OmJNC/JKNbkucnHqBzfQryuti m5ur7HEoscsMLp5soUFwoE34febN6Ra9OSjwTDi4zck0ntDukiHW4qaqs5pCICpdFby0 MARUZw8WPCTQLLGtbznJpWporlX9Qh0sSVzGNFwkVw446jSxRe/Q5tUMmW68OAkm6Dg4 8f+Vf+lzwTsabb+AzyU2MlxLe4A8SMYIDyuWRC2LHGgNuUuwavb5COcbmK6duRTiT6Z9 i8AaW4+Xnq9Iw1FFYT8KQDIwiu7Vo6s5cgQJkqoFC4inHjFtNpXgw4xXc6bi+ctV7Y0f Ab/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=AUbHQKnT++weK7tO9kQwAVLSabRbN2ogWoe9xJT8hiw=; b=IYZbh7r9RzUhp/JizM2cZQH1yvlUoevlfuTyIwkiTrP7oC072tj7u2In/3QnnG5/lx pEa1VJIY5q349JvNwVpH4WEQZuCQsvBOPCkqRvqxLi3WdDj+N6edroedYMPEMYbP2w/s 7johw4ZzipZwgkXUwHxjpdUk4igsickt0I5Js4jQ4IYMaEZJXhEX28saQCOYKDoBNMIL uxy80N/eaSM1V1KAogGi8Led54OJtnvxdcZeSU+xiGxNMMcmPPG32/h6cyfSKk/NDVFe +y6BjJvRv9WwZe8vz7LMPsl5Qqh+wMtiJXvBScP3km/TYsiKEUMUtcuAM5MYhtJN7HxO 5dcw== 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 h3si9791470pgb.250.2019.04.24.01.49.49; Wed, 24 Apr 2019 01:50:05 -0700 (PDT) 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 S1728793AbfDXIrf (ORCPT + 99 others); Wed, 24 Apr 2019 04:47:35 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:52384 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726990AbfDXIre (ORCPT ); Wed, 24 Apr 2019 04:47:34 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id CDD7D1EBDC12C0F9947D; Wed, 24 Apr 2019 16:47:32 +0800 (CST) Received: from [127.0.0.1] (10.177.31.96) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.439.0; Wed, 24 Apr 2019 16:47:29 +0800 Subject: Re: [PATCH] soc: imx: Fix build error without CONFIG_SOC_BUS To: Leonard Crestez , "shawnguo@kernel.org" , Abel Vesa References: <20190424075946.23124-1-yuehaibing@huawei.com> CC: "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "l.stach@pengutronix.de" , Aisheng Dong , Anson Huang , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" From: YueHaibing Message-ID: <2f2b461f-2ad3-c81e-0826-ed7819de5518@huawei.com> Date: Wed, 24 Apr 2019 16:47:27 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/4/24 16:11, Leonard Crestez wrote: > On 4/24/2019 11:00 AM, Yue Haibing wrote: >> From: YueHaibing >> >> During randconfig builds, I occasionally run into an invalid configuration >> >> drivers/soc/imx/soc-imx8.o: In function `imx8_soc_init': >> soc-imx8.c:(.init.text+0x144): undefined reference to `soc_device_register' >> >> while CONFIG_SOC_BUS is not set, the building failed like this. This patch >> selects SOC_BUS to fix it. >> >> diff --git a/drivers/soc/imx/Kconfig b/drivers/soc/imx/Kconfig >> @@ -5,6 +5,7 @@ config IMX_GPCV2_PM_DOMAINS >> depends on ARCH_MXC || (COMPILE_TEST && OF) >> depends on PM >> select PM_GENERIC_DOMAINS >> + select SOC_BUS >> default y if SOC_IMX7D > > You should "select SOC_BUS" from "config ARCH_MXC" in arm64 > Kconfig.platforms, not from a power domain implementation. > > Your patch works because arm64 ARCH_MXC currently does "select > IMX_GPCV2_PM_DOMAINS" but it's silly to use this intermediary. Yes, you are right, thanks! > > -- > Regards, > Leonard > >