mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
virtio: allow finalize_features to fail
This will make it easy for transports to validate features and return failure. Signed-off-by: Michael S. Tsirkin <[email protected]>
This commit is contained in:
parent
ce15408f35
commit
5c609a5ef0
9 changed files with 38 additions and 16 deletions
|
|
@ -217,7 +217,7 @@ static u64 rproc_virtio_get_features(struct virtio_device *vdev)
|
|||
return rsc->dfeatures;
|
||||
}
|
||||
|
||||
static void rproc_virtio_finalize_features(struct virtio_device *vdev)
|
||||
static int rproc_virtio_finalize_features(struct virtio_device *vdev)
|
||||
{
|
||||
struct rproc_vdev *rvdev = vdev_to_rvdev(vdev);
|
||||
struct fw_rsc_vdev *rsc;
|
||||
|
|
@ -235,6 +235,8 @@ static void rproc_virtio_finalize_features(struct virtio_device *vdev)
|
|||
* to the remote processor once it is powered on.
|
||||
*/
|
||||
rsc->gfeatures = vdev->features;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void rproc_virtio_get(struct virtio_device *vdev, unsigned offset,
|
||||
|
|
|
|||
Loading…
Reference in a new issue