From 37aeb7a28ddbf52dd25dd53ae1b8391bc2287858 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 14 Sep 2020 10:13:42 +0200 Subject: [PATCH] hw/net/can: Correct Kconfig dependencies The original CAN_PCI config option enables multiple SJA1000 PCI boards emulation build. These boards bridge SJA1000 into I/O or memory address space of the host CPU and depend on SJA1000 emulation. Signed-off-by: Pavel Pisa Message-Id: Signed-off-by: Paolo Bonzini --- hw/net/Kconfig | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/net/Kconfig b/hw/net/Kconfig index 225d948841..6d795ec752 100644 --- a/hw/net/Kconfig +++ b/hw/net/Kconfig @@ -132,16 +132,15 @@ config ROCKER config CAN_BUS bool -config CAN_PCI - bool - default y if PCI_DEVICES - depends on PCI - select CAN_BUS - config CAN_SJA1000 bool default y if PCI_DEVICES - depends on PCI + select CAN_BUS + +config CAN_PCI + bool + default y if PCI_DEVICES + depends on PCI && CAN_SJA1000 select CAN_BUS config CAN_CTUCANFD