Re: [PATCH v8 03/22] counter: 104-quad-8: Return error when invalid mode during ceiling_write

2021-02-21 Thread William Breathitt Gray
On Sat, Feb 20, 2021 at 10:30:03AM -0600, David Lechner wrote: > On 2/12/21 6:13 AM, William Breathitt Gray wrote: > > The 104-QUAD-8 only has two count modes where a ceiling value makes > > sense: Range Limit and Modulo-N. Outside of these two modes, setting a > > ceiling value is an invalid opera

Re: [PATCH v8 03/22] counter: 104-quad-8: Return error when invalid mode during ceiling_write

2021-02-20 Thread David Lechner
On 2/12/21 6:13 AM, William Breathitt Gray wrote: The 104-QUAD-8 only has two count modes where a ceiling value makes sense: Range Limit and Modulo-N. Outside of these two modes, setting a ceiling value is an invalid operation -- so let's report it as such by returning -EINVAL. Fixes: fc06926226

[PATCH v8 03/22] counter: 104-quad-8: Return error when invalid mode during ceiling_write

2021-02-12 Thread William Breathitt Gray
The 104-QUAD-8 only has two count modes where a ceiling value makes sense: Range Limit and Modulo-N. Outside of these two modes, setting a ceiling value is an invalid operation -- so let's report it as such by returning -EINVAL. Fixes: fc069262261c ("counter: 104-quad-8: Add lock guards - generic