]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: exar: access MPIO registers on cascaded chips
authorQingtao Cao <qingtao.cao.au@gmail.com>
Fri, 2 Sep 2022 06:14:34 +0000 (16:14 +1000)
committerBartosz Golaszewski <brgl@bgdev.pl>
Sun, 4 Sep 2022 20:25:10 +0000 (22:25 +0200)
commitfe880c7a038113d6ab0a32a75ab419ad700e1712
treefed7562d45a8614dfe4908aa777752aa84bb398f
parente301fa6680cd4e335300810dcb9d818d72bfc14b
gpio: exar: access MPIO registers on cascaded chips

When EXAR xr17v35x chips are cascaded in order to access the MPIO registers
(part of the Device Configuration Registers) of the secondary chips, an offset
needs to be applied based on the number of primary chip's UART channels.

Signed-off-by: Qingtao Cao <qingtao.cao@digi.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-exar.c