Re: [PATCH 2/5] aspeed/smc: Do not map disabled segment on the AST2600

2019-11-17 Thread Joel Stanley
On Thu, 14 Nov 2019 at 09:46, Cédric Le Goater wrote: > > The segments can be disabled on the AST2600 (zero register value). > CS0 is open by default but not the other CS. This is closing the > access to the flash device in user mode and forbids scanning. > > In the model, check the segment size a

[PATCH 2/5] aspeed/smc: Do not map disabled segment on the AST2600

2019-11-14 Thread Cédric Le Goater
The segments can be disabled on the AST2600 (zero register value). CS0 is open by default but not the other CS. This is closing the access to the flash device in user mode and forbids scanning. In the model, check the segment size and disable the associated region when the value is zero. Fixes: b