[PATCH 6.12 299/422] pwm: microchip-core: fix incorrect comparison with max period