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 7E2722C032E for ; Thu, 10 Oct 2013 21:16:40 +1100 (EST) Message-ID: <1381400194.4330.46.camel@pasglop> Subject: Re: [PATCH 2/3] powerpc/scom: Replace debugfs interface with cleaner sysfs one From: Benjamin Herrenschmidt To: Paul Mackerras Date: Thu, 10 Oct 2013 21:16:34 +1100 In-Reply-To: <20131010100640.GA9906@iris.ozlabs.ibm.com> References: <1381393115.4330.39.camel@pasglop> <20131010100640.GA9906@iris.ozlabs.ibm.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: linuxppc-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2013-10-10 at 21:06 +1100, Paul Mackerras wrote: > On Thu, Oct 10, 2013 at 07:18:35PM +1100, Benjamin Herrenschmidt wrote: > > The debugfs interface was essentially unused, and racy for anything > > other than manual use by a developer. This provides a more useful > > sysfs based one which can be used by programs without racing with > > each other essentially by providing a file to read/write with an > > offset being the scom address << 8. > > Don't you mean address << 3 (or address * 8)? Yes, typo in the comment, the code is fine. I was tired :) Cheers, Ben.