Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2476097ybe; Thu, 12 Sep 2019 09:58:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxP5Ho85A6hPdnad0YA1u15q4K+s8hWIYNq44MTUsBgKQNER9tTgvi1G2CCnrYsABCcpZQc X-Received: by 2002:a17:906:aed8:: with SMTP id me24mr35731522ejb.217.1568307525847; Thu, 12 Sep 2019 09:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568307525; cv=none; d=google.com; s=arc-20160816; b=CHurHwXstnM4DZVUHdTSCElRZX5/IDl+A3vk6QuvhrSML3A8YTYwzfPf1v++VSrpXX 4/HnnRCKTs5Ukuo3pT5Bl1UmHOESOuBELO3p0iHGd/6R4kI9w/OxLBkOGn2gjHa4PhOk WQHVaDVlvKywxrXVdLTJ4AZItj9Cx2s9kqWD1PDJg7AsVdSTcgb66z+JckFTapXAr1LU ASDaEd0jLmEoshEfJQqKundx9BexjlBSh/0E8DhOpk7K3NhxJgx03aUzQKSHEUbEX8Yr 1ys3nZXl7YIq7fEVWwn3vjui45Nb+s6k3eVpNhDWxI2RQmsJHchWZCbxfvRgnCekjEPQ OXug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=QXQcfTndnrpIGvk9sB9a9gWQqmEHMhawitV9TbB2g8E=; b=btaTY+YbtB6Nunxu6fIIag7aej47jE6nyCZFdM/cEzdGoMcNQt2yDhvWC9SxTdgzpE tJsL3BcQJ1hWRmNoP8paxx3o6tzQax8+vofA80vrVO16VFlJanyT0U4VNsu03lP+CPWG 9kP0t33AbrfrjbtTne9j6cmsu+63LYE1S4aWcwRgstRre6QS+TvE4zOoHmEgBqcBxz3C 79+/oMZi5boC5XlEqt/NUtfFpXlwlEhuVcy0/jbS108foqjkR5Bi+v+ezuDebPNMX9pi RCPtGVX/JfLFRl8jIVlYS65/HEKjZJ3ihYpprXbPODP7bBBNqcDGLQY5+aXeH7DjxFt1 dLpQ== 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 gz7si13475761ejb.147.2019.09.12.09.58.22; Thu, 12 Sep 2019 09:58:45 -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 S1730717AbfILJXr (ORCPT + 99 others); Thu, 12 Sep 2019 05:23:47 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:39781 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730631AbfILJXq (ORCPT ); Thu, 12 Sep 2019 05:23:46 -0400 Received: by mail-qt1-f193.google.com with SMTP id n7so28781728qtb.6; Thu, 12 Sep 2019 02:23:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QXQcfTndnrpIGvk9sB9a9gWQqmEHMhawitV9TbB2g8E=; b=EFC7Pzc2RJMO0kYGJY36B6M/KiGYRXH34bY3unVZ4f8E0v6kvTTDr1MhCuFTowLzj7 tj5RG4fkbt5/xCdfAxg7gFGlN7GA7q4JnDrhVGD7kTU9IeJnx9p7DZsRCD8w476mlLn/ UW/vayWu0r1BQqBEGEajHhBBN4gUlxvedR5iU8vS4Pw/5bUdtz7zDegk4bxTpIjIC9GP 0SqOacOUHywwYNrShU4Fei9l32K+S12f57O9zSrxehjdOhzMZXp7Vl4BSXd737Ue7XXT 4NoGM0rDHwyPCNrlfTa+ehntgy/DTJm+IBYiBJQHz467FTCLxIZvESTTLDefx8a5jUKa dn2w== X-Gm-Message-State: APjAAAVs+OGWqJr76OkTp0nWYIVHgiBhTqOQ/fb5JNQeOQZyaaaHmj/0 2BlOcbBx+7ZGBoFHyCgk2XSpRZYz9ck+A+/GrSA= X-Received: by 2002:ad4:4529:: with SMTP id l9mr21307225qvu.45.1568280224996; Thu, 12 Sep 2019 02:23:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Thu, 12 Sep 2019 11:23:29 +0200 Message-ID: Subject: Re: [PATCH 1/4] arm64: Kconfig: Fix XGENE driver dependencies To: Amit Kucheria Cc: "linux-kernel@vger.kernel.org" , Linux ARM , arm-soc , Bartosz Golaszewski , Catalin Marinas , Kishon Vijay Abraham I , Liam Girdwood , Linus Walleij , Lorenzo Pieralisi , Mark Brown , Michael Turquette , Sebastian Reichel , Stephen Boyd , Will Deacon , linux-clk , "open list:GPIO SUBSYSTEM" , linux-pci , Linux PM list 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 On Thu, Sep 12, 2019 at 12:19 AM Amit Kucheria wrote: > > Push various XGENE drivers behind ARCH_XGENE dependency so that it > doesn't get enabled by default on other platforms. > > Signed-off-by: Amit Kucheria > --- > arch/arm64/Kconfig.platforms | 3 +++ > drivers/clk/Kconfig | 2 +- > drivers/gpio/Kconfig | 1 + > drivers/pci/controller/Kconfig | 1 + > drivers/phy/Kconfig | 1 + > drivers/power/reset/Kconfig | 2 +- > 6 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms > index 4778c775de1b..cdf4e452e34c 100644 > --- a/arch/arm64/Kconfig.platforms > +++ b/arch/arm64/Kconfig.platforms > @@ -281,6 +281,9 @@ config ARCH_VULCAN > > config ARCH_XGENE > bool "AppliedMicro X-Gene SOC Family" > + select COMMON_CLK_XGENE > + select PCI_XGENE > + select GPIO_XGENE > help > This enables support for AppliedMicro X-Gene SOC Family I'd rather not 'select' drivers that might be optional, the 'default y' should be sufficient as long as it's in theory possible to have them disabled or as loadable modules. > diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig > index 801fa1cd0321..9b2790d3f18a 100644 > --- a/drivers/clk/Kconfig > +++ b/drivers/clk/Kconfig > @@ -225,7 +225,7 @@ config CLK_QORIQ > > config COMMON_CLK_XGENE > bool "Clock driver for APM XGene SoC" > - default ARCH_XGENE > + depends on ARCH_XGENE > depends on ARM64 || COMPILE_TEST > ---help--- > Sypport for the APM X-Gene SoC reference, PLL, and device clocks. This breaks compile-testing, and existing defconfigs that don't list the driver. Arnd