Files
msm-5.15/include/linux
Tony Lindgren 950b0d91dc pinctrl: core: Fix regression caused by delayed work for hogs
Commit df61b366af26 ("pinctrl: core: Use delayed work for hogs") caused a
regression at least with sh-pfc that is also a GPIO controller as
noted by Geert Uytterhoeven <geert@linux-m68k.org>.

As the original pinctrl_register() has issues calling pin controller
driver functions early before the controller has finished registering,
we can't just revert commit df61b366af26. That would break the drivers
using GENERIC_PINCTRL_GROUPS or GENERIC_PINMUX_FUNCTIONS.

So let's fix the issue with the following steps as a single patch:

1. Revert the late_init parts of commit df61b366af26.

   The late_init clearly won't work and we have to just give up
   on fixing pinctrl_register() for GENERIC_PINCTRL_GROUPS and
   GENERIC_PINMUX_FUNCTIONS.

2. Split pinctrl_register() into two parts

   By splitting pinctrl_register() into pinctrl_init_controller()
   and pinctrl_create_and_start() we have better control over when
   it's safe to call pinctrl_create().

3. Introduce a new pinctrl_register_and_init() function

   As suggested by Linus Walleij <linus.walleij@linaro.org>, we
   can just introduce a new function for the controllers that need
   pinctrl_create() called later.

4. Convert the four known problem cases to use new function

   Let's convert pinctrl-imx, pinctrl-single, sh-pfc and ti-iodelay
   to use the new function to fix the issues. The rest of the drivers
   can be converted later. Let's also update Documentation/pinctrl.txt
   accordingly because of the known issues with pinctrl_register().

Fixes: df61b366af26 ("pinctrl: core: Use delayed work for hogs")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2017-01-13 16:25:17 +01:00
..
2016-11-17 23:19:00 +01:00
2016-07-08 16:23:11 +02:00
2016-12-22 22:58:37 -05:00
2012-10-08 13:50:20 +10:30
2016-10-19 14:34:36 -04:00
2012-12-02 00:05:12 +00:00
2011-03-11 14:25:50 +00:00
2016-12-08 13:31:11 -05:00
2016-12-17 21:27:44 -05:00
2016-08-11 09:41:35 -06:00
2016-10-25 11:08:28 +08:00
2016-12-08 16:37:33 -08:00
2016-09-27 21:20:53 -04:00
2013-11-15 09:32:21 +09:00
2016-10-07 18:46:30 -07:00
2016-12-05 19:01:16 -05:00
2010-08-04 11:00:45 +02:00
2012-02-20 19:46:36 +11:00
2016-10-28 08:48:16 -06:00
2008-01-28 23:21:18 +01:00
2016-05-17 15:48:12 -04:00
2016-11-25 10:15:13 -08:00
2014-12-31 13:06:50 -05:00
2016-12-05 19:01:16 -05:00
2016-12-05 18:58:32 -05:00
2016-12-25 17:21:22 +01:00
2009-06-18 13:04:05 -07:00
2014-08-06 18:01:24 -07:00
2007-07-10 00:35:17 -04:00
2016-12-25 17:21:22 +01:00
2016-02-11 09:59:22 -05:00
2012-03-20 12:47:48 +01:00
2016-11-30 14:36:01 +11:00
2016-09-14 09:18:09 -06:00
2016-09-20 23:20:32 +02:00
2014-03-13 12:11:00 +10:30
2016-08-10 11:23:44 -04:00
2016-03-22 15:36:02 -07:00
2011-01-24 14:45:11 +10:30
2013-08-28 21:35:14 -07:00
2016-12-12 18:55:06 -08:00
2016-12-25 17:21:23 +01:00
2011-09-16 19:20:20 -04:00
2015-04-29 17:17:17 -05:00
2016-09-27 12:33:47 +02:00
2016-11-17 08:24:48 -07:00
2016-12-06 11:05:46 +01:00
2016-12-16 00:13:41 +02:00
2016-11-26 11:18:02 -08:00
2014-01-27 21:02:39 -08:00
2016-07-29 12:17:52 -07:00
2016-08-28 23:32:41 -04:00
2016-06-03 19:37:21 -04:00
2016-12-08 13:18:35 -05:00
2016-11-16 18:32:02 -05:00
2016-12-19 17:29:44 -05:00
2012-12-11 17:22:27 -08:00
2016-02-16 13:04:58 -05:00
2016-12-12 18:55:07 -08:00
2016-05-02 09:00:56 -05:00
2016-11-10 17:03:35 +01:00
2016-12-06 10:17:03 +02:00
2016-02-11 18:35:48 -08:00
2016-03-14 15:43:11 -04:00
2016-12-08 14:21:47 -05:00
2016-10-31 16:18:30 -04:00
2016-10-14 11:36:59 -07:00
2016-07-12 19:25:38 -07:00
2016-09-27 21:52:00 -04:00
2011-03-31 11:26:23 -03:00
2016-11-15 16:34:27 -08:00
2016-03-17 15:09:34 -07:00
2010-02-10 17:47:17 -08:00
2016-07-06 10:51:14 +01:00
2016-09-20 04:43:36 -04:00
2016-10-31 15:45:18 -07:00
2013-06-17 16:38:57 -07:00
2016-06-14 10:54:40 -07:00
2016-12-25 17:21:22 +01:00
2016-09-06 18:30:20 +02:00
2016-05-08 23:46:14 -04:00
2005-04-16 15:20:36 -07:00
2016-10-05 18:23:36 -04:00
2010-08-09 16:48:44 -04:00
2005-04-16 15:20:36 -07:00
2016-12-25 17:21:22 +01:00
2015-10-01 09:57:59 -07:00
2010-11-29 08:55:25 +11:00
2016-07-19 17:43:38 +03:00
2016-12-09 22:12:21 -05:00
2005-04-16 15:20:36 -07:00
2016-12-12 18:55:08 -08:00
2016-12-25 17:21:22 +01:00