gpio: fixes for v5.18

- fix bitops logic in gpio-vf610
- return an error if the user tries to use inverted polarity in gpio-mvebu
gpio: mvebu/pwm: Refuse requests with inverted polarity

The driver doesn't take struct pwm_state::polarity into account when
configuring the hardware, so refuse requests for inverted polarity.

Fixes: 757642f9a584 ("gpio: mvebu: Add limited PWM support")
Signed-off-by: Uwe Kleine-König <>
Signed-off-by: Bartosz Golaszewski <>
1 file changed