Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1600360 > unrolled thread
| Started by | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| First post | 2017-03-14 14:30 +0100 |
| Last post | 2017-03-14 16:50 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v2 4/6] bus: add driver for the Technologic Systems NBUS Linus Walleij <linus.walleij@linaro.org> - 2017-03-14 14:30 +0100
Re: [PATCH v2 4/6] bus: add driver for the Technologic Systems NBUS Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com> - 2017-03-14 16:50 +0100
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Date | 2017-03-14 14:30 +0100 |
| Subject | Re: [PATCH v2 4/6] bus: add driver for the Technologic Systems NBUS |
| Message-ID | <tkUGv-Hf-55@gated-at.bofh.it> |
On Wed, Feb 22, 2017 at 5:56 PM, Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com> wrote: > On 02/04/2017 05:14 AM, Linus Walleij wrote: >>> + gpiod_set_array_value_cansleep(gpios->ndescs, gpios->desc, values); >> >> This can also fail and you should check the return code and print an error >> message if it does. >> > As far as i understood, the "gpiod_set_array_value_cansleep(...)" > function doesn't return > anything, it will return immediately if gpios->desc is null but nothing > else. > Did i miss something? No I did, sorry about that. We *should* make these functions return errors but currently they do not. >> Error codes? >> > Same question here, these functions only make call to > "gpiod_set_value_cansleep(...)", > which as far as i understood doesn't return any error code. Yeah, forget that. >>> + gpiod_set_value_cansleep(ts_nbus->csn, 1); >> >> Here too. >> > Same question, doesn't seem to have an error code. That too. Yours, Linus Walleij
[toc] | [next] | [standalone]
| From | Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com> |
|---|---|
| Date | 2017-03-14 16:50 +0100 |
| Message-ID | <tkWRX-29k-7@gated-at.bofh.it> |
| In reply to | #1600360 |
Hi Linus, On 03/14/2017 09:23 AM, Linus Walleij wrote: > On Wed, Feb 22, 2017 at 5:56 PM, Sebastien Bourdelin > <sebastien.bourdelin@savoirfairelinux.com> wrote: >> On 02/04/2017 05:14 AM, Linus Walleij wrote: > >>>> + gpiod_set_array_value_cansleep(gpios->ndescs, gpios->desc, values); >>> >>> This can also fail and you should check the return code and print an error >>> message if it does. >>> >> As far as i understood, the "gpiod_set_array_value_cansleep(...)" >> function doesn't return >> anything, it will return immediately if gpios->desc is null but nothing >> else. >> Did i miss something? > > No I did, sorry about that. > > We *should* make these functions return errors but currently they do not. > Ok got it. Thanks! >>> Error codes? >>> >> Same question here, these functions only make call to >> "gpiod_set_value_cansleep(...)", >> which as far as i understood doesn't return any error code. > > Yeah, forget that. > Ok. >>>> + gpiod_set_value_cansleep(ts_nbus->csn, 1); >>> >>> Here too. >>> >> Same question, doesn't seem to have an error code. > > That too. > Ok. > Yours, > Linus Walleij > Best regards, Sebastien Bourdelin.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web