From eea86f4190e44b58d3da56fbad93c7441b86049f Mon Sep 17 00:00:00 2001
From: Federico Vaga <federico.vaga@cern.ch>
Date: Fri, 27 Sep 2019 11:55:49 +0200
Subject: [PATCH] sw:i2c: unselecting is superfluous

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
---
 software/i2c-ocores/drivers/i2c/busses/i2c-ocores.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/software/i2c-ocores/drivers/i2c/busses/i2c-ocores.c b/software/i2c-ocores/drivers/i2c/busses/i2c-ocores.c
index f67a0dfd..b7a458d6 100644
--- a/software/i2c-ocores/drivers/i2c/busses/i2c-ocores.c
+++ b/software/i2c-ocores/drivers/i2c/busses/i2c-ocores.c
@@ -615,7 +615,6 @@ static int ocores_i2c_mux_deselect(struct i2c_adapter *adap,
 	mux = oc_getreg(i2c, OCI2C_OHWR_MUX);
 	if (unlikely(!(mux & OCI2C_OHWR_MUX_BUSY)))
 		dev_err(&adap->dev, "deselect a bus that was not selected\n");
-	mux &= ~OCI2C_OHWR_MUX_SEL_MASK;
 	mux &= ~OCI2C_OHWR_MUX_BUSY;
 	oc_setreg(i2c, OCI2C_OHWR_MUX, mux);
 
-- 
GitLab