1. 08 Jun, 2018 1 commit
  2. 07 Jun, 2018 1 commit
    • Mark Brown's avatar
      regulator: gpio: Revert · e536700e
      Mark Brown authored
      regulator: fixed/gpio: Revert GPIO descriptor changes due to platform breakage
      
      Commit 6059577c "regulator: fixed: Convert to use GPIO descriptor
      only" broke at least the ams-delta platform since the lookup tables
      added to the board files use the function name "enable" while the driver
      uses NULL causing the regulator to not acquire and control the enable
      GPIOs.  Revert that and a couple of other commits that are caught up
      with it to fix the issue:
      
      2b6c00c1 "ARM: pxa, regulator: fix building ezx e680"
      6059577c "regulator: fixed: Convert to use GPIO descriptor only"
      37bed97f "regulator: gpio: Get enable GPIO using GPIO descriptor"
      Reported-by: default avatarJanusz Krzysztofik <jmkrzyszt@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      e536700e
  3. 31 May, 2018 1 commit
    • Arnd Bergmann's avatar
      ARM: pxa, regulator: fix building ezx e680 · 2b6c00c1
      Arnd Bergmann authored
      The reference to camera_supply_gpiod_table was added in the wrong function,
      as observed from this randconfig build failure:
      
      arch/arm/mach-pxa/ezx.c: In function 'e680_init':
      arch/arm/mach-pxa/ezx.c:905:26: error: 'camera_supply_gpiod_table' undeclared (first use in this function)
        gpiod_add_lookup_table(&camera_supply_gpiod_table);
      
      Fixes: 6059577c ("regulator: fixed: Convert to use GPIO descriptor only")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      2b6c00c1
  4. 30 May, 2018 5 commits
  5. 29 May, 2018 2 commits
    • Linus Walleij's avatar
      regulator: gpio: Get enable GPIO using GPIO descriptor · 37bed97f
      Linus Walleij authored
      We augment the GPIO regulator to get the *enable* regulator
      GPIO line (not the other lines) using a descriptor rather than
      a global number.
      
      We then pass this into the regulator core which has been
      prepared to hande enable descriptors in a separate patch.
      
      Switch over the two boardfiles using this facility and clean
      up so we only pass descriptors around.
      
      Cc: Philipp Zabel <philipp.zabel@gmail.com> # HX4700/Magician maintainer
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      37bed97f
    • Linus Walleij's avatar
      regulator: fixed: Convert to use GPIO descriptor only · 6059577c
      Linus Walleij authored
      As we augmented the regulator core to accept a GPIO descriptor instead
      of a GPIO number, we can augment the fixed GPIO regulator to look up
      and pass that descriptor directly from device tree or board GPIO
      descriptor look up tables.
      
      Some boards just auto-enumerate their fixed regulator platform devices
      and I have assumed they get names like "fixed-regulator.0" but it's
      pretty hard to guess this. I need some testing from board maintainers to
      be sure. Other boards are straight forward, using just plain
      "fixed-regulator" (ID -1) or "fixed-regulator.1" hammering down the
      device ID.
      
      The OMAP didn't have proper label names on its GPIO chips so I have fixed
      this with a separate patch to the GPIO tree, see
      commit 088413bc
      "gpio: omap: Give unique labels to each GPIO bank/chip"
      
      It seems the da9055 and da9211 has never got around to actually passing
      any enable gpio into its platform data (not the in-tree code anyway) so we
      can just decide to simply pass a descriptor instead.
      
      The fixed GPIO-controlled regulator in mach-pxa/ezx.c was confusingly named
      "*_dummy_supply_device" while it is a very real device backed by a GPIO
      line. There is nothing dummy about it at all, so I renamed it with the
      infix *_regulator_* as part of this patch set.
      
      For the patch hunk hitting arch/blackfin I would say I do not expect
      testing, review or ACKs anymore so if it works, it works.
      
      The hunk hitting the x86 BCM43xx driver is especially tricky as the number
      comes out of SFI which is a mystery to me. I definately need someone to
      look at this. (Hi Andy.)
      
      Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> # Check the x86 BCM stuff
      Cc: Alexander Shiyan <shc_work@mail.ru> # i.MX boards user
      Cc: Haojian Zhuang <haojian.zhuang@gmail.com> # MMP2 maintainer
      Cc: Aaro Koskinen <aaro.koskinen@iki.fi> # OMAP1 maintainer
      Cc: Tony Lindgren <tony@atomide.com> # OMAP1,2,3 maintainer
      Cc: Mike Rapoport <rppt@linux.vnet.ibm.com> # EM-X270 maintainer
      Cc: Robert Jarzmik <robert.jarzmik@free.fr> # EZX maintainer
      Cc: Philipp Zabel <philipp.zabel@gmail.com> # Magician maintainer
      Cc: Daniel Mack <zonque@gmail.com> # Raumfeld maintainer
      Cc: Marc Zyngier <marc.zyngier@arm.com> # Zeus maintainer
      Cc: Geert Uytterhoeven <geert+renesas@glider.be> # SuperH pinctrl/GPIO maintainer
      Cc: Russell King <rmk+kernel@armlinux.org.uk> # SA1100
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Acked-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Acked-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      6059577c
  6. 26 May, 2018 1 commit
    • Mark Brown's avatar
      regulator: s2mps11: Fix boot on Odroid XU3 · 37fa23db
      Mark Brown authored
      The change to descriptors in 0369e02b "regulator: s2mps11: Pass
      descriptor instead of GPIO number" has broken the boot on Odroid XU3
      according to kernelci so let's revert that for now.  We get a NULL
      pointer defererence in:
      
      [    2.467929] [] (validate_desc) from [] (gpiod_set_value_cansleep+0x14/0x30)
      [    2.476591] [] (gpiod_set_value_cansleep) from [] (_regulator_do_enable+0x2f8/0x370)
      [    2.486032] [] (_regulator_do_enable) from [] (regulator_register+0xc54/0x1280)
      [    2.495045] [] (regulator_register) from [] (devm_regulator_register+0x40/0x7c)
      [    2.504057] [] (devm_regulator_register) from [] (s2mps11_pmic_probe+0x1c0/0x444)
      [    2.513243] [] (s2mps11_pmic_probe) from [] (platform_drv_probe+0x6c/0xa4)
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      37fa23db
  7. 24 May, 2018 14 commits
  8. 17 May, 2018 15 commits