From: Ian Campbell Subject: Re: [PATCH V6] xen: arm: platforms: Adding reset support for xgene arm64 platform. Date: Mon, 27 Jan 2014 14:39:56 +0000 Message-ID: <1390833596.12230.35.camel@kazak.uk.xensource.com> References: <1390822488-22183-1-git-send-email-pranavkumar@linaro.org> <52E660CF.4010606@linaro.org> <1390832020.12230.32.camel@kazak.uk.xensource.com> <52E66C2B.9020901@linaro.org> <1390832847.12230.33.camel@kazak.uk.xensource.com> <52E66EF5.7060405@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <52E66EF5.7060405@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Anup Patel , patches@linaro.org, patches@apm.com, xen-devel@lists.xen.org, stefano.stabellini@citrix.com, Pranavkumar Sawargaonkar List-Id: xen-devel@lists.xenproject.org On Mon, 2014-01-27 at 14:36 +0000, Julien Grall wrote: > The only ways we can fail are: > - ioremap return NULL; > - reset address is not set. > > Both won't work at the second attempd, neither the third. You are missing the fact that the write to the reset address itself may "succeed" but not do anything, for example because of firmware oddities or some strange platform specific property. It might succeed on a second or third attempt, and there is no harm in trying. Ian.