Skip to content

Commit 2a79df3

Browse files
grygoriySdavem330
authored andcommitted
net: ethernet: ti: cpts: drop excessive writes to CTRL and INT_EN regs
CPTS module and IRQs are always enabled when CPTS is registered, before starting overflow check work, and disabled during deregistration, when overflow check work has been canceled already. So, It doesn't require to (re)enable CPTS module and IRQs in cpts_overflow_check(). Signed-off-by: Grygorii Strashko <[email protected]> Acked-by: Richard Cochran <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e4439fa commit 2a79df3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/ti/cpts.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,6 @@ static void cpts_overflow_check(struct work_struct *work)
243243
struct timespec64 ts;
244244
struct cpts *cpts = container_of(work, struct cpts, overflow_work.work);
245245

246-
cpts_write32(cpts, CPTS_EN, control);
247-
cpts_write32(cpts, TS_PEND_EN, int_enable);
248246
cpts_ptp_gettime(&cpts->info, &ts);
249247
pr_debug("cpts overflow check at %lld.%09lu\n", ts.tv_sec, ts.tv_nsec);
250248
schedule_delayed_work(&cpts->overflow_work, CPTS_OVERFLOW_PERIOD);

0 commit comments

Comments
 (0)