[PATCH openEuler-5.10 026/161] pwm: sprd: Ensure configuring period and duty_cycle isn't wrongly skipped