Merge tag 'fix-for-2020.01' of https://gitlab.denx.de/u-boot/custodians/u-boot-i2c
i2c bugfixes for 2020.01 - i2c: i2c_cdns: fix write timeout on fifo boundary fixes timout issue when writting number of bytes is multiple of the FIFO depth.
This commit is contained in:
		
						commit
						3031cdede1
					
				|  | @ -265,7 +265,7 @@ static int cdns_i2c_write_data(struct i2c_cdns_bus *i2c_bus, u32 addr, u8 *data, | |||
| 
 | ||||
| 	while (len-- && !is_arbitration_lost(regs)) { | ||||
| 		writel(*(cur_data++), ®s->data); | ||||
| 		if (readl(®s->transfer_size) == CDNS_I2C_FIFO_DEPTH) { | ||||
| 		if (len && readl(®s->transfer_size) == CDNS_I2C_FIFO_DEPTH) { | ||||
| 			ret = cdns_i2c_wait(regs, CDNS_I2C_INTERRUPT_COMP | | ||||
| 					    CDNS_I2C_INTERRUPT_ARBLOST); | ||||
| 			if (ret & CDNS_I2C_INTERRUPT_ARBLOST) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue