From: Wolfgang Denk Date: Sun, 16 Oct 2011 22:53:33 +0200 Subject: [U-Boot] [PATCH v2 1/2] Introduce generic TPM support in u-boot In-Reply-To: References: <20111015033850.74AD5419FF@eskimo.mtv.corp.google.com> <201110152309.55400.marek.vasut@gmail.com> <201110160531.34424.marek.vasut@gmail.com> <20111016073501.5315913B6F5C@gemini.denx.de> <20111016200428.4C982140436D@gemini.denx.de> <20111016203159.E183F1208DCB@gemini.denx.de> Message-ID: <20111016205333.117C11208DCB@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 Vadim Bendebury, In message you wrote: > > because this chip is sensitive to the access cycle size (byte versus word). > > When using macros one can rely on the passed in pointer type to decide > which access to use (byte vs word). If using inline functions, there > would be two separate functions required for read (byte and u32) and > write (byte and u32). This would then be an improvement in the code, as we then can see what the code is actually doing. 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 What the gods would destroy they first submit to an IEEE standards committee.