Re: [PATCHv4 2/5] fwu: move meta-data management in core

2023-02-27 Thread Jassi Brar
Hi Ilias, On Thu, Feb 23, 2023 at 2:36 AM Ilias Apalodimas wrote: > > +int fwu_get_verified_mdata(struct fwu_mdata *mdata) > > +{ > > + int err; > > + bool pri_ok, sec_ok; > > + struct fwu_mdata s, *p_mdata, *s_mdata; > > + > > + p_mdata = &g_mdata; > > + s_mdata = &s; > > + >

Re: [PATCHv4 2/5] fwu: move meta-data management in core

2023-02-27 Thread Etienne Carriere
- err = fwu_write_mdata(g_dev, mdata, part & PRIMARY_PART ? true : false); On Mon, 27 Feb 2023 at 17:46, Jassi Brar wrote: > > On Mon, Feb 27, 2023 at 10:30 AM Etienne Carriere > wrote: > > > > Hello Jassi, > > > > On Sun, 5 Feb 2023 at 04:01, wrote: > > > > > > From: Jassi Brar > > > >

Re: [PATCHv4 2/5] fwu: move meta-data management in core

2023-02-27 Thread Jassi Brar
On Mon, Feb 27, 2023 at 10:30 AM Etienne Carriere wrote: > > Hello Jassi, > > On Sun, 5 Feb 2023 at 04:01, wrote: > > > > From: Jassi Brar > > > > Instead of each i/f having to implement their own meta-data verification > > and storage, move the logic in common code. This simplifies the i/f code

Re: [PATCHv4 2/5] fwu: move meta-data management in core

2023-02-27 Thread Etienne Carriere
Hello Jassi, On Sun, 5 Feb 2023 at 04:01, wrote: > > From: Jassi Brar > > Instead of each i/f having to implement their own meta-data verification > and storage, move the logic in common code. This simplifies the i/f code > much simpler and compact. > > Signed-off-by: Jassi Brar > --- > driver

Re: [PATCHv4 2/5] fwu: move meta-data management in core

2023-02-23 Thread Ilias Apalodimas
Hi Jassi, Apologies for the delay On Sat, Feb 04, 2023 at 09:01:46PM -0600, jassisinghb...@gmail.com wrote: > From: Jassi Brar > > Instead of each i/f having to implement their own meta-data verification > and storage, move the logic in common code. This simplifies the i/f code > much simpler an

[PATCHv4 2/5] fwu: move meta-data management in core

2023-02-04 Thread jassisinghbrar
From: Jassi Brar Instead of each i/f having to implement their own meta-data verification and storage, move the logic in common code. This simplifies the i/f code much simpler and compact. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/fwu-mdata-uclass.c | 34 +++ include/fwu.h