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

2018-01-09 Thread Sean Wang
On Tue, 2018-01-09 at 16:32 +0100, Matthias Brugger wrote: > > On 12/25/2017 03:59 PM, 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

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

2018-01-09 Thread Sean Wang
On Tue, 2018-01-09 at 16:32 +0100, Matthias Brugger wrote: > > On 12/25/2017 03:59 PM, 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 > >

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

2018-01-09 Thread Matthias Brugger
On 12/25/2017 03:59 PM, 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

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

2018-01-09 Thread Matthias Brugger
On 12/25/2017 03:59 PM, 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. >

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

2017-12-25 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

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

2017-12-25 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