@@ -39,8 +39,8 @@ static void virtio_gpu_config_changed_work_func(struct work_struct *work)
39
39
u32 events_read , events_clear = 0 ;
40
40
41
41
/* read the config space */
42
- virtio_cread (vgdev -> vdev , struct virtio_gpu_config ,
43
- events_read , & events_read );
42
+ virtio_cread_le (vgdev -> vdev , struct virtio_gpu_config ,
43
+ events_read , & events_read );
44
44
if (events_read & VIRTIO_GPU_EVENT_DISPLAY ) {
45
45
if (vgdev -> has_edid )
46
46
virtio_gpu_cmd_get_edids (vgdev );
@@ -49,8 +49,8 @@ static void virtio_gpu_config_changed_work_func(struct work_struct *work)
49
49
drm_helper_hpd_irq_event (vgdev -> ddev );
50
50
events_clear |= VIRTIO_GPU_EVENT_DISPLAY ;
51
51
}
52
- virtio_cwrite (vgdev -> vdev , struct virtio_gpu_config ,
53
- events_clear , & events_clear );
52
+ virtio_cwrite_le (vgdev -> vdev , struct virtio_gpu_config ,
53
+ events_clear , & events_clear );
54
54
}
55
55
56
56
static void virtio_gpu_init_vq (struct virtio_gpu_queue * vgvq ,
@@ -165,8 +165,8 @@ int virtio_gpu_init(struct drm_device *dev)
165
165
}
166
166
167
167
/* get display info */
168
- virtio_cread (vgdev -> vdev , struct virtio_gpu_config ,
169
- num_scanouts , & num_scanouts );
168
+ virtio_cread_le (vgdev -> vdev , struct virtio_gpu_config ,
169
+ num_scanouts , & num_scanouts );
170
170
vgdev -> num_scanouts = min_t (uint32_t , num_scanouts ,
171
171
VIRTIO_GPU_MAX_SCANOUTS );
172
172
if (!vgdev -> num_scanouts ) {
@@ -176,8 +176,8 @@ int virtio_gpu_init(struct drm_device *dev)
176
176
}
177
177
DRM_INFO ("number of scanouts: %d\n" , num_scanouts );
178
178
179
- virtio_cread (vgdev -> vdev , struct virtio_gpu_config ,
180
- num_capsets , & num_capsets );
179
+ virtio_cread_le (vgdev -> vdev , struct virtio_gpu_config ,
180
+ num_capsets , & num_capsets );
181
181
DRM_INFO ("number of cap sets: %d\n" , num_capsets );
182
182
183
183
virtio_gpu_modeset_init (vgdev );
0 commit comments