commit | f567fde02baa8f3d9fe5699f202faf125f96bd0f | [log] [tgz] |
---|---|---|
author | Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> | Mon Mar 29 14:41:12 2021 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Apr 21 13:00:50 2021 +0200 |
tree | 75be3c0b4b104206cab95bad20804853cc487142 | |
parent | dfed481e62e55ebaf4f20a3172a6f77567ff8502 [diff] |
gpio: sysfs: Obey valid_mask [ Upstream commit 23cf00ddd2e1aacf1873e43f5e0c519c120daf7a ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>