Re: [PATCH v3 6/6] of: Refactor node and property manipulation function locking

From: Andy Shevchenko
Date: Mon Aug 21 2023 - 06:51:44 EST


On Fri, Aug 18, 2023 at 03:41:01PM -0500, Rob Herring wrote:
> All callers of __of_{add,remove,update}_property() and
> __of_{attach,detach}_node() wrap the call with the devtree_lock
> spinlock. Let's move the spinlock into the functions. This allows moving
> the sysfs update functions into those functions as well.

With help of cleanup.h this may be made shorter and less error-prone.

--
With Best Regards,
Andy Shevchenko