From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7206BB6F6E for ; Wed, 4 May 2011 15:37:23 +1000 (EST) Subject: Re: Read/write BCSR registers of PPC460EX From: Benjamin Herrenschmidt To: Josh Boyer In-Reply-To: <20110502124039.GB3269@zod.rchland.ibm.com> References: <31522823.post@talk.nabble.com> <20110502124039.GB3269@zod.rchland.ibm.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 04 May 2011 15:37:00 +1000 Message-ID: <1304487420.2513.352.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, linuxppc-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2011-05-02 at 08:40 -0400, Josh Boyer wrote: > Aside from minor things like using unsigned int instead of unsigned > long, the code looks correct. The thing to check is if you are > ioremapping the right physical address, and making sure you're reading > a > proper location. Which is why he should obtain the location from the device-tree rather than hard coding it ! Cheers, Ben.