mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
pds_vdpa: set features order
[ Upstream commit cefc9ba6ae
]
Fix up the order that the device and negotiated features
are checked to get a more reliable difference when things
get changed.
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Message-Id: <20231110221802.46841-4-shannon.nelson@amd.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d3bb92beda
commit
06cb2064b0
1 changed files with 1 additions and 2 deletions
|
@ -318,9 +318,8 @@ static int pds_vdpa_set_driver_features(struct vdpa_device *vdpa_dev, u64 featur
|
|||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
pdsv->negotiated_features = nego_features;
|
||||
|
||||
driver_features = pds_vdpa_get_driver_features(vdpa_dev);
|
||||
pdsv->negotiated_features = nego_features;
|
||||
dev_dbg(dev, "%s: %#llx => %#llx\n",
|
||||
__func__, driver_features, nego_features);
|
||||
|
||||
|
|
Loading…
Reference in a new issue