summaryrefslogtreecommitdiffstats
path: root/drivers/ptp/ptp_clockmatrix.h
diff options
context:
space:
mode:
authorMin Li <min.li.xe@renesas.com>2020-08-18 10:41:22 -0400
committerDavid S. Miller <davem@davemloft.net>2020-08-19 16:23:22 -0700
commit957ff4278e0db34f56c2bc121fdd6393e4523ef2 (patch)
tree34f25f6ba369cf05923beb79ac6db1401b3acd35 /drivers/ptp/ptp_clockmatrix.h
parentd1fb55592909ea249af70170c7a52e637009564d (diff)
downloadlinux-957ff4278e0db34f56c2bc121fdd6393e4523ef2.tar.gz
linux-957ff4278e0db34f56c2bc121fdd6393e4523ef2.tar.bz2
linux-957ff4278e0db34f56c2bc121fdd6393e4523ef2.zip
ptp: ptp_clockmatrix: use i2c_master_send for i2c write
The old code for i2c write would break on some controllers, which fails at handling Repeated Start Condition. So we will just use i2c_master_send to handle write in one transanction. Changes since v1: - Remove indentation change Signed-off-by: Min Li <min.li.xe@renesas.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp/ptp_clockmatrix.h')
-rw-r--r--drivers/ptp/ptp_clockmatrix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ptp/ptp_clockmatrix.h b/drivers/ptp/ptp_clockmatrix.h
index ffae56c5d97f..82840d72364a 100644
--- a/drivers/ptp/ptp_clockmatrix.h
+++ b/drivers/ptp/ptp_clockmatrix.h
@@ -55,6 +55,8 @@
#define PEROUT_ENABLE_OUTPUT_MASK (0xdeadbeef)
+#define IDTCM_MAX_WRITE_COUNT (512)
+
/* Values of DPLL_N.DPLL_MODE.PLL_MODE */
enum pll_mode {
PLL_MODE_MIN = 0,