Re: [PATCH 0/3] arm: Add Analog Devices SC5xx Machine Type

2024-04-12 Thread Nuno
rk is to run CI. - Nuno Sá

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

2023-05-11 Thread Nuno
exception. This change fixes it by reading the 'addr_size' during probe() and also use that as one possible upper limit. Signed-off-by: Nuno Sá --- v2: * Fix compilation when CONFIG_CFI_FLASH is not set. Done by redefining cfi_flash_bank_size() when CONFIG_CFI_FLASH is set (by returning dts size

Re: [PATCH v3 1/2] mtd: cfi: respect reg address length

2023-04-28 Thread Nuno
Hi Stefan, On Fri, 2023-04-28 at 11:59 +0200, Stefan Roese wrote: > Hi Nuno Sá, > > On 4/26/23 16:16, 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 &g

[PATCH v3 1/2] mtd: cfi: respect reg address length

2023-04-26 Thread Nuno
exception. This change fixes it by reading the 'addr_size' during probe() and also use that as one possible upper limit. Signed-off-by: Nuno Sá --- v2: * Fix compilation when CONFIG_CFI_FLASH is not set. Done by redefining cfi_flash_bank_size() when CONFIG_CFI_FLASH is set (by returning dts size). v3

[PATCH v3 2/2] mtd: cfi: change cfi_flash_bank_size() return type

2023-04-26 Thread Nuno
Move return type to phys_size_t instead of plain unsigned long. Signed-off-by: Nuno Sá --- v2: * new patch. v3: * also make sure cfi_flash_bank_size() declaration (in cfi_flash.h) gets updated to phys_size_t. drivers/mtd/cfi_flash.c | 10 +- include/mtd/cfi_flash.h | 2 +- 2 files

Re: [PATCH v2 1/2] mtd: cfi: respect reg address length

2023-04-24 Thread Nuno
On Mon, 2023-04-24 at 09:36 +0200, Stefan Roese wrote: > On 4/24/23 09:13, Nuno Sá wrote: > > On Mon, 2023-04-24 at 08:54 +0200, Stefan Roese wrote: > > > > Hi Stefan, > > > > > > > Hi Nuno Sá > > > > > > On 4/18/23 15:07, Nuno Sá

Re: [PATCH v2 1/2] mtd: cfi: respect reg address length

2023-04-24 Thread Nuno
On Mon, 2023-04-24 at 08:54 +0200, Stefan Roese wrote: Hi Stefan, > Hi Nuno Sá > > On 4/18/23 15:07, 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 &g

[PATCH v2 2/2] mtd: cfi: change cfi_flash_bank_size() return type

2023-04-18 Thread Nuno
Move return type to phys_size_t instead of plain unsigned long. Signed-off-by: Nuno Sá --- v2: * new patch. drivers/mtd/cfi_flash.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 47a48d927201..9c030de3afef

[PATCH v2 1/2] mtd: cfi: respect reg address length

2023-04-18 Thread Nuno
exception. This change fixes it by reading the 'addr_size' during probe() and also use that as one possible upper limit. Signed-off-by: Nuno Sá --- v2: * Fix compilation when CONFIG_CFI_FLASH is not set. Done by redefining cfi_flash_bank_size() when CONFIG_CFI_FLASH is set (by returning dts size

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

2023-04-14 Thread Nuno
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 >

[PATCH] mtd: cfi: respect reg address length

2023-03-27 Thread Nuno
exception. This change fixes it by reading the 'addr_size' during probe() and also use that as one possible upper limit. Signed-off-by: Nuno Sá --- To give a bit more of background for this patch, I caught this issue when running u-boot on microblaze which uses xilinx axi_linear_flash IP. On ADI designs