summaryrefslogtreecommitdiffstats
path: root/meta-uhmi/meta-rvgpu/recipes-kernel/virtio-loopback-driver/virtio-loopback-driver/0001-Remove-card_index-option.patch
blob: e20df7095e8ce199af18c2ddfe2f57cdf5b9500c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
From ba9b19b36f7c7f7df8c4041569f7cef04b2d42da Mon Sep 17 00:00:00 2001
From: murakami <murakami.kenta002@jp.panasonic.jp>
Date: Fri, 28 Jul 2023 13:05:19 +0900
Subject: [PATCH] Remove card_index option

Remove card_index option support from virtio-loopback-driver,
because the kernel needs to be patched to run that option 
in rvgpu-proxy. 

Upstream-Status: Inappropriate [embedded specific]
---
 src/virtio_lo.h        | 1 -
 src/virtio_lo_device.c | 1 -
 src/virtio_lo_device.h | 1 -
 src/virtio_lo_driver.c | 3 ---
 4 files changed, 6 deletions(-)

diff --git a/src/virtio_lo.h b/src/virtio_lo.h
index a07fa91..0da681e 100644
--- a/src/virtio_lo.h
+++ b/src/virtio_lo.h
@@ -25,7 +25,6 @@ struct virtio_lo_devinfo {
 	__u64 features; /* IN/OUT */
 	__u32 config_size; /* IN */
 	__s32 config_kick; /* IN */
-	__s32 card_index; /* IN */
 	__u32 padding; /* IN */
 	__u8 *config; /* IN/OUT */
 	struct virtio_lo_qinfo *qinfo; /* IN/OUT */
diff --git a/src/virtio_lo_device.c b/src/virtio_lo_device.c
index 39e8788..22687b7 100644
--- a/src/virtio_lo_device.c
+++ b/src/virtio_lo_device.c
@@ -171,7 +171,6 @@ static long vilo_ioctl_adddev(struct virtio_lo_owner *owner,
 
 	dev->device_id = di.device_id;
 	dev->vendor_id = di.vendor_id;
-	dev->card_index = di.card_index;
 	dev->nqueues = di.nqueues;
 	dev->features = dev->device_features = di.features;
 
diff --git a/src/virtio_lo_device.h b/src/virtio_lo_device.h
index 2d872a7..bc40b3e 100644
--- a/src/virtio_lo_device.h
+++ b/src/virtio_lo_device.h
@@ -25,7 +25,6 @@ struct virtio_lo_device {
 	unsigned idx;
 	u32 device_id;
 	u32 vendor_id;
-	int card_index;
 
 	struct platform_device *pdev;
 
diff --git a/src/virtio_lo_driver.c b/src/virtio_lo_driver.c
index 30d1852..d7f517d 100644
--- a/src/virtio_lo_driver.c
+++ b/src/virtio_lo_driver.c
@@ -284,9 +284,6 @@ static int virtio_lo_probe(struct platform_device *pdev)
 	vl_driv->device = device;
 	vl_driv->pdev = pdev;
 
-#ifdef CONFIG_VIRTIO_LO_DEVICE_INDEX
-	vl_driv->vdev.card_index = device->card_index;
-#endif /* CONFIG_VIRTIO_LO_DEVICE_INDEX */
 	vl_driv->vdev.dev.parent = &pdev->dev;
 	vl_driv->vdev.dev.release = virtio_lo_release_dev_empty;
 	vl_driv->vdev.config = &virtio_lo_config_ops;
-- 
2.17.1