OSDN Git Service

hw/ide/ahci: map cmd_fis as DMA_DIRECTION_TO_DEVICE
authorAlexander Bulekov <alxndr@bu.edu>
Tue, 19 Jan 2021 16:40:51 +0000 (11:40 -0500)
committerKevin Wolf <kwolf@redhat.com>
Mon, 15 Feb 2021 14:10:14 +0000 (15:10 +0100)
commit26941eb4ca485150494379cf8f0751f426208a5b
tree7c94d5baac4c1920f73a876631affe4938a73b45
parent076d467aacdf6dc5d01e2e61740b1795f2aec2f6
hw/ide/ahci: map cmd_fis as DMA_DIRECTION_TO_DEVICE

cmd_fis is mapped as DMA_DIRECTION_FROM_DEVICE, however, it is read
from, and not written to anywhere. Fix the DMA_DIRECTION and mark
cmd_fis as read-only in the code.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20210119164051.89268-1-alxndr@bu.edu>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/ahci.c