summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses
diff options
context:
space:
mode:
authorShubhrajyoti Datta <shubhraj@xilinx.com>2015-06-17 20:48:13 +0530
committerWolfram Sang <wsa@the-dreams.de>2015-08-10 08:37:31 +0200
commitd701667bb3318f27152ad61a6f5cc8b36cc5fcad (patch)
tree097ec0c2638149f89dbaeb0649f338c8a8429e8b /drivers/i2c/busses
parentfcc2fac60a95b4e63682ae4128e86d8768602fab (diff)
i2c: xiic: Do not reset controller before every transfer
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>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r--drivers/i2c/busses/i2c-xiic.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c
index 3664dffdcab7..43bcfeddc54e 100644
--- a/drivers/i2c/busses/i2c-xiic.c
+++ b/drivers/i2c/busses/i2c-xiic.c
@@ -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);