From: Wolfgang Denk Date: Fri, 13 Jun 2014 23:23:15 +0200 Subject: [U-Boot] [PATCH] linux/compat.h: port lower_32_bits and upper_32_bits from Linux In-Reply-To: <8a9667bd97ae488198eebd93bc38189c@DM2PR03MB368.namprd03.prod.outlook.com> References: <1402085108-11841-1-git-send-email-Lijun.Pan@freescale.com> <20140606221257.5DF2A3804B4@gemini.denx.de> <8a9667bd97ae488198eebd93bc38189c@DM2PR03MB368.namprd03.prod.outlook.com> Message-ID: <20140613212315.ED5F33801BD@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Lijun Pan, In message <8a9667bd97ae488198eebd93bc38189c@DM2PR03MB368.namprd03.prod.outlook.com> you wrote: > > > "is very useful" is not enough reason to add any code. > > > > Where are the actual users of these functions? We will not add dead > > code. > > I will be the actual user. I will upstream some codes using these functions. Then please submit this patch as part of the series where you will actually use these functions. > Also, drivers/usb/host/xhci.h uses these. 64 bit architecture is becoming Actually it uses only lower_32_bits(), and totally ignores the upper 32 bits, it there should be any. To me this looks like a bug. > > Hm... This comment is definitely wrong for the Power Architecture, > > where bit 0 is always the most significan bit, so upper_32_bits would > > reutn bits 0...31. > > I will modify the comment. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You can't have everything... where would you put it? - Steven Wright