ptp: clockmatrix: reset device and check BOOT_STATUS
authorMin Li <min.li.xe@renesas.com>
Tue, 8 Dec 2020 15:41:54 +0000 (10:41 -0500)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Dec 2020 23:00:55 +0000 (15:00 -0800)
commit251f4fe224d6c5399e71b57ab175db3b783dbca0
tree2d04f2dbc4e1ff41c6839d99a44c1a46c7322518
parent9125abe7b9cb19f2d2b1c47a8c04dd81ce0d43b2
ptp: clockmatrix: reset device and check BOOT_STATUS

SM_RESET device only when loading full configuration and check
for BOOT_STATUS. Also remove polling for write trigger done in
_idtcm_settime().

Changes since v1:
-Correct warnings from strict checkpatch

Signed-off-by: Min Li <min.li.xe@renesas.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Link: https://lore.kernel.org/r/1607442117-13661-1-git-send-email-min.li.xe@renesas.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/idt8a340_reg.h
drivers/ptp/ptp_clockmatrix.c
drivers/ptp/ptp_clockmatrix.h