diff options
author | Min Li <min.li.xe@renesas.com> | 2020-08-18 17:41:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-20 02:23:22 +0300 |
commit | 957ff4278e0db34f56c2bc121fdd6393e4523ef2 (patch) | |
tree | 34f25f6ba369cf05923beb79ac6db1401b3acd35 /drivers/ptp/ptp_clockmatrix.h | |
parent | d1fb55592909ea249af70170c7a52e637009564d (diff) | |
download | linux-957ff4278e0db34f56c2bc121fdd6393e4523ef2.tar.xz |
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.h | 2 |
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, |