On 9/2/25 4:31 PM, Alexandre Courbot wrote:
      pub(crate) fn new(
          pdev: &pci::Device<device::Bound>,
          devres_bar: Arc<Devres<Bar0>>,

The diff is hiding it, but with this patch we should also make sure that this returns impl PinInit<Self, Error> rather than Result<impl PinInit<Self>.

I think this should be possible now.

@@ -293,20 +317,15 @@ pub(crate) fn new(
          )?;
          gsp_falcon.clear_swgen0_intr(bar);
- let _sec2_falcon = Falcon::<Sec2>::new(pdev.as_ref(), spec.chipset, bar, true)?;
-
-        let fb_layout = FbLayout::new(spec.chipset, bar)?;
-        dev_dbg!(pdev.as_ref(), "{:#x?}\n", fb_layout);
-
-        let bios = Vbios::new(pdev.as_ref(), bar)?;
-
-        Self::run_fwsec_frts(pdev.as_ref(), &gsp_falcon, bar, &bios, 
&fb_layout)?;
+        let sec2_falcon = Falcon::<Sec2>::new(pdev.as_ref(), spec.chipset, 
bar, true)?;
Ok(pin_init!(Self {
              spec,
              bar: devres_bar,
              fw,
              sysmem_flush,
+            gsp_falcon,
+            sec2_falcon,
          }))
      }
  }


Reply via email to