Skip to contentSkip to conversation

virtio: two small improvements

PATCH Applied Cornelia Huck 2 participants 6 messages Mar 30, 2017 virtio core

lore
Share & tools
lore
#0 lore raw

cover virtio: two small improvements

Just some stuff I noticed while looking at virtio patches.

Cornelia Huck (2):
MAINTAINERS: fix virtio file pattern
virtio: virtio_driver doc

 MAINTAINERS            | 2 +-
 include/linux/virtio.h | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
Signature · 1 line
2.8.4
#1 lore raw

PATCH 1/2 MAINTAINERS: fix virtio file pattern

The pattern did not catch include/linux/virtio.h.

---
 MAINTAINERS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
index a9ae6c1..f96b3f9 100644
@@ -10902,7 +10902,7 @@ F:	drivers/virtio/
 F:	tools/virtio/
 F:	drivers/net/virtio_net.c
 F:	drivers/block/virtio_blk.c
-F:	include/linux/virtio_*.h
+F:	include/linux/virtio*.h
 F:	include/uapi/linux/virtio_*.h
 
 VIRTIO DRIVERS FOR S390
Signature · 1 line
2.8.4
#2 lore raw

PATCH 2/2 virtio: virtio_driver doc

In reply to Cornelia Huck

Add comments for the virtio_driver members that were not documented.

---
 include/linux/virtio.h | 4 ++++
 1 file changed, 4 insertions(+)
include/linux/virtio.h +4 -0
index 8f4d4bf..e80adf2 100644
@@ -133,9 +133,13 @@ int virtio_device_restore(struct virtio_device *dev);
  * @feature_table_legacy: same as feature_table but when working in legacy mode.
  * @feature_table_size_legacy: number of entries in feature table legacy array.
  * @probe: the function to call when a device is found.  Returns 0 or -errno.
+ * @scan: optional function to call after successful probe; intended
+ *    for virtio-scsi to invoke a scan.
  * @remove: the function to call when a device is removed.
  * @config_changed: optional function to call when the device configuration
  *    changes; may be called in interrupt context.
+ * @freeze: optional function to call during suspend/hibernation.
+ * @restore: optional function to call on resume.
  */
 struct virtio_driver {
 	struct device_driver driver;
Signature · 1 line
2.8.4
#3 lore raw

PATCH 2/2 virtio: virtio_driver doc

In reply to Cornelia Huck

Add comments for the virtio_driver members that were not documented.

---
 include/linux/virtio.h | 4 ++++
 1 file changed, 4 insertions(+)
include/linux/virtio.h +4 -0
index 8f4d4bf..e80adf2 100644
@@ -133,9 +133,13 @@ int virtio_device_restore(struct virtio_device *dev);
  * @feature_table_legacy: same as feature_table but when working in legacy mode.
  * @feature_table_size_legacy: number of entries in feature table legacy array.
  * @probe: the function to call when a device is found.  Returns 0 or -errno.
+ * @scan: optional function to call after successful probe; intended
+ *    for virtio-scsi to invoke a scan.
  * @remove: the function to call when a device is removed.
  * @config_changed: optional function to call when the device configuration
  *    changes; may be called in interrupt context.
+ * @freeze: optional function to call during suspend/hibernation.
+ * @restore: optional function to call on resume.
  */
 struct virtio_driver {
 	struct device_driver driver;
Signature · 1 line
2.8.4
maintainer Applied
#4 lore raw
In reply to Cornelia Huck
Quoted 1 line · Cornelia Huck

Just some stuff I noticed while looking at virtio patches.

Applied, thanks!

Quoted 10 lines

Cornelia Huck (2):
MAINTAINERS: fix virtio file pattern
virtio: virtio_driver doc

 MAINTAINERS            | 2 +-
 include/linux/virtio.h | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
Signature · 1 line
2.8.4
maintainer Applied
#5 lore raw
In reply to Cornelia Huck
Quoted 1 line · Cornelia Huck

Just some stuff I noticed while looking at virtio patches.

Applied, thanks!

Quoted 10 lines

Cornelia Huck (2):
MAINTAINERS: fix virtio file pattern
virtio: virtio_driver doc

 MAINTAINERS            | 2 +-
 include/linux/virtio.h | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
Signature · 1 line
2.8.4