From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756604AbdHYMNF (ORCPT ); Fri, 25 Aug 2017 08:13:05 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:49256 "EHLO mx1.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755231AbdHYMNE (ORCPT ); Fri, 25 Aug 2017 08:13:04 -0400 Subject: Re: [PATCH] spi-nor: intel-spi: Fix Kconfig dependency to LPC_ICH To: Mika Westerberg , Bin Meng Cc: Boris Brezillon , Richard Weinberger , linux-kernel , Marek Vasut , linux-mtd , Cyrille Pitchen , Brian Norris , David Woodhouse References: <1503648771-17514-1-git-send-email-bmeng.cn@gmail.com> <20170825104015.GB2980@lahna.fi.intel.com> From: Stefan Roese Message-ID: Date: Fri, 25 Aug 2017 14:12:58 +0200 MIME-Version: 1.0 In-Reply-To: <20170825104015.GB2980@lahna.fi.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25.08.2017 12:40, Mika Westerberg wrote: > On Fri, Aug 25, 2017 at 01:12:51AM -0700, Bin Meng wrote: >> The Intel SPI-NOR driver is dependent on LPC_ICH to get the platform >> data. Select it in the Kconfig. >> >> Signed-off-by: Bin Meng >> --- >> >> drivers/mtd/spi-nor/Kconfig | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig >> index bfdfb1e..e998800 100644 >> --- a/drivers/mtd/spi-nor/Kconfig >> +++ b/drivers/mtd/spi-nor/Kconfig >> @@ -93,6 +93,7 @@ config SPI_INTEL_SPI_PLATFORM >> tristate "Intel PCH/PCU SPI flash platform driver" if EXPERT >> depends on X86 >> select SPI_INTEL_SPI >> + select LPC_ICH > > How about > > depends on X86 && LPC_ICH > > instead? I prefer Bin's version, as with your patch, the MTD SPI driver will not be "seen" / selectable, as long as the LPC_ICH support is not enabled. I've been hunting such dependencies myself a few times and find them unnecessary burden. Thanks, Stefan