projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59a6be9
)
virtio: Fix returning -ENODEV
author
Simon Glass
<sjg@chromium.org>
Tue, 17 Jan 2023 17:47:49 +0000
(10:47 -0700)
committer
Tom Rini
<trini@konsulko.com>
Mon, 23 Jan 2023 23:11:40 +0000
(18:11 -0500)
This has a special meaning in driver model. There is clearly a device, so
it does not make sense to return this error code. Fix it.
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/virtio/virtio-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/virtio/virtio-uclass.c
b/drivers/virtio/virtio-uclass.c
index
6d9b029
..
a6bff63
100644
(file)
--- a/
drivers/virtio/virtio-uclass.c
+++ b/
drivers/virtio/virtio-uclass.c
@@
-163,7
+163,7
@@
int virtio_finalize_features(struct udevice *vdev)
return ret;
if (!(status & VIRTIO_CONFIG_S_FEATURES_OK)) {
debug("(%s): device refuses features %x\n", vdev->name, status);
- return -E
NODEV
;
+ return -E
INVAL
;
}
return 0;