[PATCH 6.6 192/273] pwm: microchip-core: fix incorrect comparison with max period