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

2020-11-21 Thread Jonathan Cameron
On Sun, 15 Nov 2020 16:26:17 +0100 Kamel Bouhara wrote: > On Sat, Nov 14, 2020 at 06:28:05PM -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

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

2020-11-15 Thread Kamel Bouhara
On Sat, Nov 14, 2020 at 06:28:05PM -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

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

2020-11-14 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 Acked-by: Alexandre Belloni