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 C1265C433F5 for ; Sun, 20 Mar 2022 11:45:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3D2A383B41; Sun, 20 Mar 2022 12:43:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.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=google.com header.i=@google.com header.b="jyLOe7Ep"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 598BB838F0; Sun, 20 Mar 2022 12:42:14 +0100 (CET) Received: from mail-wm1-x349.google.com (mail-wm1-x349.google.com [IPv6:2a00:1450:4864:20::349]) (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 B36F6839A8 for ; Sun, 20 Mar 2022 12:42:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=3EhM3YgYKBi0JbLdUUPXXPUN.LXVd-KXXcURbcb.MNWg.MN@flex--ascull.bounces.google.com Received: by mail-wm1-x349.google.com with SMTP id i65-20020a1c3b44000000b00385c3f3defaso2887671wma.3 for ; Sun, 20 Mar 2022 04:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=0n7ZZ7tyYPOJ/FJlsPxia5FQKsMv/mah7dWlE4LSVvo=; b=jyLOe7Epq678FMVL2X5G9r+SqT72M7MQOsJTmtTQhUzkVpg+fCjJzwyQLVSWNRIU0Q RqjgIk3psQmlsTVASPSYzpBUjkjsqUWJAYWZ68plmubUFHRz+PA/WfOJQNtdzKG84E3f zEGZeZUemaxcMAZPH+TXfk2vq5fwBTCvFzL00k4jBtD3mrUj/WTb2AYo9fnyepWlKvXl KY9drKMEI8FjojE3Ur2R6SILv9Hk4EwIArr+u3LVL5zJAygxLrlN5rThlXM4WN9Iio8m 0MkychBnrpVTVi5vwioBIH6YrHHSQbnHsK8MydjOVxZgnabVSbX4UMM1KCJ5bB0y/xYM Lcmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=0n7ZZ7tyYPOJ/FJlsPxia5FQKsMv/mah7dWlE4LSVvo=; b=VXZ7sx2HJHKht5b/rb5oio5vlbeFrGV4du78MibVsyBkIMnz1uUrV+jd9ux4JuZE+p agvEUNx1Fv6lr0TFL+Kf6AJTUwiyFWg2TM7/Admoo74zRlSVWhWfL+U11jA3LTJA5YMp RM3xzGivgmcE9I7S4yneHFTIGGgi9QSX0M3Xnfrg/avUI5LyXcf/2lw9h0GqH9XrRsDI 3V/x4HnKsRpaQDJrbcERHZYh15+i+QxAhB93J2FQhzxr4mKLb0AHQXrm2ZjTZwzTsxn5 ieRixeoJKZgs1mpJEZhtB36XomePf9F6ZxPgEZcJeEGrmUTg6M+TjpbekMTDtALGy84F qrhw== X-Gm-Message-State: AOAM531mL13Qb98SxMfRoINHdfSNdzRwCfyvUyuL1gNngi68+G4Ntz65 iHIAZDEY0/k2WUQY2DT8UP0cc2RuHgaXvOPZnkNRXyOFvxS0xIqu0ir6A+Z61grwHJb85qLiUNM CF4tct+4XvDc4+8FUYEm6G3dEkvpwfZHcYEDaXNa9TXP0V3DSrAwnLC2LRoE= X-Google-Smtp-Source: ABdhPJz1J14ng60LqGdFyXuUZ7wv4+7GjZWBwfGK9spIWhXfcCahZMnyTT0NijqT5JZc3nSF0bj0pANXQSM= X-Received: from ascull.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:1510]) (user=ascull job=sendgmr) by 2002:a05:600c:3b14:b0:389:e95d:75af with SMTP id m20-20020a05600c3b1400b00389e95d75afmr22695419wms.143.1647776530957; Sun, 20 Mar 2022 04:42:10 -0700 (PDT) Date: Sun, 20 Mar 2022 11:41:18 +0000 In-Reply-To: <20220320114118.2237795-1-ascull@google.com> Message-Id: <20220320114118.2237795-12-ascull@google.com> Mime-Version: 1.0 References: <20220320114118.2237795-1-ascull@google.com> X-Mailer: git-send-email 2.35.1.894.gb6a874cedc-goog Subject: [PATCH 11/11] virtio: pci: Allow exclusion of legacy driver From: Andrew Scull To: u-boot@lists.denx.de Cc: sjg@chromium.org, bmeng.cn@gmail.com, adelva@google.com, keirf@google.com, ptosi@google.com, Andrew Scull Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Sun, 20 Mar 2022 12:43:23 +0100 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.5 at phobos.denx.de X-Virus-Status: Clean Add a new config to control whether the driver for legacy virtio PCI devices is included in the build. VIRTIO_PCI_LEGACY is included by default when VIRTIO_PCI is selected, but it can also be indepedently toggled. Signed-off-by: Andrew Scull --- drivers/virtio/Kconfig | 9 +++++++++ drivers/virtio/Makefile | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig index 863c3fbe02..586263ec88 100644 --- a/drivers/virtio/Kconfig +++ b/drivers/virtio/Kconfig @@ -37,6 +37,15 @@ config VIRTIO_PCI This driver provides support for virtio based paravirtual device drivers over PCI. +config VIRTIO_PCI_LEGACY + bool "PCI driver for legacy virtio devices" + depends on PCI + select VIRTIO + default VIRTIO_PCI + help + This driver provides support for legacy virtio based paravirtual + device drivers over PCI. + config VIRTIO_SANDBOX bool "Sandbox driver for virtio devices" depends on SANDBOX diff --git a/drivers/virtio/Makefile b/drivers/virtio/Makefile index dc8880937a..4c63a6c690 100644 --- a/drivers/virtio/Makefile +++ b/drivers/virtio/Makefile @@ -5,7 +5,8 @@ obj-y += virtio-uclass.o virtio_ring.o obj-$(CONFIG_VIRTIO_MMIO) += virtio_mmio.o -obj-$(CONFIG_VIRTIO_PCI) += virtio_pci_legacy.o virtio_pci_modern.o +obj-$(CONFIG_VIRTIO_PCI) += virtio_pci_modern.o +obj-$(CONFIG_VIRTIO_PCI_LEGACY) += virtio_pci_legacy.o obj-$(CONFIG_VIRTIO_SANDBOX) += virtio_sandbox.o obj-$(CONFIG_VIRTIO_NET) += virtio_net.o obj-$(CONFIG_VIRTIO_BLK) += virtio_blk.o -- 2.35.1.894.gb6a874cedc-goog