śr., 11 gru 2019 o 01:46 Kent Gibson <warthog618@xxxxxxxxx> napisał(a): > > Restore the external behavior of gpio-mockup to what it was prior to the > change to using GPIO_LINE_DIRECTION. > > Fixes: e42615ec233b ("gpio: Use new GPIO_LINE_DIRECTION") > Signed-off-by: Kent Gibson <warthog618@xxxxxxxxx> > --- > > Changes v1 -> v2: > - add Fixes tag. > > Fix a regression introduced in v5.5-rc1. > > The change to GPIO_LINE_DIRECTION reversed the polarity of the > dir field within gpio-mockup.c, but overlooked inverting the value on > initialization and when returned by gpio_mockup_get_direction. > The latter is a bug. > The former is a problem for tests which assume initial conditions, > specifically the mockup used to initialize chips with all lines as inputs. > That superficially appeared to be the case after the previous patch due > to the bug in gpio_mockup_get_direction. > > drivers/gpio/gpio-mockup.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > Applied for fixes. Thanks! Bartosz