Re: [PATCH v2 1/3] cpukit/flash: Add API for Flash devices

2023-04-19 Thread Chris Johns
On 20/4/2023 7:42 am, Gedare Bloom wrote: > On Mon, Apr 17, 2023 at 9:55 PM Chris Johns wrote: >> >> On 18/4/2023 1:48 pm, Gedare Bloom wrote: >>> On Sun, Apr 16, 2023 at 6:48 PM Aaron Nyholm >>> wrote: As for the RTEMS_FLASHDEV_MAX_REGIONS being set at 32 I chose the value as it seame

Re: [PATCH v2 1/3] cpukit/flash: Add API for Flash devices

2023-04-19 Thread Gedare Bloom
On Mon, Apr 17, 2023 at 9:55 PM Chris Johns wrote: > > On 18/4/2023 1:48 pm, Gedare Bloom wrote: > > On Sun, Apr 16, 2023 at 6:48 PM Aaron Nyholm > > wrote: > >> As for the RTEMS_FLASHDEV_MAX_REGIONS being set at 32 I chose the value as > >> it seamed a good balance between memory usage and func

Re: [PATCH v2 1/3] cpukit/flash: Add API for Flash devices

2023-04-17 Thread Chris Johns
On 18/4/2023 1:48 pm, Gedare Bloom wrote: > On Sun, Apr 16, 2023 at 6:48 PM Aaron Nyholm > wrote: >> As for the RTEMS_FLASHDEV_MAX_REGIONS being set at 32 I chose the value as >> it seamed a good balance between memory usage and function. I wanted to >> avoid using malloc as your previous feedba

Re: [PATCH v2 1/3] cpukit/flash: Add API for Flash devices

2023-04-17 Thread Gedare Bloom
On Sun, Apr 16, 2023 at 6:48 PM Aaron Nyholm wrote: > > Hi Gedare, > > Thanks for the feedback you’ve provided. I have a couple questions. > > You suggest refactoring the callouts into another sturct, I’m happy to do so. > I originally chose not to as I was was basing the high level structure off

Re: [PATCH v2 1/3] cpukit/flash: Add API for Flash devices

2023-04-16 Thread Aaron Nyholm
Hi Gedare, Thanks for the feedback you’ve provided. I have a couple questions. You suggest refactoring the callouts into another sturct, I’m happy to do so. I originally chose not to as I was was basing the high level structure off the i2c API already in RTEMS. Just clarifying it’s worth doing.

Re: [PATCH v2 1/3] cpukit/flash: Add API for Flash devices

2023-04-14 Thread Gedare Bloom
I focused my review on the API. See below. On Thu, Apr 6, 2023 at 1:08 AM wrote: > > From: Aaron Nyholm > [...] > diff --git a/cpukit/include/dev/flash/flashdev.h > b/cpukit/include/dev/flash/flashdev.h > new file mode 100644 > index 00..5d53ea7b97 > --- /dev/null > +++ b/cpukit/include

[PATCH v2 1/3] cpukit/flash: Add API for Flash devices

2023-04-06 Thread aaron . nyholm
From: Aaron Nyholm --- cpukit/dev/flash/flashdev.c | 732 cpukit/include/dev/flash/flashdev.h | 437 + spec/build/cpukit/librtemscpu.yml | 4 + 3 files changed, 1173 insertions(+) create mode 100644 cpukit/dev/flash/flashdev.c create mod