Re: [PATCH 7/9] hw/block/pflash_cfi02: Factor out DeviceReset method

2021-03-10 Thread Philippe Mathieu-Daudé
On 3/10/21 9:48 AM, Bin Meng wrote: > On Wed, Mar 10, 2021 at 7:55 AM Philippe Mathieu-Daudé > wrote: >> >> There is multiple places doing a device reset. Factor that >> out in a common method which matches the DeviceReset prototype, >> so we can also remove the reset code from the

Re: [PATCH 7/9] hw/block/pflash_cfi02: Factor out DeviceReset method

2021-03-10 Thread David Edmondson
On Wednesday, 2021-03-10 at 00:50:26 +01, Philippe Mathieu-Daudé wrote: > There is multiple places doing a device reset. Factor that > out in a common method which matches the DeviceReset prototype, > so we can also remove the reset code from the DeviceRealize() > handler. Explicit the device is

Re: [PATCH 7/9] hw/block/pflash_cfi02: Factor out DeviceReset method

2021-03-10 Thread Bin Meng
On Wed, Mar 10, 2021 at 7:55 AM Philippe Mathieu-Daudé wrote: > > There is multiple places doing a device reset. Factor that > out in a common method which matches the DeviceReset prototype, > so we can also remove the reset code from the DeviceRealize() > handler. Explicit the device is set in

[PATCH 7/9] hw/block/pflash_cfi02: Factor out DeviceReset method

2021-03-09 Thread Philippe Mathieu-Daudé
There is multiple places doing a device reset. Factor that out in a common method which matches the DeviceReset prototype, so we can also remove the reset code from the DeviceRealize() handler. Explicit the device is set in "read array" mode on reset. Signed-off-by: Philippe Mathieu-Daudé ---