From mboxrd@z Thu Jan 1 00:00:00 1970 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 D93F2C4338F for ; Sat, 7 Aug 2021 05:00:22 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F18FE610FB for ; Sat, 7 Aug 2021 05:00:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F18FE610FB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1AC4182C89; Sat, 7 Aug 2021 07:00:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="syTyDin2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 56FCD82C89; Sat, 7 Aug 2021 07:00:16 +0200 (CEST) Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1FCE280C89 for ; Sat, 7 Aug 2021 07:00:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-pl1-x631.google.com with SMTP id z3so9896417plg.8 for ; Fri, 06 Aug 2021 22:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=0XeULrFhA+WiBtMSnvvu4v1VYIiVBP/LclN+p6B9L/c=; b=syTyDin2bqPWosSBf7/sXqa04Hj2rGzY/rX/fke7JFb8l9N1afxc5EyLboFR3V0dDY OSCF4XERVH7IJXQwxYsXAjgAjRqmWjCTzCXHuq7LcMVz9LuvTIiDn6mOJZAmFplmFXZe nZIfaHhgp5Yw9KnmVxFGnQbifkwgzghwCngSD8hrjLTfJoyNcYTegZ952uB0w91F1WXJ dggDVJd854oOye11D7Kb6fwI5s5F/v7cE4gBkjejMxe7mF9fO0Q3zKgkwu/lX5f5t4o5 kKMuSctprwk0Ezl56EIGUqkLBIEuJA3QuHo+aYuedkK9KcGRPlVttzJ9ilHe0R4XIl/t Cz8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=0XeULrFhA+WiBtMSnvvu4v1VYIiVBP/LclN+p6B9L/c=; b=R8Mac0CUlpSf2YGHC+/rIpTYypgSAI8QbTGKIyBqpTLcYr2e6bGuegVpDtWU4ufKFi 8JUlceos1qhDLk3hL4VJzkZWyn+u2XTd0UUwpwPxw5aaHkG9khasWro7aI9nR/mlAPLS HWWiG+n5ZbcfAenBkYpgKtntT64jI1EGkujYVLOy3ibhH575G+FfT0/pSdA2m5wcOJuU cYSN1lBfWvOkyI28dL+9ykOQNnEq+QOPwWkP/EyhH8TUhAesGWRV6/tUT9FbmhaY5Wfe HQxPR1cvOx+MhkbEI6txAqu6ye5uDYC0EQcR56aAlgmTryqTMJ9338RS6R9GFWKiV3by /weg== X-Gm-Message-State: AOAM531gVoB/eANbipjLSNiH5K1Xx3gCh+Q65xw3E8K4j03qEXWsstK0 sXQB6bVIXFvJjt4aMCRiXEg= X-Google-Smtp-Source: ABdhPJw4lttIFqfir3HgdouicWSJK4CmYcYTCRIYgmsHsRXa8IFu+FupLsIYAlB3RwJhKWsArV9iJA== X-Received: by 2002:a05:6a00:a0d:b029:38d:6310:36ab with SMTP id p13-20020a056a000a0db029038d631036abmr13730505pfh.34.1628312410201; Fri, 06 Aug 2021 22:00:10 -0700 (PDT) Received: from i9-aorus-gtx1080.localdomain (144.168.56.201.16clouds.com. [144.168.56.201]) by smtp.gmail.com with ESMTPSA id b7sm11785112pfl.195.2021.08.06.22.00.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Aug 2021 22:00:09 -0700 (PDT) From: Bin Meng To: Stefan Roese , u-boot@lists.denx.de Subject: [PATCH 1/3] mtd: kconfig: Fix CFI_FLASH dependency Date: Sat, 7 Aug 2021 13:00:00 +0800 Message-Id: <20210807050002.32723-1-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean The DM version CFI flash driver is in driver/mtd/cfi_flash.c, which only gets built when FLASH_CFI_DRIVER is on. If CFI_FLASH is on but FLASH_CFI_DRIVER is not, nothing is enabled at all. Fix this dependency by selecting FLASH_CFI_DRIVER when CFI_FLASH is enabled. Signed-off-by: Bin Meng --- drivers/mtd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index ad50c5e870..b303fabe0f 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -42,6 +42,7 @@ config FLASH_CFI_DRIVER config CFI_FLASH bool "Enable Driver Model for CFI Flash driver" depends on DM_MTD + select FLASH_CFI_DRIVER help The Common Flash Interface specification was developed by Intel, AMD and other flash manufactures. It provides a universal method -- 2.25.1