]> Git Repo - qemu.git/commit
hw/sd/bcm2835_sdhost: Fix PIO mode writes
authorGuenter Roeck <[email protected]>
Mon, 23 Jul 2018 14:21:26 +0000 (15:21 +0100)
committerPeter Maydell <[email protected]>
Mon, 23 Jul 2018 14:21:26 +0000 (15:21 +0100)
commit03a31776e8fb239fee98625dd83b85f5cbe3ccba
tree3add69bf80051ca77aca2b23084c357eead29b64
parent7b6d7b84da328d5d1fffb862b8388d511e085812
hw/sd/bcm2835_sdhost: Fix PIO mode writes

Writes in PIO mode have two requirements:

- A data interrupt must be generated after a write command has been
  issued to indicate that the chip is ready to receive data.
- A block interrupt must be generated after each block to indicate
  that the chip is ready to receive the next data block.

Rearrange the code to make this happen. Tested on raspi3 (in PIO mode)
and raspi2 (in DMA mode).

Signed-off-by: Guenter Roeck <[email protected]>
Message-id: 1531779837[email protected]
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
hw/sd/bcm2835_sdhost.c
This page took 0.02003 seconds and 4 git commands to generate.