i2c: xiic: Do not reset controller before every transfer
authorShubhrajyoti Datta <shubhraj@xilinx.com>
Wed, 17 Jun 2015 15:18:13 +0000 (20:48 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 10 Aug 2015 06:37:31 +0000 (08:37 +0200)
Currently before every transfer the controller is reinitialised.
We are already resetting the controller upon errors so upon every
transfer is a performance kill.
Remove the same.

Signed-off-by: Shubhrajyoti Datta <shubhraj@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-xiic.c

index 3664dffdcab7316debf20e7e9d34094a87fdc75a..43bcfeddc54e232496e416bcca19d70fc148c709 100644 (file)
@@ -667,7 +667,6 @@ static void xiic_start_xfer(struct xiic_i2c *i2c)
        unsigned long flags;
 
        spin_lock_irqsave(&i2c->lock, flags);
-       xiic_reinit(i2c);
        /* disable interrupts globally */
        xiic_setreg32(i2c, XIIC_DGIER_OFFSET, 0);
        spin_unlock_irqrestore(&i2c->lock, flags);
This page took 0.025043 seconds and 5 git commands to generate.