On 10/29/25 5:54 PM, Alexandre Courbot wrote:
On Thu Oct 30, 2025 at 9:37 AM JST, John Hubbard wrote:
On 10/29/25 6:54 AM, Alexandre Courbot wrote:
On Wed Oct 29, 2025 at 8:26 PM JST, Danilo Krummrich wrote:
<snip>
...
Done. Final code snippet looks like this:
let boot0 = regs::NV_PMC_BOOT_0::read(bar);
if boot0.use_boot42_instead() {
Spec::try_from(regs::NV_PMC_BOOT_42::read(bar))
} else {
Spec::try_from(boot0)
}
The previous code was returning `ENODEV` in case of NV04, aren't we
losing this? Or is it moved to BOOT0's `try_from`?
Exactly, this is by intention now. We can fully determine the answers
via .use_boot42_instead(). The nv04 check is redundant.
thanks,
John Hubbard