[PATCH 6.13 328/443] pwm: microchip-core: fix incorrect comparison with max period