From patchwork Sat Feb 29 16:04:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 230075 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65F73C3F2CD for ; Sat, 29 Feb 2020 16:04:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0CE1F2468E for ; Sat, 29 Feb 2020 16:04:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=crapouillou.net header.i=@crapouillou.net header.b="pIeEPB4O" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727191AbgB2QE4 (ORCPT ); Sat, 29 Feb 2020 11:04:56 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:60514 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727164AbgB2QEz (ORCPT ); Sat, 29 Feb 2020 11:04:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1582992293; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=U+bTaqw3ChcPXdwAu0239Q0g38tlXUK/Pg8FxcX6kas=; b=pIeEPB4OqTEnN5H7AVgAqjPxxHNLHLAyDjL3waCtxnnfexnXd3HoWD+rtrT9K02lW2k/Ps kvTmt55RSCj2s/WrU8evemxBsmEm3rjaZDa67x/z8VNznIY9dS1zK3YxUMZ34OXfrrqCmY +JdRg/W5CZmTdUPjH1HBydyJ6eliCLQ= From: Paul Cercueil To: Harvey Hunt , Miquel Raynal , Richard Weinberger Cc: Vignesh Raghavendra , od@zcrc.me, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Paul Cercueil , stable@vger.kernel.org Subject: [PATCH] mtd: rawnand: ingenic: Fix unmet dependency if COMPILE_TEST Date: Sat, 29 Feb 2020 13:04:43 -0300 Message-Id: <20200229160443.11208-1-paul@crapouillou.net> MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org Commit 7c779cf7c1f7 ("mtd: rawnand: ingenic: Allow to compile test the new Ingenic driver") dropped the dependency on JZ4780_NEMC when COMPILE_TEST was set, which is wrong, as the driver requires symbols provided by the jz4780-nemc driver. Change the dependency to (MIPS || COMPILE_TEST) && JZ4780_NEMC to address the issue. Fixes: 7c779cf7c1f7 ("mtd: rawnand: ingenic: Allow to compile test the new Ingenic driver") Cc: stable@vger.kernel.org Signed-off-by: Paul Cercueil --- drivers/mtd/nand/raw/ingenic/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/ingenic/Kconfig b/drivers/mtd/nand/raw/ingenic/Kconfig index 485abfa3f80b..96c5ae8b1bbc 100644 --- a/drivers/mtd/nand/raw/ingenic/Kconfig +++ b/drivers/mtd/nand/raw/ingenic/Kconfig @@ -1,7 +1,8 @@ # SPDX-License-Identifier: GPL-2.0-only config MTD_NAND_JZ4780 tristate "JZ4780 NAND controller" - depends on JZ4780_NEMC || COMPILE_TEST + depends on MIPS || COMPILE_TEST + depends on JZ4780_NEMC help Enables support for NAND Flash connected to the NEMC on JZ4780 SoC based boards, using the BCH controller for hardware error correction.