lkml.org 
[lkml]   [2014]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] mmc: sdhci-msm: Make tuning block table endian agnostic
    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 <asutoshd@codeaurora.org>
    > Cc: Venkat Gopalakrishnan <venkatg@codeaurora.org>
    > Cc: Georgi Djakov <gdjakov@mm-sol.com>
    > Fixes: 415b5a75da43 "mmc: sdhci-msm: Add platform_execute_tuning implementation"
    > Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
    > ---

    Looks nice. Thanks!

    Reviewed-by: Georgi Djakov <gdjakov@mm-sol.com>


    \
     
     \ /
      Last update: 2014-09-03 14:21    [W:2.983 / U:0.716 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site