Re: [PATCH v2 2/3] i2c: xilinx: Set tx direction in write operation

From: Wolfram Sang
Date: Fri Oct 04 2013 - 01:46:44 EST



> + cr = xiic_getreg32(i2c, XIIC_CR_REG_OFFSET);
> + cr |= XIIC_CR_DIR_IS_TX_MASK;
> + xiic_setreg32(i2c, XIIC_CR_REG_OFFSET, cr);
> +

Is there no need to clear the bit again when receiving? And did
transferring ever work if this bit was never set before?

Attachment: signature.asc
Description: Digital signature