[PATCH] hw/ssi: aspeed: Deselect chip to reset state in command mode
Cédric Le Goater
clg at kaod.org
Sat Dec 21 04:16:52 AEDT 2019
>> --- a/hw/ssi/aspeed_smc.c
>> +++ b/hw/ssi/aspeed_smc.c
>> @@ -739,6 +739,7 @@ static uint64_t aspeed_smc_flash_read(void *opaque, hwaddr addr, unsigned size)
>> break;
>> case CTRL_READMODE:
>> case CTRL_FREADMODE:
>> + aspeed_smc_flash_unselect(fl);
Also,
This is flushing the "dirty" flash pages in the underlying block device.
Which is a good hint.
Thanks,
C.
>> aspeed_smc_flash_select(fl);
>> aspeed_smc_flash_setup(fl, addr);
>>
>>
>
More information about the openbmc
mailing list