Re: [PATCH 2/2] firmware: qcom: scm: fall back to kcalloc() for no SCM device bound
From: Bartosz Golaszewski
Date: Wed Sep 11 2024 - 15:45:01 EST
On Wed, Sep 11, 2024 at 8:01 PM Rudraksha Gupta <guptarud@xxxxxxxxx> wrote:
>
> > I'm wondering about how to approach an eventual refactoring and I'm
> > thinking that for platforms that are known to have DTs out there
> > without the node, we could exceptionally instantiate the SCM device
> > when the module is loaded? And then modify the driver to require the
> > provider to have an actual struct device attached.
>
>
> I'm happy to help test these changes if you'd like!
>
Thanks! In any case, this series should still be merged to not break
existing users (even if the kcalloc() fallback will be removed once we
do the refactoring).
Bart