lkml.org 
[lkml]   [2012]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[83/90] i2c-eg20t: modified the setting of transfer rate.
    3.0-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com>

    commit ff35e8b18984ad2a82cbd259fc07f0be4b34b1aa upstream.

    This patch modified the setting value of
    I2C Bus Transfer Rate Setting Counter regisrer.

    Signed-off-by: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com>
    Signed-off-by: Ben Dooks <ben-linux@fluff.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/i2c/busses/i2c-eg20t.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/i2c/busses/i2c-eg20t.c
    +++ b/drivers/i2c/busses/i2c-eg20t.c
    @@ -242,7 +242,7 @@ static void pch_i2c_init(struct i2c_algo
    if (pch_clk > PCH_MAX_CLK)
    pch_clk = 62500;

    - pch_i2cbc = (pch_clk + (pch_i2c_speed * 4)) / pch_i2c_speed * 8;
    + pch_i2cbc = (pch_clk + (pch_i2c_speed * 4)) / (pch_i2c_speed * 8);
    /* Set transfer speed in I2CBC */
    iowrite32(pch_i2cbc, p + PCH_I2CBC);




    \
     
     \ /
      Last update: 2012-01-24 00:57    [W:0.029 / U:31.528 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site