Re: [PATCH] mtd: cfi: respect reg address length

2023-04-14 Thread Nuno Sá
Hi Stefan, On Fri, 2023-04-14 at 08:57 +0200, Stefan Roese wrote: > Hi Nuno, > > On 3/27/23 15:22, Nuno Sá wrote: > > flash_get_size() will get the flash size from the device itself and > > go > > through all erase regions to read protection status. However, the > > device > > mappable region (eg

Re: [PATCH] mtd: cfi: respect reg address length

2023-04-14 Thread Stefan Roese
Hi Nuno Sá, On 4/14/23 09:37, Nuno Sá wrote: Hi Stefan, On Fri, 2023-04-14 at 08:57 +0200, Stefan Roese wrote: Hi Nuno, On 3/27/23 15:22, Nuno Sá wrote: flash_get_size() will get the flash size from the device itself and go through all erase regions to read protection status. However, the de

Re: [PATCH] mtd: cfi: respect reg address length

2023-04-13 Thread Stefan Roese
Hi Nuno, On 3/27/23 15:22, Nuno Sá wrote: flash_get_size() will get the flash size from the device itself and go through all erase regions to read protection status. However, the device mappable region (eg: devicetree reg property) might be lower than the device full size which means that the ab

Re: [PATCH] mtd: cfi: respect reg address length

2023-03-29 Thread Stefan Roese
On 3/27/23 15:22, Nuno Sá wrote: flash_get_size() will get the flash size from the device itself and go through all erase regions to read protection status. However, the device mappable region (eg: devicetree reg property) might be lower than the device full size which means that the above cycle

[PATCH] mtd: cfi: respect reg address length

2023-03-27 Thread Nuno Sá
flash_get_size() will get the flash size from the device itself and go through all erase regions to read protection status. However, the device mappable region (eg: devicetree reg property) might be lower than the device full size which means that the above cycle will result in a data bus exception