diff options
author | Min Li <min.li.xe@renesas.com> | 2020-12-08 10:41:54 -0500 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-12-09 15:00:55 -0800 |
commit | 251f4fe224d6c5399e71b57ab175db3b783dbca0 (patch) | |
tree | 2d04f2dbc4e1ff41c6839d99a44c1a46c7322518 /drivers/ptp/idt8a340_reg.h | |
parent | 9125abe7b9cb19f2d2b1c47a8c04dd81ce0d43b2 (diff) | |
download | linux-stable-251f4fe224d6c5399e71b57ab175db3b783dbca0.tar.gz linux-stable-251f4fe224d6c5399e71b57ab175db3b783dbca0.tar.bz2 linux-stable-251f4fe224d6c5399e71b57ab175db3b783dbca0.zip |
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>
Diffstat (limited to 'drivers/ptp/idt8a340_reg.h')
-rw-r--r-- | drivers/ptp/idt8a340_reg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ptp/idt8a340_reg.h b/drivers/ptp/idt8a340_reg.h index b297c4aba2ba..a664dfe5fd2f 100644 --- a/drivers/ptp/idt8a340_reg.h +++ b/drivers/ptp/idt8a340_reg.h @@ -103,6 +103,7 @@ #define SM_RESET_CMD 0x5A #define GENERAL_STATUS 0xc014 +#define BOOT_STATUS 0x0000 #define HW_REV_ID 0x000A #define BOND_ID 0x000B #define HW_CSR_ID 0x000C |