]> Git Repo - qemu.git/commit
aspeed/smc: Fix number of dummy cycles for FAST_READ_4 command
authorGuenter Roeck <[email protected]>
Mon, 16 Mar 2020 15:52:24 +0000 (15:52 +0000)
committerPeter Maydell <[email protected]>
Tue, 17 Mar 2020 11:36:44 +0000 (11:36 +0000)
commit7faf6f1790dddf9f3acf6ddd95f7bbc1b4a755d0
tree75950e8b8daa11ca88407ba4e10dd99cd6e05c6a
parent9c85bcd8f5f9f775e8305e580cf5fbc5b7ba2c28
aspeed/smc: Fix number of dummy cycles for FAST_READ_4 command

The Linux kernel recently started using FAST_READ_4 commands.
This results in flash read failures. At the same time, the m25p80
emulation is seen to read 8 more bytes than expected. Adjusting the
expected number of dummy cycles to match FAST_READ fixes the problem.

Fixes: f95c4bffdc4c ("aspeed/smc: snoop SPI transfers to fake dummy cycles")
Reviewed-by: Cédric Le Goater <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
hw/ssi/aspeed_smc.c
This page took 0.023938 seconds and 4 git commands to generate.