Re: [PATCH v10 09/15] FWU: Add boot time checks as highlighted by the FWU specification

2022-09-27 Thread Sughosh Ganu
On Mon, 26 Sept 2022 at 19:37, Jassi Brar wrote: > > On Mon, Sep 26, 2022 at 5:08 AM Sughosh Ganu wrote: > > > > On Mon, 26 Sept 2022 at 08:29, Jassi Brar wrote: > > > . > > > > +static int fwu_boottime_checks(void *ctx, struct event *event) > > > > +{ > > > > + int ret; > > > > +

Re: [PATCH v10 09/15] FWU: Add boot time checks as highlighted by the FWU specification

2022-09-26 Thread Jassi Brar
On Mon, Sep 26, 2022 at 5:08 AM Sughosh Ganu wrote: > > On Mon, 26 Sept 2022 at 08:29, Jassi Brar wrote: > > . > > > +static int fwu_boottime_checks(void *ctx, struct event *event) > > > +{ > > > + int ret; > > > + struct udevice *dev; > > > + u32 boot_idx, active_idx; > > >

Re: [PATCH v10 09/15] FWU: Add boot time checks as highlighted by the FWU specification

2022-09-26 Thread Sughosh Ganu
On Mon, 26 Sept 2022 at 08:29, Jassi Brar wrote: > > On Thu, Sep 15, 2022 at 3:17 AM Sughosh Ganu wrote: > > > > diff --git a/include/fwu.h b/include/fwu.h > > index 484289ed4f..d5f77ce83c 100644 > > --- a/include/fwu.h > > +++ b/include/fwu.h > > @@ -256,4 +256,17 @@ int fwu_plat_get_update

Re: [PATCH v10 09/15] FWU: Add boot time checks as highlighted by the FWU specification

2022-09-25 Thread Jassi Brar
On Thu, Sep 15, 2022 at 3:17 AM Sughosh Ganu wrote: > diff --git a/include/fwu.h b/include/fwu.h > index 484289ed4f..d5f77ce83c 100644 > --- a/include/fwu.h > +++ b/include/fwu.h > @@ -256,4 +256,17 @@ int fwu_plat_get_update_index(uint *update_idx); > * > */ > void fwu_plat_get_bootidx

[PATCH v10 09/15] FWU: Add boot time checks as highlighted by the FWU specification

2022-09-15 Thread Sughosh Ganu
The FWU Multi Bank Update specification requires the Update Agent to carry out certain checks at the time of platform boot. The Update Agent is the component which is responsible for updating the firmware components and maintaining and keeping the metadata in sync. The spec requires that the Updat