1. 23 4月, 2021 2 次提交
  2. 22 4月, 2021 2 次提交
    • V
      regulator: core: Respect off_on_delay at startup · a5ccccb3
      Vincent Whitchurch 提交于
      We currently do not respect off_on_delay the first time we turn on a
      regulator.  This is problematic since the regulator could have been
      turned off by the bootloader, or it could it have been turned off during
      the probe of the regulator driver (such as when regulator-fixed requests
      the enable GPIO), either of which could potentially have happened less
      than off_on_delay microseconds ago before the first time a client
      requests for the regulator to be turned on.
      
      We can't know exactly when the regulator was turned off, but initialise
      off_on_delay to the current time when registering the regulator, so that
      we guarantee that we respect the off_on_delay in all cases.
      Signed-off-by: NVincent Whitchurch <vincent.whitchurch@axis.com>
      Link: https://lore.kernel.org/r/20210422083044.11479-1-vincent.whitchurch@axis.comSigned-off-by: NMark Brown <broonie@kernel.org>
      a5ccccb3
    • M
      Merge series "mfd/rtc/regulator: Drop board file support for Samsung PMIC"... · 823543b7
      Mark Brown 提交于
      Merge series "mfd/rtc/regulator: Drop board file support for Samsung PMIC" from Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>:
      
      Hi,
      
      The Samsung PMIC drivers since long time are used only on devicetree
      platforms (Samsung Exynos) and there are no users with board files.
      
      Drop the support for board files entirely and depend on OF for matching.
      
      This makes the code smaller and simpler.
      
      Dependencies
      ============
      The MFD pieces are rebased on my previous sec-core dirver changes:
      mfd: sec: Simplify getting of_device_id match data
      https://lore.kernel.org/linux-samsung-soc/20210420113929.278082-1-krzysztof.kozlowski@canonical.com/T/#t
      
      Applying - can be independent
      =============================
      The last RTC and regulator patches can be picked up independently via
      regulator and rtc trees.  There are no board files currently, so the
      code in these drivers is basically dead code and feature-bisection is
      preserved.
      
      Best regards,
      Krzysztof
      
      Krzysztof Kozlowski (9):
        mfd: sec: Drop support for board files and require devicetree
        mfd: sec: Remove unused cfg_pmic_irq in platform data
        mfd: sec: Remove unused device_type in platform data
        mfd: sec: Remove unused irq_base in platform data
        mfd: sec: Enable wakeup from suspend via devicetree property
        mfd: sec: Remove unused platform data members
        rtc: s5m: Remove reference to parent's device pdata
        regulator: s2mpa01: Drop initialization via platform data
        regulator: s2mps11: Drop initialization via platform data
      
       drivers/mfd/Kconfig              |  1 +
       drivers/mfd/sec-core.c           | 64 +++++---------------------------
       drivers/mfd/sec-irq.c            |  4 +-
       drivers/regulator/s2mpa01.c      |  4 --
       drivers/regulator/s2mps11.c      | 22 +----------
       drivers/rtc/rtc-s5m.c            |  6 ---
       include/linux/mfd/samsung/core.h | 33 ----------------
       7 files changed, 14 insertions(+), 120 deletions(-)
      
      --
      2.25.1
      823543b7
  3. 21 4月, 2021 6 次提交
  4. 03 4月, 2021 3 次提交
    • M
      Merge series "Support ROHM BD71815 PMIC" from Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>: · aaa8c4e0
      Mark Brown 提交于
      Patch series introducing support for ROHM BD71815 PMIC
      
      ROHM BD71815 is a power management IC used in some battery powered
      systems. It contains regulators, GPO(s), charger + coulomb counter, RTC
      and a clock gate.
      
      All regulators can be controlled via I2C. LDO4 can additionally be set to
      be enabled/disabled by a GPIO. LDO3 voltage could be selected from two
      voltages written into separate VSEL reisters using GPIO but this mode is
      not supported by driver. On top of that the PMIC has the typical HW
      state machine which is present also on many other ROHM PMICs.
      
      IC contains two GPOs - but one of the GPOs is marked as GND in
      data-sheet. Thus the driver by default only exposes one GPO. The second
      GPO can be enabled by special DT property.
      
      RTC is almost similar to what is on BD71828. For currently used features
      only the register address offset to RTC block differs.
      
      The charger driver is not included in this series. ROHM has a charger
      driver with some fuel-gauging logig written in but this is not included
      here. I am working on separating the logic from HW specific driver and
      supporting both BD71815 and BD71828 chargers in separate patch series.
      
      Changelog v5:
        Regulator:
        - Added regmap helper for regulator ramp-delay and taken it in use
          (patches 13, 14, 16 - they can be just dropped if ramp-delay helper is not
          a good idea. Patch 15 implements old-fashioned ramp-delay)
        GPIO:
        - styling changes to GPIO (Mostly suggested by Andy)
        - implemented init_valid_mask (but can't count on it yet)
      Changelog v4:
        - Sorted ROHM chip ID enum
        - Statcized DVS structures in regulator driver
        - Minor styling for regulator driver
        - rebased on v5.12-rc4
      Changelog v3:
        - GPIO clean-up as suggested by Bartosz
        - MFD clean-up as suggested by Lee
        - clk-mode dt-binding handling in MFD driver corrected to reflect new
          property values.
        - Dropped already applied patches
        - Rebased on v5.12-rc2
      Changelog v2:
        - Rebased on top of v5.11-rc3
        - Added another "preliminary patch" which fixes HW-dvs voltage
          handling (patch 1)
        - split regulator patch to two.
        - changed dt-binding patch ordering.
        regulators:
          - staticized probe
          - removed some unnecessary defines
          - updated comments
          - split rohm-regulator patch adding SNVS and supporting simple
            linear mapping into two - one adding support for mapping, other
            adding SNVS.
        GPIO:
          - removed unnecessary headers
          - clarified dev/parent->dev usage
          - removed forgotten #define DEBUG
        dt-bindings:
          - changed patch order to meet ref-dependencies
          - added missing regulator nodes
          - changed string property for clk mode to tristated
        MFD:
          - header cleanups.
        CLK:
          - fixed commit message
      
      --
      
      Matti Vaittinen (19):
        rtc: bd70528: Do not require parent data
        mfd: bd718x7: simplify by cleaning unnecessary device data
        dt_bindings: bd71828: Add clock output mode
        dt_bindings: regulator: Add ROHM BD71815 PMIC regulators
        dt_bindings: mfd: Add ROHM BD71815 PMIC
        mfd: Add ROHM BD71815 ID
        mfd: Sort ROHM chip ID list for better readability
        mfd: Support for ROHM BD71815 PMIC core
        gpio: support ROHM BD71815 GPOs
        regulator: helpers: Export helper voltage listing
        regulator: rohm-regulator: linear voltage support
        regulator: rohm-regulator: Support SNVS HW state.
        regulator: Add regmap helper for ramp-delay setting
        regulator: bd718x7, bd71828: Use ramp-delay helper
        regulator: Support ROHM BD71815 regulators
        regulator: bd71815: use ramp-delay helper
        clk: bd718x7: Add support for clk gate on ROHM BD71815 PMIC
        rtc: bd70528: Support RTC on ROHM BD71815
        MAINTAINERS: Add ROHM BD71815AGW
      
       .../bindings/mfd/rohm,bd71815-pmic.yaml       | 201 ++++++
       .../bindings/mfd/rohm,bd71828-pmic.yaml       |   6 +
       .../regulator/rohm,bd71815-regulator.yaml     | 116 ++++
       MAINTAINERS                                   |   3 +
       drivers/clk/clk-bd718x7.c                     |   9 +-
       drivers/gpio/Kconfig                          |  10 +
       drivers/gpio/Makefile                         |   1 +
       drivers/gpio/gpio-bd71815.c                   | 193 ++++++
       drivers/mfd/Kconfig                           |  15 +-
       drivers/mfd/rohm-bd71828.c                    | 486 +++++++++----
       drivers/mfd/rohm-bd718x7.c                    |  43 +-
       drivers/regulator/Kconfig                     |  11 +
       drivers/regulator/Makefile                    |   1 +
       drivers/regulator/bd71815-regulator.c         | 651 ++++++++++++++++++
       drivers/regulator/bd71828-regulator.c         |  51 +-
       drivers/regulator/bd718x7-regulator.c         |  60 +-
       drivers/regulator/helpers.c                   | 101 ++-
       drivers/regulator/rohm-regulator.c            |  23 +-
       drivers/rtc/Kconfig                           |   6 +-
       drivers/rtc/rtc-bd70528.c                     | 104 +--
       include/linux/mfd/rohm-bd71815.h              | 562 +++++++++++++++
       include/linux/mfd/rohm-bd71828.h              |   3 +
       include/linux/mfd/rohm-bd718x7.h              |  13 -
       include/linux/mfd/rohm-generic.h              |  15 +-
       include/linux/regulator/driver.h              |   7 +
       25 files changed, 2393 insertions(+), 298 deletions(-)
       create mode 100644 Documentation/devicetree/bindings/mfd/rohm,bd71815-pmic.yaml
       create mode 100644 Documentation/devicetree/bindings/regulator/rohm,bd71815-regulator.yaml
       create mode 100644 drivers/gpio/gpio-bd71815.c
       create mode 100644 drivers/regulator/bd71815-regulator.c
       create mode 100644 include/linux/mfd/rohm-bd71815.h
      
      base-commit: 0d02ec6b
      --
      2.25.4
      
      --
      Matti Vaittinen, Linux device drivers
      ROHM Semiconductors, Finland SWDC
      Kiviharjunlenkki 1E
      90220 OULU
      FINLAND
      
      ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
      Simon says - in Latin please.
      ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
      Thanks to Simon Glass for the translation =]
      aaa8c4e0
    • M
      regulator: Add regmap helper for ramp-delay setting · fb8fee9e
      Matti Vaittinen 提交于
      Quite a few regulator ICs do support setting ramp-delay by writing a value
      matching the delay to a ramp-delay register.
      
      Provide a simple helper for table-based delay setting.
      Signed-off-by: NMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
      Link: https://lore.kernel.org/r/f101f1db564cf32cb58719c77af0b00d7236bb89.1617020713.git.matti.vaittinen@fi.rohmeurope.comSigned-off-by: NMark Brown <broonie@kernel.org>
      fb8fee9e
    • M
      regulator: helpers: Export helper voltage listing · e3baacf5
      Matti Vaittinen 提交于
      Some drivers need to translate voltage values to selectors prior regulator
      registration. Currently a regulator_desc based list_voltages helper is only
      exported for regulators using the linear_ranges. Export similar helper also
      for regulators using simple linear mapping.
      Signed-off-by: NMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
      Link: https://lore.kernel.org/r/1200ef7a50c84327ada019b85f6527b4fc9b5ce1.1617020713.git.matti.vaittinen@fi.rohmeurope.comSigned-off-by: NMark Brown <broonie@kernel.org>
      e3baacf5
  5. 02 4月, 2021 4 次提交
  6. 25 3月, 2021 1 次提交
  7. 22 3月, 2021 11 次提交
    • L
      Linux 5.12-rc4 · 0d02ec6b
      Linus Torvalds 提交于
      0d02ec6b
    • L
      Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · d7f5f1bd
      Linus Torvalds 提交于
      Pull ext4 fixes from Ted Ts'o:
       "Miscellaneous ext4 bug fixes for v5.12"
      
      * tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: initialize ret to suppress smatch warning
        ext4: stop inode update before return
        ext4: fix rename whiteout with fast commit
        ext4: fix timer use-after-free on failed mount
        ext4: fix potential error in ext4_do_update_inode
        ext4: do not try to set xattr into ea_inode if value is empty
        ext4: do not iput inode under running transaction in ext4_rename()
        ext4: find old entry again if failed to rename whiteout
        ext4: fix error handling in ext4_end_enable_verity()
        ext4: fix bh ref count on error paths
        fs/ext4: fix integer overflow in s_log_groups_per_flex
        ext4: add reclaim checks to xattr code
        ext4: shrink race window in ext4_should_retry_alloc()
      d7f5f1bd
    • L
      Merge tag 'io_uring-5.12-2021-03-21' of git://git.kernel.dk/linux-block · 2c41fab1
      Linus Torvalds 提交于
      Pull io_uring followup fixes from Jens Axboe:
      
       - The SIGSTOP change from Eric, so we properly ignore that for
         PF_IO_WORKER threads.
      
       - Disallow sending signals to PF_IO_WORKER threads in general, we're
         not interested in having them funnel back to the io_uring owning
         task.
      
       - Stable fix from Stefan, ensuring we properly break links for short
         send/sendmsg recv/recvmsg if MSG_WAITALL is set.
      
       - Catch and loop when needing to run task_work before a PF_IO_WORKER
         threads goes to sleep.
      
      * tag 'io_uring-5.12-2021-03-21' of git://git.kernel.dk/linux-block:
        io_uring: call req_set_fail_links() on short send[msg]()/recv[msg]() with MSG_WAITALL
        io-wq: ensure task is running before processing task_work
        signal: don't allow STOP on PF_IO_WORKER threads
        signal: don't allow sending any signals to PF_IO_WORKER threads
      2c41fab1
    • L
      Merge tag 'staging-5.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 1d4345eb
      Linus Torvalds 提交于
      Pull staging and IIO driver fixes from Greg KH:
       "Some small staging and IIO driver fixes:
      
         - MAINTAINERS changes for the move of the staging mailing list
      
         - comedi driver fixes to get request_irq() to work correctly
      
         - counter driver fixes for reported issues with iio devices
      
         - tiny iio driver fixes for reported issues.
      
        All of these have been in linux-next with no reported problems"
      
      * tag 'staging-5.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: vt665x: fix alignment constraints
        staging: comedi: cb_pcidas64: fix request_irq() warn
        staging: comedi: cb_pcidas: fix request_irq() warn
        MAINTAINERS: move the staging subsystem to lists.linux.dev
        MAINTAINERS: move some real subsystems off of the staging mailing list
        iio: gyro: mpu3050: Fix error handling in mpu3050_trigger_handler
        iio: hid-sensor-temperature: Fix issues of timestamp channel
        iio: hid-sensor-humidity: Fix alignment issue of timestamp channel
        counter: stm32-timer-cnt: fix ceiling miss-alignment with reload register
        counter: stm32-timer-cnt: fix ceiling write max value
        counter: stm32-timer-cnt: Report count function when SLAVE_MODE_DISABLED
        iio: adc: ab8500-gpadc: Fix off by 10 to 3
        iio:adc:stm32-adc: Add HAS_IOMEM dependency
        iio: adis16400: Fix an error code in adis16400_initial_setup()
        iio: adc: adi-axi-adc: add proper Kconfig dependencies
        iio: adc: ad7949: fix wrong ADC result due to incorrect bit mask
        iio: hid-sensor-prox: Fix scale not correct issue
        iio:adc:qcom-spmi-vadc: add default scale to LR_MUX2_BAT_ID channel
      1d4345eb
    • L
      Merge tag 'usb-5.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 3001c355
      Linus Torvalds 提交于
      Pull USB and Thunderbolt driver fixes from Greg KH:
       "Here are some small Thunderbolt and USB driver fixes for some reported
        issues:
      
         - thunderbolt fixes for minor problems
      
         - typec fixes for power issues
      
         - usb-storage quirk addition
      
         - usbip bugfix
      
         - dwc3 bugfix when stopping transfers
      
         - cdnsp bugfix for isoc transfers
      
         - gadget use-after-free fix
      
        All have been in linux-next this week with no reported issues"
      
      * tag 'usb-5.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: typec: tcpm: Skip sink_cap query only when VDM sm is busy
        usb: dwc3: gadget: Prevent EP queuing while stopping transfers
        usb: typec: tcpm: Invoke power_supply_changed for tcpm-source-psy-
        usb: typec: Remove vdo[3] part of tps6598x_rx_identity_reg struct
        usb-storage: Add quirk to defeat Kindle's automatic unload
        usb: gadget: configfs: Fix KASAN use-after-free
        usbip: Fix incorrect double assignment to udc->ud.tcp_rx
        usb: cdnsp: Fixes incorrect value in ISOC TRB
        thunderbolt: Increase runtime PM reference count on DP tunnel discovery
        thunderbolt: Initialize HopID IDAs in tb_switch_alloc()
      3001c355
    • L
      Merge tag 'irq-urgent-2021-03-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5ee96fa9
      Linus Torvalds 提交于
      Pull irq fix from Ingo Molnar:
       "A change to robustify force-threaded IRQ handlers to always disable
        interrupts, plus a DocBook fix.
      
        The force-threaded IRQ handler change has been accelerated from the
        normal schedule of such a change to keep the bad pattern/workaround of
        spin_lock_irqsave() in handlers or IRQF_NOTHREAD as a kludge from
        spreading"
      
      * tag 'irq-urgent-2021-03-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        genirq: Disable interrupts for force threaded handlers
        genirq/irq_sim: Fix typos in kernel doc (fnode -> fwnode)
      5ee96fa9
    • L
      Merge tag 'perf-urgent-2021-03-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1c74516c
      Linus Torvalds 提交于
      Pull perf fixes from Ingo Molnar:
       "Boundary condition fixes for bugs unearthed by the perf fuzzer"
      
      * tag 'perf-urgent-2021-03-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/x86/intel: Fix unchecked MSR access error caused by VLBR_EVENT
        perf/x86/intel: Fix a crash caused by zero PEBS status
      1c74516c
    • L
      Merge tag 'locking-urgent-2021-03-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5ba33b48
      Linus Torvalds 提交于
      Pull locking fixes from Ingo Molnar:
      
       - Get static calls & modules right. Hopefully.
      
       - WW mutex fixes
      
      * tag 'locking-urgent-2021-03-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        static_call: Fix static_call_update() sanity check
        static_call: Align static_call_is_init() patching condition
        static_call: Fix static_call_set_init()
        locking/ww_mutex: Fix acquire/release imbalance in ww_acquire_init()/ww_acquire_fini()
        locking/ww_mutex: Simplify use_ww_ctx & ww_ctx handling
      5ba33b48
    • L
      Merge tag 'efi-urgent-2021-03-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 92ed88cb
      Linus Torvalds 提交于
      Pull EFI fixes from Ingo Molnar:
      
       - another missing RT_PROP table related fix, to ensure that the
         efivarfs pseudo filesystem fails gracefully if variable services
         are unsupported
      
       - use the correct alignment for literal EFI GUIDs
      
       - fix a use after unmap issue in the memreserve code
      
      * tag 'efi-urgent-2021-03-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi: use 32-bit alignment for efi_guid_t literals
        firmware/efi: Fix a use after bug in efi_mem_reserve_persistent
        efivars: respect EFI_UNSUPPORTED return from firmware
      92ed88cb
    • L
      Merge tag 'x86_urgent_for_v5.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5e3ddf96
      Linus Torvalds 提交于
      Pull x86 fixes from Borislav Petkov:
       "The freshest pile of shiny x86 fixes for 5.12:
      
         - Add the arch-specific mapping between physical and logical CPUs to
           fix devicetree-node lookups
      
         - Restore the IRQ2 ignore logic
      
         - Fix get_nr_restart_syscall() to return the correct restart syscall
           number. Split in a 4-patches set to avoid kABI breakage when
           backporting to dead kernels"
      
      * tag 'x86_urgent_for_v5.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/apic/of: Fix CPU devicetree-node lookups
        x86/ioapic: Ignore IRQ2 again
        x86: Introduce restart_block->arch_data to remove TS_COMPAT_RESTART
        x86: Introduce TS_COMPAT_RESTART to fix get_nr_restart_syscall()
        x86: Move TS_COMPAT back to asm/thread_info.h
        kernel, fs: Introduce and use set_restart_fn() and arch_set_restart_data()
      5e3ddf96
    • L
      Merge tag 'powerpc-5.12-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · b35660a7
      Linus Torvalds 提交于
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix a possible stack corruption and subsequent DLPAR failure in the
         rpadlpar_io PCI hotplug driver
      
       - Two build fixes for uncommon configurations
      
      Thanks to Christophe Leroy and Tyrel Datwyler.
      
      * tag 'powerpc-5.12-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        PCI: rpadlpar: Fix potential drc_name corruption in store functions
        powerpc: Force inlining of cpu_has_feature() to avoid build failure
        powerpc/vdso32: Add missing _restgpr_31_x to fix build failure
      b35660a7
  8. 21 3月, 2021 11 次提交