summaryrefslogtreecommitdiffstats
path: root/drivers/ptp/ptp_idt82p33.h
diff options
context:
space:
mode:
authorMin Li <min.li.xe@renesas.com>2020-11-05 22:52:08 -0500
committerJakub Kicinski <kuba@kernel.org>2020-11-07 13:10:27 -0800
commite4c6eb68343fb1cfe4bffc6802180e91826f76af (patch)
tree5f8faa70fb880be1390d990aa98cf5015a80d6e2 /drivers/ptp/ptp_idt82p33.h
parente014ae39493f6d527f636260117709c1f81b3d57 (diff)
downloadlinux-stable-e4c6eb68343fb1cfe4bffc6802180e91826f76af.tar.gz
linux-stable-e4c6eb68343fb1cfe4bffc6802180e91826f76af.tar.bz2
linux-stable-e4c6eb68343fb1cfe4bffc6802180e91826f76af.zip
ptp: idt82p33: use i2c_master_send for bus write
Refactor idt82p33_xfer and use i2c_master_send for write operation. Because some I2C controllers are only working with single-burst write transaction. Signed-off-by: Min Li <min.li.xe@renesas.com> Acked-by: Richard Cochran <richardcochran@gmail.com> Link: https://lore.kernel.org/r/1604634729-24960-2-git-send-email-min.li.xe@renesas.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/ptp/ptp_idt82p33.h')
-rw-r--r--drivers/ptp/ptp_idt82p33.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ptp/ptp_idt82p33.h b/drivers/ptp/ptp_idt82p33.h
index 3a0e0016771b..1c7a0f0872e8 100644
--- a/drivers/ptp/ptp_idt82p33.h
+++ b/drivers/ptp/ptp_idt82p33.h
@@ -95,6 +95,7 @@ enum hw_tod_trig_sel {
#define MAX_MEASURMENT_COUNT (5)
#define SNAP_THRESHOLD_NS (150000)
#define SYNC_TOD_TIMEOUT_SEC (5)
+#define IDT82P33_MAX_WRITE_COUNT (512)
#define PLLMASK_ADDR_HI 0xFF
#define PLLMASK_ADDR_LO 0xA5