From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from DB3EHSOBE001.bigfish.com (db3ehsobe001.messaging.microsoft.com [213.199.154.139]) by ozlabs.org (Postfix) with ESMTP id 453B4B6EEE for ; Tue, 14 Sep 2010 06:04:43 +1000 (EST) Received: from mail17-db3 (localhost.localdomain [127.0.0.1]) by mail17-db3-R.bigfish.com (Postfix) with ESMTP id 4FDE2105056A for ; Mon, 13 Sep 2010 20:14:17 +0000 (UTC) Received: from DB3EHSMHS001.bigfish.com (unknown [10.3.81.251]) by mail17-db3.bigfish.com (Postfix) with ESMTP id 03E1580004B for ; Mon, 13 Sep 2010 20:14:16 +0000 (UTC) Received: from az33smr01.freescale.net (az33smr01.freescale.net [10.64.34.199]) by de01egw01.freescale.net (8.14.3/8.14.3) with ESMTP id o8DK4Ycu015055 for ; Mon, 13 Sep 2010 13:04:35 -0700 (MST) Received: from az33exm25.fsl.freescale.net (az33exm25.am.freescale.net [10.64.32.16]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id o8DKH6SS006259 for ; Mon, 13 Sep 2010 15:17:07 -0500 (CDT) Date: Mon, 13 Sep 2010 15:04:32 -0500 From: Scott Wood To: Timur Tabi Subject: Re: [PATCH v2 3/3][MTD] P4080/mtd: Fix the freescale lbc issue with 36bit mode Message-ID: <20100913150432.1e1625c7@schlenkerla.am.freescale.net> In-Reply-To: References: <1284027632-32573-1-git-send-email-tie-fei.zang@freescale.com> <1284027632-32573-2-git-send-email-tie-fei.zang@freescale.com> <1284027632-32573-3-git-send-email-tie-fei.zang@freescale.com> <20100909114153.GB6622@oksana.dev.rtsoft.ru> <3850A844E6A3854C827AC5C0BEC7B60A1FC158@zch01exm23.fsl.freescale.net> <1284388075.10955.51.camel@localhost> <1284396320.1783.30.camel@brekeke> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Cc: Wood Scott-B07421 , dedekind1@gmail.com, Zang Roy-R61911 , Lan Chunhe-B25806 , linuxppc-dev@ozlabs.org, linux-mtd@lists.infradead.org, akpm@linux-foundation.org, dwmw2@infradead.org, Gala Kumar-B11780 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 13 Sep 2010 13:36:45 -0500 Timur Tabi wrote: > On Mon, Sep 13, 2010 at 11:45 AM, Artem Bityutskiy wrote: > > Unsigned int is reliably >= 4 in Linux. > > Not exactly. sizeof(unsigned int) is effectively never greater than 4 > in Linux (I think it's still 32 bits even on a 64-bit kernel), so it > makes no sense to say >=. I think the point is that if a machine/ABI comes along with sizeof(int) > 4 (e.g. if there's a significant penalty for working with anything < 64-bit), Linux might consider supporting that. Whereas if someone points to their microcontroller or ancient 286 with sizeof(int) == 2, the answer would be, "Here's a nickel, kid -- get a real computer". -Scott From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from va3ehsobe006.messaging.microsoft.com ([216.32.180.16] helo=VA3EHSOBE009.bigfish.com) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1OvFGa-00071r-2A for linux-mtd@lists.infradead.org; Mon, 13 Sep 2010 20:04:40 +0000 Received: from mail43-va3 (localhost.localdomain [127.0.0.1]) by mail43-va3-R.bigfish.com (Postfix) with ESMTP id 4D4B278149 for ; Mon, 13 Sep 2010 20:04:38 +0000 (UTC) Received: from VA3EHSMHS022.bigfish.com (unknown [10.7.14.239]) by mail43-va3.bigfish.com (Postfix) with ESMTP id 1975F1880050 for ; Mon, 13 Sep 2010 20:04:38 +0000 (UTC) Received: from de01smr01.freescale.net (de01smr01.freescale.net [10.208.0.31]) by az33egw01.freescale.net (8.14.3/8.14.3) with ESMTP id o8DK4ZAx019440 for ; Mon, 13 Sep 2010 13:04:35 -0700 (MST) Received: from az33exm25.fsl.freescale.net (az33exm25.am.freescale.net [10.64.32.16]) by de01smr01.freescale.net (8.13.1/8.13.0) with ESMTP id o8DKIhMe011402 for ; Mon, 13 Sep 2010 15:18:43 -0500 (CDT) Date: Mon, 13 Sep 2010 15:04:32 -0500 From: Scott Wood To: Timur Tabi Subject: Re: [PATCH v2 3/3][MTD] P4080/mtd: Fix the freescale lbc issue with 36bit mode Message-ID: <20100913150432.1e1625c7@schlenkerla.am.freescale.net> In-Reply-To: References: <1284027632-32573-1-git-send-email-tie-fei.zang@freescale.com> <1284027632-32573-2-git-send-email-tie-fei.zang@freescale.com> <1284027632-32573-3-git-send-email-tie-fei.zang@freescale.com> <20100909114153.GB6622@oksana.dev.rtsoft.ru> <3850A844E6A3854C827AC5C0BEC7B60A1FC158@zch01exm23.fsl.freescale.net> <1284388075.10955.51.camel@localhost> <1284396320.1783.30.camel@brekeke> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Cc: Wood Scott-B07421 , dedekind1@gmail.com, Zang Roy-R61911 , Lan Chunhe-B25806 , linuxppc-dev@ozlabs.org, linux-mtd@lists.infradead.org, Anton Vorontsov , akpm@linux-foundation.org, dwmw2@infradead.org, Gala Kumar-B11780 List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 13 Sep 2010 13:36:45 -0500 Timur Tabi wrote: > On Mon, Sep 13, 2010 at 11:45 AM, Artem Bityutskiy wrote: > > Unsigned int is reliably >= 4 in Linux. > > Not exactly. sizeof(unsigned int) is effectively never greater than 4 > in Linux (I think it's still 32 bits even on a 64-bit kernel), so it > makes no sense to say >=. I think the point is that if a machine/ABI comes along with sizeof(int) > 4 (e.g. if there's a significant penalty for working with anything < 64-bit), Linux might consider supporting that. Whereas if someone points to their microcontroller or ancient 286 with sizeof(int) == 2, the answer would be, "Here's a nickel, kid -- get a real computer". -Scott