[PATCH rtems6 - v2 00/16] Overwork flashdev

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Hi, here`s the revised patch set. Patches 1-5 have not been disputed and are therefore untouched. I only added the issue reference to the comment line. I`ve choosen to not rename "min. write block size" and "region". In addition to that I kept the "region" mechanics i.e. h

[PATCH rtems6 - v2 01/16] flashdev.h: Add missing C++ include guards

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/include/dev/flash/flashdev.h | 9 + 1 file changed, 9 insertions(+) diff --git a/cpukit/include/dev/flash/flashdev.h b/cpukit/include/dev/flash/flashdev.h index d1dc08a5c4..6759357206 100644 --- a/cpukit/include/dev/flash/flashdev.h +++ b/c

[PATCH rtems6 - v2 02/16] flashdev: Unify IOCTL macro names

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/dev/flash/flashdev.c | 16 cpukit/include/dev/flash/flashdev.h | 16 cpukit/libmisc/shell/main_flashdev.c | 12 ++-- testsuites/libtests/flashdev01/init.c | 16 4 files changed,

[PATCH rtems6 - v2 03/16] flashdev: Align IOCTL function and macro

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/dev/flash/flashdev.c | 72 +-- cpukit/include/dev/flash/flashdev.h | 12 ++-- .../libtests/flashdev01/test_flashdev.c | 36 +- 3 files changed, 60 insertions(+), 60 deletions(-) diff --git a/

[PATCH rtems6 - v2 07/16] flashdev: fix wrong offset assignment

2024-01-07 Thread berndmoessner80
From: Bernd Moessner When the region feature is active, flashdev assumes that a relative address is provided. It computes the abs. address and carries out the read / write. However, in this case it must not assign the abs. address to iop->offset. The relative address is required here to allow new

[PATCH rtems6 - v2 04/16] flashdev: Align IOCTL and shell function

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/libmisc/shell/main_flashdev.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/cpukit/libmisc/shell/main_flashdev.c b/cpukit/libmisc/shell/main_flashdev.c index 969b0687d2..516c77ae27 100644 --- a/cp

[PATCH rtems6 - v2 06/16] flashdev.c: return error in case neither

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/dev/flash/flashdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index 8bd3d11246..7bc13ed70a 100644 --- a/cpukit/dev/flash/flashdev.c +++ b/cpukit/dev/flash/flashdev.c

[PATCH rtems6 - v2 08/16] flashdev: add function to deregister

2024-01-07 Thread berndmoessner80
From: Bernd Moessner In addition to that update the test case Updates #4981 --- cpukit/dev/flash/flashdev.c | 12 ++ cpukit/include/dev/flash/flashdev.h | 14 +++ testsuites/libtests/flashdev01/init.c | 15 ++-- .../libtests/flashdev01

[PATCH rtems6 - v2 09/16] flashdev: Refactor macro name

2024-01-07 Thread berndmoessner80
From: Bernd Moessner The major change in this patch is that it refactors RTEMS_FLASHDEV_IOCTL_GET_WRITE_BLOCK_SIZE to become RTEMS_FLASHDEV_IOCTL_GET_MIN_WRITE_BLOCK_SIZE. Apart from that this patch fixes comments and aligns function names. There is no change in the behaviour of the code introd

[PATCH rtems6 - v2 10/16] flashdev: extend testsuite

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Allow testsuite to set the min. write block size Updates #4981 --- testsuites/libtests/flashdev01/init.c | 191 +++--- .../libtests/flashdev01/test_flashdev.c | 13 +- .../libtests/flashdev01/test_flashdev.h | 2 +- 3 files changed, 133 in

[PATCH rtems6 - v2 11/16] flashdev: extend testsuite

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- testsuites/libtests/flashdev01/init.c | 8 +++- .../libtests/flashdev01/test_flashdev.c | 41 --- .../libtests/flashdev01/test_flashdev.h | 6 ++- 3 files changed, 38 insertions(+), 17 deletions(-) diff --git a/testsui

[PATCH rtems6 - v2 12/16] flashdev: Add erase info to page info

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/dev/flash/flashdev.c | 8 ++- cpukit/include/dev/flash/flashdev.h | 18 ++- cpukit/libmisc/shell/main_flashdev.c | 18 --- testsuites/libtests/flashdev01/init.c | 18 ++- .../libtests/flashdev

[PATCH rtems6 - v2 13/16] flashdev: fix erase function

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Erase function must take erase size and alignment into account Updates #4981 --- cpukit/dev/flash/flashdev.c | 49 ++- testsuites/libtests/flashdev01/init.c | 18 +- 2 files changed, 65 insertions(+), 2 deletions(-) diff --git a/cp

[PATCH rtems6 - v2 14/16] flashdev: revise region creation

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Create / update region only if it is aligned to erase size Updates #4981 --- cpukit/dev/flash/flashdev.c | 14 ++ testsuites/libtests/flashdev01/init.c | 12 2 files changed, 26 insertions(+) diff --git a/cpukit/dev/flash/flashdev.c b/cpu

[PATCH rtems6 - v2 15/16] flashdev: Refactor IOCTL defines into enum

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/include/dev/flash/flashdev.h | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/cpukit/include/dev/flash/flashdev.h b/cpukit/include/dev/flash/flashdev.h index ac21f883e8..d59f5e92e5 100644 --- a/cpukit/in

[PATCH rtems6 - v2 16/16] flashdev: restrict flash writes

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Disallow writes that do not match alignment / req. length This feature applies if the min write block size is != 0. Closes #4981 --- cpukit/dev/flash/flashdev.c | 11 +++ testsuites/libtests/flashdev01/init.c | 24 +++- 2 files changed

[PATCH rtems6 - v2 05/16] flashdev: Add missing default case

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/dev/flash/flashdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index 27edead968..8bd3d11246 100644 --- a/cpukit/dev/flash/flashdev.c +++ b/cpukit/dev/flash/flashdev.c @@ -390,6 +39

[PATCH rtems6 0/1] Fix comment in xparameters.h

2024-01-07 Thread berndmoessner80
From: Bernd Moessner See patch Bernd Moessner (1): xparameters.h: fix typo in comment bsps/include/xil/xparameters.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.34.1 ___ devel mailing list devel@rtems.org http://lists.rtems.org/ma

[PATCH rtems6 1/1] xparameters.h: fix typo in comment

2024-01-07 Thread berndmoessner80
From: Bernd Moessner --- bsps/include/xil/xparameters.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/include/xil/xparameters.h b/bsps/include/xil/xparameters.h index b665810643..9d4d95eacb 100644 --- a/bsps/include/xil/xparameters.h +++ b/bsps/include/xil/xparameters.