Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 01413C19F2A for ; Sun, 7 Aug 2022 15:49:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 77126848F8; Sun, 7 Aug 2022 17:48:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="LnaTEJxw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 93C71848CE; Sun, 7 Aug 2022 17:48:05 +0200 (CEST) Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) (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 A879D8489B for ; Sun, 7 Aug 2022 17:47:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-10ec41637b3so8033488fac.4 for ; Sun, 07 Aug 2022 08:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=pqIwpF7jyC+LEBI2KTN0ZSnJy6jiOkb9JvlIV2Zun24=; b=LnaTEJxw4g4A26Psov7mC0lc9V0QpnUq0Q+Qy0w2vylGDjN/vVV2XzEhXJtZ+tk9wo 36V66gNdFNXe4hxkZg0rYfbFeoiAV2MGtmS3SJ6M25yfvuYu8SQRBzK1Xkyd7AmpgdJN U6JHJHZYc3Kb8gHGvTCo4bgGNybutUslSOm1Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=pqIwpF7jyC+LEBI2KTN0ZSnJy6jiOkb9JvlIV2Zun24=; b=QbpDGcnHS4p3rPMMpoVTDlkhYSGWXI0kji5hc/xfMsMhjCKi1IMswoWdi57bVNFto+ Cr69cL5fKTNx/C+XKqWVm309FsGfcshjUIOI4tcy3oMFnnSfoUrZW+/K8v/0H+N05ruG XEEpMnN7FaKoBeAwviZPuujd8ZV0ziJUg0Ar7tUstWY5aAibckT66k7g6aSL2mjzoaqR rJ3bLR4ULb/KdoU6Oy1h6L4x78zIQHr2dbQiPpPVUEUzfavD22buWH4/zp7It3E3AGie CxVcjG5KonvVMCaWGNjW8KKrnqdR8sWxhHGYDqAlk3FujMsq6yXD1c9xCZLqNrMhtuDx sfFQ== X-Gm-Message-State: ACgBeo1A+jtYV7eUl4WGVfgteh6BGeMwMak7AXXSNiITWFTVcbtpNyS/ 2HagyzVv78p6JhTp/Rv78CbsgJdQKcEBZw== X-Google-Smtp-Source: AA6agR4RPrQcGW4xUhAVyovNNJ2wAcXbPHpi7wE8EViYc78AItWIYT76UYoU9rrCYkloXCHZafSZDg== X-Received: by 2002:a05:6871:79d:b0:10d:6d35:6fae with SMTP id o29-20020a056871079d00b0010d6d356faemr6797052oap.113.1659887279173; Sun, 07 Aug 2022 08:47:59 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id y18-20020a056808131200b0034290c4ed01sm1553412oiv.41.2022.08.07.08.47.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Aug 2022 08:47:58 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Simon Glass , Michal Simek , Stefan Roese Subject: [PATCH 13/23] blk: Hide the BLK and SPL_LEGACY_BLOCK options Date: Sun, 7 Aug 2022 09:46:58 -0600 Message-Id: <20220807154708.1418967-14-sjg@chromium.org> X-Mailer: git-send-email 2.37.1.559.g78731f0fdb-goog In-Reply-To: <20220807154708.1418967-1-sjg@chromium.org> References: <20220807154708.1418967-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean We don't want boards to be able to change these. They can be handled as dependencies of options that need them, such as SPL_MMC. There is no point in enabling the block interface without any storage devices to create a block device. Hide both options from the 'menuconfig' display and deny their use in defconfig files. Signed-off-by: Simon Glass --- drivers/block/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index 7bd37f760ca..b8ed3ef8d1f 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -1,5 +1,5 @@ config BLK - bool "Support block devices" + bool # "Support block devices" depends on DM default y if MMC || USB || SCSI || NVME || IDE || AHCI default y if EFI_MEDIA || VIRTIO_BLK || PVBLOCK @@ -12,7 +12,7 @@ config BLK A filesystem can be placed in each partition. config SPL_LEGACY_BLOCK - bool "Enable Legacy Block Device" + bool # "Enable Legacy Block Device" depends on SPL && !DM_SPL default y if SPL_MMC || SPL_USB_STORAGE || SCSI || NVME || IDE default y if SPL_AHCI_PCI -- 2.37.1.559.g78731f0fdb-goog