Skip to content
Snippets Groups Projects
Commit da1ed0d2 authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by Heiko Schocher
Browse files

rcar_i2c: Clear status before start master receive

parent ad5e14ec
No related branches found
No related tags found
No related merge requests found
...@@ -119,6 +119,8 @@ rcar_i2c_raw_read(struct rcar_i2c *dev, u8 chip, uint addr) ...@@ -119,6 +119,8 @@ rcar_i2c_raw_read(struct rcar_i2c *dev, u8 chip, uint addr)
/* set slave address, receive */ /* set slave address, receive */
writel((chip << 1) | 1, &dev->icmar); writel((chip << 1) | 1, &dev->icmar);
/* clear status */
writel(0, &dev->icmsr);
/* start master receive */ /* start master receive */
writel(MCR_MDBS | MCR_MIE | MCR_ESG, &dev->icmcr); writel(MCR_MDBS | MCR_MIE | MCR_ESG, &dev->icmcr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment