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 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 87DE4C02183 for ; Wed, 15 Jan 2025 01:24:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2CEF5806D6; Wed, 15 Jan 2025 02:23:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="okF0o366"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5F25680771; Wed, 15 Jan 2025 02:23:40 +0100 (CET) Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) (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 9885D80753 for ; Wed, 15 Jan 2025 02:23:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2d.google.com with SMTP id 6a1803df08f44-6dcd4f1aaccso17139966d6.2 for ; Tue, 14 Jan 2025 17:23:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1736904216; x=1737509016; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NvcN0Gsxv6sfjYaWd94oSK4C+hYmU2NEkdTn4eDJ2N4=; b=okF0o366AU+d6u7O72CxeFBwyqiL6ery8Uni6q7SEdDUrJisDJyKnK7Qx3nuMklM7F 77jVXYlZqRqok2f+WEqliyPRA+3t6CNAFbxvNGzZmrmMRRpe1VuGHTClnz/a2rEYZUFV iWbhwyqqReuys/XChmFDdIEISdTDUQN9DVR1U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736904216; x=1737509016; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NvcN0Gsxv6sfjYaWd94oSK4C+hYmU2NEkdTn4eDJ2N4=; b=CA8F1QKMHdfv6bu8y7mmBU+ewNlCzDAjEUpEP9aplAMcGiETZJEROWR3StQNcc4zbw +X+bQgcSCU4/N1gwDyXZG/UEGyEtGaLgUonWOxwIippLhlyFugLGNAAvAV7IfcerVhoP /fVQXzb+5ARrjmBDAAoLvCv6fDN+vWFW0cuqcKGAD1pQmwL1RCYYtKyvFFdcQr4ObWwG GU5DrjbTW/p8S4egMFdivPkKSjpOxfwnq4RWBvPIQRlszRwx1PPMFTqcTBhfvKZWaCvf T/6QcFg6vwSDn/IZgfiXnl+Gm6h/oR2ehZkiKnE87f13YwBllXfzHFWpQ56CzFUTkVGn xbAA== X-Gm-Message-State: AOJu0Yzk86IUbr9lwXAyCeqLahltlXQGTW2FLKB9F8i20vxuiLdxPe8t YcjnhyjfYJ+Lk4AhT12c5NQH9iZxV8N6de1LqMjL6IMvg9nB0W593BRNzdFWeeqPPMQAlsIPjpd 5 X-Gm-Gg: ASbGncv5R9YjtnsaNNmIozCBTmQTnIOog525e0zQf5QcP4wrMY7KeRV8uS2PfrJgjB8 BPkRS1r3Y/3L/SurihcBcbuPv5GItbXUp3TXWZkyXTQtVn2qXafA8CYJW9kV51QRl/Ixf8V8y7C thlEm3M/lqQjlN8fw0OYb0GTBpNpMTQaLL2Gsw/WSj0Wqe+oODbgrN3vi65sxIw/mda/J6PcaHJ T2taRrz4xuzWXmM2WXVALezs3+clRK4XUu2DHny9NfjbSrWvNKU3fqITgJ7lSKcsrLTWUt/JzEj X-Google-Smtp-Source: AGHT+IEjeLyeGIxg2Wm/xKIDgakb0iCm7EBEjhf+USv0hm4T9BzMVrbF87XvQ7Ug74AuvzDze8D+eQ== X-Received: by 2002:a05:6214:c8b:b0:6d8:e0a0:a949 with SMTP id 6a1803df08f44-6df9b28d637mr450090876d6.32.1736904216449; Tue, 14 Jan 2025 17:23:36 -0800 (PST) Received: from bill-the-cat.tail58a08.ts.net ([187.144.16.9]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6dfad9a2358sm59817096d6.50.2025.01.14.17.23.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2025 17:23:35 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Cc: Peter Robinson Subject: [PATCHv2 4/6] blk: Make block subsystems select BLK Date: Tue, 14 Jan 2025 19:22:11 -0600 Message-ID: <20250115012322.215243-5-trini@konsulko.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250115012322.215243-1-trini@konsulko.com> References: <20241220222612.1757884-1-trini@konsulko.com> <20250115012322.215243-1-trini@konsulko.com> 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.8 at phobos.denx.de X-Virus-Status: Clean The BLK symbol has a few meanings, one of which is that it controls the driver model portion of a "block device". Rather than having this hidden symbol be "default y if ..." it should be select'd by the various block subsystems. Signed-off-by: Tom Rini Reviewed-by: Peter Robinson --- Changes in v2: - None. --- drivers/ata/Kconfig | 2 ++ drivers/block/Kconfig | 7 +++---- drivers/mmc/Kconfig | 1 + drivers/nvme/Kconfig | 1 + drivers/scsi/Kconfig | 1 + drivers/usb/Kconfig | 1 + drivers/virtio/Kconfig | 1 + 7 files changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index 4fbb63a148ac..29ceab849c02 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig @@ -1,6 +1,7 @@ config AHCI bool "Support SATA controllers with driver model" depends on DM + select BLK help This enables a uclass for disk controllers in U-Boot. Various driver types can use this, such as AHCI/SATA. It does not provide any standard @@ -9,6 +10,7 @@ config AHCI config SATA bool "Support SATA controllers" + select BLK help This enables support for SATA (Serial Advanced Technology Attachment), a serial bus standard for connecting to hard drives and diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index 5283d8981e09..cc75bad02b8c 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -1,8 +1,5 @@ config BLK - bool # "Support block devices" - depends on DM - def_bool y if MMC || USB || SCSI || NVME || IDE || AHCI || SATA - def_bool y if EFI_MEDIA || VIRTIO_BLK || PVBLOCK + bool help Enable support for block devices, such as SCSI, MMC and USB flash sticks. These provide a block-level interface which permits @@ -100,6 +97,7 @@ config TPL_BLOCK_CACHE config EFI_MEDIA bool "Support EFI media drivers" default y if EFI || SANDBOX + select BLK help Enable this to support media devices on top of UEFI. This enables just the uclass so you also need a specific driver to make this do @@ -139,6 +137,7 @@ endif # EFI_MEDIA config IDE bool "Support IDE controllers" + select BLK help Enables support for IDE (Integrated Drive Electronics) hard drives. This allows access to raw blocks and filesystems on an IDE drive diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 46513db0d6e3..4827834b4aab 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/Kconfig @@ -3,6 +3,7 @@ menu "MMC Host controller Support" config MMC bool "MMC/SD/SDIO card support" default ARM || PPC || SANDBOX + select BLK select DM_MMC help This selects MultiMediaCard, Secure Digital and Secure diff --git a/drivers/nvme/Kconfig b/drivers/nvme/Kconfig index 73edb3551606..d138867666bd 100644 --- a/drivers/nvme/Kconfig +++ b/drivers/nvme/Kconfig @@ -4,6 +4,7 @@ config NVME bool "NVM Express device support" + select BLK help This option enables support for NVM Express devices. It supports basic functions of NVMe (read/write). diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig index 7e21c4ae2bb8..fc87d34cca39 100644 --- a/drivers/scsi/Kconfig +++ b/drivers/scsi/Kconfig @@ -1,5 +1,6 @@ config SCSI bool "Support SCSI controllers with driver model" + select BLK help This enables support for SCSI (Small Computer System Interface), a parallel interface widely used with storage peripherals such as diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index 960b6a906ac4..99c6649e4178 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig @@ -1,5 +1,6 @@ menuconfig USB bool "USB support" + select BLK ---help--- Universal Serial Bus (USB) is a specification for a serial bus subsystem which offers higher speeds and more features than the diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig index 1de68867d52e..512ac376f185 100644 --- a/drivers/virtio/Kconfig +++ b/drivers/virtio/Kconfig @@ -64,6 +64,7 @@ config VIRTIO_NET config VIRTIO_BLK bool "virtio block driver" depends on VIRTIO + select BLK help This is the virtual block driver for virtio. It can be used with QEMU based targets. -- 2.43.0