[PATCH 4/5] pinctrl: rza1: Fix selector use for groups and functions

2018-07-05 Thread Tony Lindgren
We must use a mutex around the generic_add functions and save the function and group selector in case we need to remove them. Otherwise the selector use will be racy for deferred probe at least. Fixes: 5a49b644b307 ("pinctrl: Renesas RZ/A1 pin and gpio controller") Reported-by: H. Nikolaus Schalle

[PATCH 4/5] pinctrl: rza1: Fix selector use for groups and functions

2018-06-19 Thread Tony Lindgren
We must use a mutex around the generic_add functions and save the function and group selector in case we need to remove them. Otherwise the selector use will be racy for deferred probe at least. Fixes: 5a49b644b307 ("pinctrl: Renesas RZ/A1 pin and gpio controller") Reported-by: H. Nikolaus Schalle

Re: [PATCH 4/5] pinctrl: rza1: Fix selector use for groups and functions

2018-06-18 Thread jacopo mondi
Hi Tony, thanks for doing this! I cannot find the original bug report in linux-gpio, so I'll comment on this single patch only. On Fri, Jun 15, 2018 at 04:11:40AM -0700, Tony Lindgren wrote: > We must use a mutex around the generic_add functions and save the > function and group selector in ca

[PATCH 4/5] pinctrl: rza1: Fix selector use for groups and functions

2018-06-15 Thread Tony Lindgren
We must use a mutex around the generic_add functions and save the function and group selector in case we need to remove them. Otherwise the selector use will be racy for deferred probe at least. Fixes: 5a49b644b307 ("pinctrl: Renesas RZ/A1 pin and gpio controller") Reported-by: H. Nikolaus Schalle