Re: [PATCH v2] pwm: mediatek: fix up PWM4 and PWM5 malfunction on MT7623

2018-02-07 Thread Matthias Brugger
On 02/07/2018 10:14 AM, sean.w...@mediatek.com wrote: > From: Sean Wang > > Since the offset for both registers, PWMDWIDTH and PWMTHRES, used to > control PWM4 or PWM5 are distinct from the other PWMs, whose wrong > programming on PWM hardware causes waveform cannot be output as expected. > Thu

[PATCH v2] pwm: mediatek: fix up PWM4 and PWM5 malfunction on MT7623

2018-02-07 Thread sean.wang
From: Sean Wang Since the offset for both registers, PWMDWIDTH and PWMTHRES, used to control PWM4 or PWM5 are distinct from the other PWMs, whose wrong programming on PWM hardware causes waveform cannot be output as expected. Thus, the patch adds the extra condition for fixing up the weird case t