From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756185AbaICL53 (ORCPT ); Wed, 3 Sep 2014 07:57:29 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:42606 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932067AbaICL52 (ORCPT ); Wed, 3 Sep 2014 07:57:28 -0400 Message-ID: <54070234.30201@mm-sol.com> Date: Wed, 03 Sep 2014 14:57:40 +0300 From: Georgi Djakov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Stephen Boyd , Chris Ball , Ulf Hansson CC: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Asutosh Das , Venkat Gopalakrishnan Subject: Re: [PATCH] mmc: sdhci-msm: Make tuning block table endian agnostic References: <1409702308-3023-1-git-send-email-sboyd@codeaurora.org> In-Reply-To: <1409702308-3023-1-git-send-email-sboyd@codeaurora.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/03/2014 02:58 AM, Stephen Boyd wrote: > If we're tuning on a big-endian CPU we'll never determine we properly > tuned the device because we compare the data we received from the > controller with a table that assumes the CPU is little-endian. > Change the table to be an array of bytes instead of 32-bit words > so we can use memcmp() without needing to byte-swap every word > depending on the endianess of the CPU. > > Cc: Asutosh Das > Cc: Venkat Gopalakrishnan > Cc: Georgi Djakov > Fixes: 415b5a75da43 "mmc: sdhci-msm: Add platform_execute_tuning implementation" > Signed-off-by: Stephen Boyd > --- Looks nice. Thanks! Reviewed-by: Georgi Djakov