From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Deacon Subject: Re: [PATCH V2 2/5] arm: mvebu: Added initial support for power managmement service unit Date: Wed, 14 Nov 2012 09:46:40 +0000 Message-ID: <20121114094640.GA10142@mudshark.cambridge.arm.com> References: <1351545108-18954-1-git-send-email-gregory.clement@free-electrons.com> <1351545108-18954-3-git-send-email-gregory.clement@free-electrons.com> <20121105140558.GP3351@mudshark.cambridge.arm.com> <20121114000736.GE3290@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20121114000736.GE3290@n2100.arm.linux.org.uk> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Russell King - ARM Linux Cc: Lior Amsalem , Andrew Lunn , Ike Pan , Nadav Haklai , Ian Molton , David Marlin , Yehuda Yitschak , Jani Monoses , Mike Turquette , Tawfik Bayouk , Dan Frazier , Eran Ben-Avi , Leif Lindholm , Sebastian Hesselbarth , Jason Cooper , Arnd Bergmann , "jcm@redhat.com" , "devicetree-discuss@lists.ozlabs.org" , "rob.herring@calxeda.com" , Ben Dooks , Gregory CLEMENT , linux-arm-kernel@list List-Id: devicetree@vger.kernel.org On Wed, Nov 14, 2012 at 12:07:36AM +0000, Russell King - ARM Linux wrote: > On Mon, Nov 05, 2012 at 02:05:58PM +0000, Will Deacon wrote: > > On Mon, Oct 29, 2012 at 09:11:45PM +0000, Gregory CLEMENT wrote: > > > + /* Make sure value hits memory before reset */ > > > + dsb(); > > > > writel has barrier semantics -- you shouldn't need this dsb. > > writel has a barrier before the write (to ensure that DMA agents see data > that was written to memory when they are enabled by the write). There > isn't a barrier after the write. Indeed, but there's a following write to actually do the reset, so the dsb should come from there. Will