Re: [PATCH v4 12/13] nova-core: falcon: Add support to write firmware version

From: Alistair Popple

Date: Wed Oct 08 2025 - 01:16:59 EST


On 2025-10-08 at 14:21 +1100, Timur Tabi <ttabi@xxxxxxxxxx> wrote...
> On Wed, 2025-10-08 at 11:12 +1100, Alistair Popple wrote:
> > +
> > +    /// Write the application version to the OS register.
> > +    #[expect(dead_code)]
> > +    pub(crate) fn write_os_version(&self, bar: &Bar0, app_version: u32) -> Result<()> {
> > +        regs::NV_PFALCON_FALCON_OS::default()
> > +            .set_value(app_version)
> > +            .write(bar, &E::ID);
> > +        Ok(())
> > +    }
>
> I should have noticed this in v3, but why return Result here? This is just like is_riscv_active
> -- this function cannot fail.

Oh phooey. I recall noticing this but must've missed it when splitting the
fixes. There will almost certainly be a v5 so will fix it then. Thanks.