From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WNq9h-0003s5-H1 for barebox@lists.infradead.org; Wed, 12 Mar 2014 20:53:38 +0000 Date: Wed, 12 Mar 2014 21:53:13 +0100 From: Sascha Hauer Message-ID: <20140312205313.GO17250@pengutronix.de> References: <1394451593-3090-1-git-send-email-d.lavnikevich@sam-solutions.com> <20140312202848.GL17250@pengutronix.de> <20140312205144.GA8051@x61s.Speedport_W_921V_1_24_000> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20140312205144.GA8051@x61s.Speedport_W_921V_1_24_000> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 1/5] mtd: Update internal API to support 64-bit device size To: Alexander Aring Cc: Grigory Milev , barebox@lists.infradead.org, Dmitry Lavnikevich On Wed, Mar 12, 2014 at 09:51:46PM +0100, Alexander Aring wrote: > Hi Sascha, > > On Wed, Mar 12, 2014 at 09:28:48PM +0100, Sascha Hauer wrote: > > On Mon, Mar 10, 2014 at 02:39:49PM +0300, Dmitry Lavnikevich wrote: > > > MTD internal API presently uses 32-bit values to represent device > > > size. This patch updates them to 64-bits but leaves the external API > > > unchanged. > > > > > > In general, changing from 32-bit to 64-bit values cause little > > > or no changes to the majority of the code with the following > > > exceptions: > > > - printk message formats; > > > - division and modulus of 64-bit values (mtd_div_by_wb, > > > mtd_div_by_eb may be used in some of such cases). > > > > > > Was tested on phyFLEX i.MX6. > > > > > > > changed master_offset to 64bit aswell and applied this series. > > > ok, cool! > > But.. damn it there is still a ugly comment in lib/libmtd.c: > > "NOTE: No support for 64 bit sizes yet!" Maybe this should be removed by somebody who has tested this code with devices > 4GB. I don't have the hardware for this. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox