tag | bc9ed2f79c78aed35ab9b5380037451bdd7f6a60 | |
---|---|---|
tagger | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Thu Apr 15 15:10:56 2021 +0200 |
object | 23cf00ddd2e1aacf1873e43f5e0c519c120daf7a |
gpio fixes for v5.12-rc8 - do not allow exporting GPIO lines which were marked invalid by the driver
commit | 23cf00ddd2e1aacf1873e43f5e0c519c120daf7a | [log] [tgz] |
---|---|---|
author | Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> | Mon Mar 29 14:41:12 2021 +0300 |
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Wed Mar 31 20:32:38 2021 +0200 |
tree | fb80388d9afee339a82ae0bec0230f724a046a36 | |
parent | 6cb59afe9e5b45a035bd6b97da6593743feefc72 [diff] |
gpio: sysfs: Obey valid_mask Do not allow exporting GPIOs which are set invalid by the driver's valid mask. Fixes: 726cb3ba4969 ("gpiolib: Support 'gpio-reserved-ranges' property") Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>