From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from yow.seanm.ca (toronto-hs-216-138-233-67.s-ip.magma.ca [216.138.233.67]) by ozlabs.org (Postfix) with SMTP id 65A07DE015 for ; Thu, 31 Jan 2008 06:52:30 +1100 (EST) Message-ID: <47A0D57C.1000104@pikatech.com> Date: Wed, 30 Jan 2008 14:52:28 -0500 From: Sean MacLennan MIME-Version: 1.0 To: linuxppc-dev@ozlabs.org Subject: ndfc ecc byte order Content-Type: text/plain; charset=ISO-8859-1; format=flowed List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , There seems to be a byte order conflict between the u-boot and Linux ndfc drivers. u-boot has the following: /* The NDFC uses Smart Media (SMC) bytes order*/ ecc_code[0] = p[2]; ecc_code[1] = p[1]; ecc_code[2] = p[3]; the kernel has: ecc_code[0] = p[1]; ecc_code[1] = p[2]; ecc_code[2] = p[3]; I think u-boot has it right since u-boot and kernel software calculated ECCs agree. Anybody know a reason *not* to switch to the SMC byte order? Note that the kernel version will work if you are reading/writing from the kernel since they agree on the wrong ECC :p Cheers, Sean