vfio/ccw: Refactor vfio_ccw_mdev_reset
authorEric Farman <farman@linux.ibm.com>
Thu, 7 Jul 2022 13:57:36 +0000 (15:57 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 7 Jul 2022 20:06:12 +0000 (14:06 -0600)
commitbfec266c8159450720705f16208736e03812e5dc
tree285a0e0f0ff3ca61589fc95dddeb1501b6b9c9cd
parentf4b4ed44770221819daa19800f232a2708588c2f
vfio/ccw: Refactor vfio_ccw_mdev_reset

Use both the FSM Close and Open events when resetting an mdev,
rather than making a separate call to cio_enable_subchannel().

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Link: https://lore.kernel.org/r/20220707135737.720765-11-farman@linux.ibm.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/s390/cio/vfio_ccw_ops.c