On Mon, 2023-01-23 at 09:31 -0500, Vivi, Rodrigo wrote: > On Sun, Jan 22, 2023 at 06:57:24AM +0000, Usyskin, Alexander wrote: > > > > diff --git a/drivers/gpu/drm/i915/pxp/intel_pxp_tee.c > > > b/drivers/gpu/drm/i915/pxp/intel_pxp_tee.c > > > > index d50354bfb993..bef6d7f8ac55 100644 > > > > --- a/drivers/gpu/drm/i915/pxp/intel_pxp_tee.c > > > > +++ b/drivers/gpu/drm/i915/pxp/intel_pxp_tee.c > > > > @@ -127,6 +127,10 @@ static int i915_pxp_tee_component_bind(struct > > > alan:snip. Thanks Jani, Rodrigo and Alex. I'll re-rev with all of Rodrigo's recommendation: - will break down the initial code so we dont hide device-link behind drm_WARN_ON - since i didnt hear any hard objection - I will stick with Rodrigo's recommendation to stash the device-link. - dont need DL_FLAG_PM_RUNTIME - use -ENODEV probably like this: if (!HAS_HECI_PXP(i915)) { pxp->component_dev_link = device_link_add(i915_kdev, tee_kdev, DL_FLAG_STATELESS); if (drm_WARN_ON(&i915->drm, !pxp->component_dev_link)) return -ENODEV; } alan:snip.