Re: [PATCH] counter: microchip-tcb-capture: Fix CMR value check

2020-11-15 Thread Kamel Bouhara
On Sat, Nov 14, 2020 at 05:58:28PM -0500, William Breathitt Gray wrote: > On Sat, Nov 14, 2020 at 11:51:13PM +0100, Alexandre Belloni wrote: > > On 14/11/2020 23:48:28+0100, Alexandre Belloni wrote: > > > On 11/11/2020 11:38:07-0500, William Breathitt Gray wrote: > > > > The ATMEL_TC_ETRGEDG_* defi

Re: [PATCH] counter: microchip-tcb-capture: Fix CMR value check

2020-11-14 Thread William Breathitt Gray
On Sat, Nov 14, 2020 at 11:51:13PM +0100, Alexandre Belloni wrote: > On 14/11/2020 23:48:28+0100, Alexandre Belloni wrote: > > On 11/11/2020 11:38:07-0500, William Breathitt Gray wrote: > > > The ATMEL_TC_ETRGEDG_* defines are not masks but rather possible values > > > for CMR. This patch fixes the

Re: [PATCH] counter: microchip-tcb-capture: Fix CMR value check

2020-11-14 Thread Alexandre Belloni
On 14/11/2020 23:48:28+0100, Alexandre Belloni wrote: > On 11/11/2020 11:38:07-0500, William Breathitt Gray wrote: > > The ATMEL_TC_ETRGEDG_* defines are not masks but rather possible values > > for CMR. This patch fixes the action_get() callback to properly check > > for these values rather than m

Re: [PATCH] counter: microchip-tcb-capture: Fix CMR value check

2020-11-14 Thread Alexandre Belloni
On 11/11/2020 11:38:07-0500, William Breathitt Gray wrote: > The ATMEL_TC_ETRGEDG_* defines are not masks but rather possible values > for CMR. This patch fixes the action_get() callback to properly check > for these values rather than mask them. > > Fixes: 106b104137fd ("counter: Add microchip TC

Re: [PATCH] counter: microchip-tcb-capture: Fix CMR value check

2020-11-14 Thread Jonathan Cameron
On Wed, 11 Nov 2020 11:38:07 -0500 William Breathitt Gray wrote: > The ATMEL_TC_ETRGEDG_* defines are not masks but rather possible values > for CMR. This patch fixes the action_get() callback to properly check > for these values rather than mask them. > > Fixes: 106b104137fd ("counter: Add micr

[PATCH] counter: microchip-tcb-capture: Fix CMR value check

2020-11-11 Thread William Breathitt Gray
The ATMEL_TC_ETRGEDG_* defines are not masks but rather possible values for CMR. This patch fixes the action_get() callback to properly check for these values rather than mask them. Fixes: 106b104137fd ("counter: Add microchip TCB capture counter") Cc: Kamel Bouhara Signed-off-by: William Breathi