1. 30 Sep, 2020 4 commits
  2. 29 Sep, 2020 17 commits
  3. 27 Sep, 2020 2 commits
  4. 21 Sep, 2020 2 commits
    • Linus Walleij's avatar
      Merge tag 'intel-pinctrl-v5.10-1' of... · 5b398f8f
      Linus Walleij authored
      Merge tag 'intel-pinctrl-v5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pinctrl/intel into devel
      
      intel-pinctrl for v5.10-1
      
      * Add last part of cleanup Cherryview driver to align with other drivers
      * Due to above clean up Cherryview and Baytrail drivers to use common API
      
      The following is an automated git shortlog grouped by driver:
      
      baytrail:
       -  Switch to use intel_pinctrl_get_soc_data()
      
      cherryview:
       -  Preserve CHV_PADCTRL1_INVRXTX_TXDATA flag on GPIOs
       -  Switch to use intel_pinctrl_get_soc_data()
       -  Utilize temporary variable to hold device pointer
       -  Switch to use struct intel_pinctrl
       -  Move custom community members to separate data struct
       -  Drop stale comment
      
      intel:
       -  Update header block to reflect direct dependencies
       -  Extract intel_pinctrl_get_soc_data() helper for wider use
      5b398f8f
    • Linus Walleij's avatar
      Merge tag 'renesas-pinctrl-for-v5.10-tag1' of... · e777f8c8
      Linus Walleij authored
      Merge tag 'renesas-pinctrl-for-v5.10-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers into devel
      
      pinctrl: renesas: Updates for v5.10
      
        - Add CAN and USB1 PWEN pin groups on R-Car H2 and RZ/G1,
        - Three more conversion of DT bindings to json-schema,
        - Group all Renesas pinctrl drivers and improve visual Kconfig
          structure,
        - Rename drivers/pinctrl/sh-pfc to drivers/pinctrl/renesas,
        - Minor fixes and improvements.
      e777f8c8
  5. 15 Sep, 2020 12 commits
  6. 12 Sep, 2020 3 commits
    • Thierry Reding's avatar
      pinctrl: devicetree: Keep deferring even on timeout · 84f28fc3
      Thierry Reding authored
      driver_deferred_probe_check_state() may return -ETIMEDOUT instead of
      -EPROBE_DEFER after all built-in drivers have been probed. This can
      cause issues for built-in drivers that depend on resources provided by
      loadable modules.
      
      One such case happens on Tegra where I2C controllers are used during
      early boot to set up the system PMIC, so the I2C driver needs to be a
      built-in driver. At the same time, some instances of the I2C controller
      depend on the DPAUX hardware for pinmuxing. Since the DPAUX is handled
      by the display driver, which is usually not built-in, the pin control
      states will not become available until after the root filesystem has
      been mounted and the display driver loaded from it.
      
      Fixes: bec6c0ec ("pinctrl: Remove use of driver_deferred_probe_check_state_continue()")
      Suggested-by: default avatarJohn Stultz <john.stultz@linaro.org>
      Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
      Link: https://lore.kernel.org/r/20200825143348.1358679-1-thierry.reding@gmail.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      84f28fc3
    • Martin DEVERA's avatar
      pinctrl: sx150x: Fix pinctrl enablement order bug · 6d8e04f9
      Martin DEVERA authored
      I encountered bug in SX1502 expander driver in 5.7.7. Here is relevant
      DTS part:
      
      compatible = "semtech,sx1502q";
      gpio4_cfg_pins: gpio2-cfg {
                               pins = "gpio5";
                               output-high;
           };
      
      And part of OOPS:
      
      [    0.673996] [<c023cfa6>] (gpiochip_get_data) from [<c023b235>]
      (sx150x_gpio_direction_output+0xd)
      [    0.683259] [<c023b235>] (sx150x_gpio_direction_output) from
      [<c023b363>] (sx150x_pinconf_set+0x)
      [    0.692796] [<c023b363>] (sx150x_pinconf_set) from [<c0238fef>]
      (pinconf_apply_setting+0x39/0x7e)
      [    0.701635] [<c0238fef>] (pinconf_apply_setting) from [<c0236c77>]
      (pinctrl_commit_state+0xa5/0x)
      [    0.710648] [<c0236c77>] (pinctrl_commit_state) from [<c0237e03>]
      (pinctrl_enable+0xff/0x1d4)
      [    0.719139] [<c0237e03>] (pinctrl_enable) from [<c023b791>]
      (sx150x_probe+0x1a3/0x358)
      [    0.727027] [<c023b791>] (sx150x_probe) from [<c02c38bf>]
      (i2c_device_probe+0x1bb/0x1dc)
      
      The problem is that sx150x_pinconf_set uses sx150x_gpio_direction_output
      but gpio is not setup yet. Patch below fixes it but I'm not sure whether
      is it correct.
      
      Link: https://lore.kernel.org/r/f32130bf-cfd4-b1bf-538c-dbc9ee2d947a@eaxlabs.czSigned-off-by: default avatarMartin DEVERA <devik@eaxlabs.cz>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      6d8e04f9
    • Heiko Stuebner's avatar
      pinctrl: rockchip: depend on OF · 0662e4a1
      Heiko Stuebner authored
      The Rockchip pinctrl driver needs to handle information from Devicetree
      so only makes sense getting compiled on systems with CONFIG_OF enabled.
      
      This also fixes a problem found by the "kernel-test-robot" when compiling
      the driver on test-builds that do not have CONFIG_OF enabled:
      
        drivers/pinctrl/pinctrl-rockchip.c: In function 'rockchip_pinctrl_parse_groups':
      >> drivers/pinctrl/pinctrl-rockchip.c:2881:9: error: implicit declaration of function 'pinconf_generic_parse_dt_config'; did you mean 'pinconf_generic_dump_config'? [-Werror=implicit-function-declaration]
          2881 |   ret = pinconf_generic_parse_dt_config(np_config, NULL,
               |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               |         pinconf_generic_dump_config
         drivers/pinctrl/pinctrl-rockchip.c: In function 'rockchip_gpiolib_register':
      >> drivers/pinctrl/pinctrl-rockchip.c:3473:5: error: 'struct gpio_chip' has no member named 'of_node'
          3473 |   gc->of_node = bank->of_node;
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
      Link: https://lore.kernel.org/r/20200905214955.907950-1-heiko@sntech.deSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      0662e4a1