Message ID | 20240626052925.174272-1-warthog618@gmail.com |
---|---|
Headers | show |
Series | gpiolib: cdev: directionless line reconfiguration | expand |
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> On Wed, 26 Jun 2024 13:29:21 +0800, Kent Gibson wrote: > The behaviour of request reconfiguration without a direction flag set is > ill-defined and badly behaved, for both uAPI v1 and v2. I'll will refer > to such a configuration as 'directionless' here. That refers to the > configuration requested, not the actual state of the line. > > The configuration validation used during reconfiguration is borrowed from > the line request operation, where, to verify the intent of the user, the > direction must be set to in order to effect a change to the electrical > configuration of a line. But that validation does not allow for the > directionless case, making it possible to clear flags set previously > without specifying the line direction. > > [...] Applied, thanks! [3/4] Documentation: gpio: Reconfiguration with unset direction (uAPI v1) commit: e48fe75afa539d110753f7420aa398ef89f8e383 [4/4] Documentation: gpio: Reconfiguration with unset direction (uAPI v2) commit: 6a9c15083b1662a4b7b36e787272deb696d72c24 Best regards,