diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2015-02-11 15:01:14 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2015-02-11 15:03:16 +1030 |
commit | 7abb568dbb32d055ec6a5633d26fb39fbcd525e3 (patch) | |
tree | 7e5aac0a98bbcd55d764a28c84743a02ff72e320 /drivers/power/88pm860x_battery.c | |
parent | 6d96ee98b1d08bcf0f90a6bf2c6766dda6b3a010 (diff) |
virtio_pci: use 16-bit accessor for queue_enable.
Since PCI is little endian, 8-bit access might work, but the spec section
is very clear on this:
4.1.3.1 Driver Requirements: PCI Device Layout
The driver MUST access each field using the “natural” access method,
i.e. 32-bit accesses for 32-bit fields, 16-bit accesses for 16-bit
fields and 8-bit accesses for 8-bit fields.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/power/88pm860x_battery.c')
0 files changed, 0 insertions, 0 deletions