lkml.org 
[lkml]   [2022]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2 1/9] ASoC: qdsp6: audioreach: topology use idr_alloc_u32
From
Thanks Pierre,

On 21/10/2022 18:09, Pierre-Louis Bossart wrote:
>
>
> On 10/21/22 11:51, Srinivas Kandagatla wrote:
>> SubGraph and Module Instance ids take 32 bits, so use idr_alloc_u32
>> instead of idr_alloc to able to accomdate valid ranges.
>
> typo: accommodate.
>
will fix it in next version

> Also worth checking https://www.kernel.org/doc/html/latest/core-api/idr.html
> "The IDR interface is deprecated; please use the XArray instead."
Thanks for this hit, this looks really good and specially lookups
without Locking, this could cleanup the code a bit.

Having said that I would still like this patch go as it is with idr for
now, and I can plan to rework on converting idr to xa later, as there
are few more Qcom Audio drivers that have usage of idr.

thanks,
srini

>
>

\
 
 \ /
  Last update: 2022-10-26 11:20    [W:0.056 / U:1.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site