Re: [libgpiod] tools/gpioset only checks direction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2018-06-27 7:38 GMT+02:00 Einar Vading <einar.vading@xxxxxxxx>:
> Never mind this.
>
> Turned out to be a bug in the gpio driver that I totally did not write (I did write it).
>
> // Einar
> ________________________________________
> Från: linux-gpio-owner@xxxxxxxxxxxxxxx <linux-gpio-owner@xxxxxxxxxxxxxxx> för Einar Vading <einarv@xxxxxxxx>
> Skickat: den 25 juni 2018 13:59
> Till: linux-gpio@xxxxxxxxxxxxxxx
> Ämne: [libgpiod] tools/gpioset only checks direction
>
> Hi,
>
> I'm having some trouble with the gpioset app that comes with libgpiod. For me (4.14 kernel) it only does get_direction on the gpio I'm trying to set.
> Following the code path down from gpioset.c to where the setting should (?) happen, tag stack below, I see nothing that sets gpios.
>
>   1  1 gpiod_ctxless_set_value_multiple   264  src/tools/gpioset.c
>   2  1 gpiod_line_request_bulk_output_flags   121  ./src/lib/ctxless.c
>   3  1 gpiod_line_request_bulk   366  src/lib/helpers.c
>   4  1 line_request_values   547
>
> Is this a bug or am I missing something totally obvious.
> I tried the gpio-hammer tool in the kernel repo and that worked like a charm.
>
> Regards,
> Einar Vading
> --
> To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

The values are set using the request ioctl() so I guess you forgot to
implement setting the values from the request callback in your driver?

Best regards,
Bartosz Golaszewski
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux