Re: [PATCH v2] pinctrl: samsung: Calculate GPIO base for pinctrl_add_gpio_range

2017-03-21 Thread Charles Keepax
On Mon, Mar 20, 2017 at 08:39:15PM +0200, Krzysztof Kozlowski wrote: > On Mon, Mar 06, 2017 at 04:49:09PM +, Charles Keepax wrote: > > On Sat, Mar 04, 2017 at 08:20:11PM +0900, Tomasz Figa wrote: > > > Hi Charles, > > > > > > 2017-03-01 2:04 GMT+09:00 Charles Keepax > > > : > > > > As the pin

Re: [PATCH v2] pinctrl: samsung: Calculate GPIO base for pinctrl_add_gpio_range

2017-03-20 Thread Krzysztof Kozlowski
On Mon, Mar 06, 2017 at 04:49:09PM +, Charles Keepax wrote: > On Sat, Mar 04, 2017 at 08:20:11PM +0900, Tomasz Figa wrote: > > Hi Charles, > > > > 2017-03-01 2:04 GMT+09:00 Charles Keepax > > : > > > As the pinctrl is now added before the GPIOs are registered we need to > > > manually calcula

Re: [PATCH v2] pinctrl: samsung: Calculate GPIO base for pinctrl_add_gpio_range

2017-03-06 Thread Charles Keepax
On Sat, Mar 04, 2017 at 08:20:11PM +0900, Tomasz Figa wrote: > Hi Charles, > > 2017-03-01 2:04 GMT+09:00 Charles Keepax > : > > As the pinctrl is now added before the GPIOs are registered we need to > > manually calculate what the GPIO base will be, otherwise the base for > > each gpio_range will

Re: [PATCH v2] pinctrl: samsung: Calculate GPIO base for pinctrl_add_gpio_range

2017-03-04 Thread Tomasz Figa
Hi Charles, 2017-03-01 2:04 GMT+09:00 Charles Keepax : > As the pinctrl is now added before the GPIOs are registered we need to > manually calculate what the GPIO base will be, otherwise the base for > each gpio_range will be set to zero. Fortunately the driver > already assigns a GPIO base, in sa

[PATCH v2] pinctrl: samsung: Calculate GPIO base for pinctrl_add_gpio_range

2017-02-28 Thread Charles Keepax
As the pinctrl is now added before the GPIOs are registered we need to manually calculate what the GPIO base will be, otherwise the base for each gpio_range will be set to zero. Fortunately the driver already assigns a GPIO base, in samsung_gpiolib_register, and uses the same calculation it does fo