On Fri 21 May 06:10 CDT 2021, Maulik Shah wrote: > On 4/13/2021 5:13 AM, Bjorn Andersson wrote: > > On Tue 06 Apr 05:27 CDT 2021, Maulik Shah wrote: [..] > > > diff --git a/drivers/soc/qcom/soc_sleep_stats.c b/drivers/soc/qcom/soc_sleep_stats.c [..] > > > +MODULE_SOFTDEP("pre: smem"); > > I believe this should be "qcom_smem", > the module has smem.ko file so "smem" looks proper. > > but given that you call > > qcom_smem_get() in your code you have a hard dependency in place > > already. So, can you help me understand what use this softdep provide? > > If both smem and soc_sleep_stats are compiled as DLKMs, this is to make sure > smem module was loaded first by keeping pre soft dependency. > But we're making a direct function call into the qcom_smem driver, so we already have a hard dependency on qcom_smem.ko being loaded. Regards, Bjorn