[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fa686aa41002090925q30f362d6x4d14894a72439125@mail.gmail.com>
Date: Tue, 9 Feb 2010 10:25:22 -0700
From: Grant Likely <grant.likely@...retlab.ca>
To: Anton Vorontsov <avorontsov@...mvista.com>
Cc: David Brownell <dbrownell@...rs.sourceforge.net>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
David Miller <davem@...emloft.net>,
Michal Simek <monstr@...str.eu>, linuxppc-dev@...abs.org,
linux-kernel@...r.kernel.org, devicetree-discuss@...ts.ozlabs.org,
microblaze-uclinux@...e.uq.edu.au
Subject: Re: [PATCH 2/3] of: Introduce safe accessors for node->data
On Fri, Feb 5, 2010 at 1:50 PM, Anton Vorontsov
<avorontsov@...mvista.com> wrote:
> Platform code use node->data to store some private information
> associated with a node.
>
> Previously there was no need for any locks and accessors since we were
> initializing the data mostly at boot time and never modified it later.
>
> Though, nowadays OF GPIO infrastructure supports GPIO chips detaching,
> so to handle this correctly we have to introduce locking for the
> node->data field.
I'm not convinced this is needed. What's wrong with using the
whole-tree devtree_lock?
g.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists