kernel/drivers/pwm/pwm-imx-tpm.c
.. .. @@ -403,6 +403,13 @@ 403 403 if (tpm->enable_count > 0) 404 404 return -EBUSY; 405 405 406 + /*407 + * Force 'real_period' to be zero to force period update code408 + * can be executed after system resume back, since suspend causes409 + * the period related registers to become their reset values.410 + */411 + tpm->real_period = 0;412 +406 413 clk_disable_unprepare(tpm->clk); 407 414 408 415 return 0;