1. 23 Mar, 2021 13 commits
  2. 22 Mar, 2021 5 commits
  3. 21 Mar, 2021 2 commits
    • LI Qingwu's avatar
      power: supply: bq27xxx: Add support for BQ78Z100 · 4eed7f5a
      LI Qingwu authored
      Add support for TI BQ78Z100, I2C interface gas gauge.
      It provides a fully integrated safety protection
      and authentication for 1 to 2-series cell Li-Ion and
      Li-Polymer battery packs.
      
      The patch was tested with BQ78Z100 equipment.
      
      CASE I:  Discharging:
      	POWER_SUPPLY_NAME=bq78z100-0
      	POWER_SUPPLY_STATUS=Discharging
      	POWER_SUPPLY_PRESENT=1
      	POWER_SUPPLY_VOLTAGE_NOW=3386000
      	POWER_SUPPLY_CURRENT_NOW=-5000
      	POWER_SUPPLY_CAPACITY=27
      	POWER_SUPPLY_CAPACITY_LEVEL=Normal
      	POWER_SUPPLY_TEMP=269
      	POWER_SUPPLY_TIME_TO_EMPTY_NOW=1249920
      	POWER_SUPPLY_TECHNOLOGY=Li-ion
      	POWER_SUPPLY_CHARGE_FULL=6494000
      	POWER_SUPPLY_CHARGE_NOW=1736000
      	POWER_SUPPLY_CHARGE_FULL_DESIGN=6000000
      	POWER_SUPPLY_CYCLE_COUNT=1
      	POWER_SUPPLY_POWER_AVG=-20000
      	POWER_SUPPLY_HEALTH=Good
      	POWER_SUPPLY_MANUFACTURER=Texas Instruments
      
      CASE II : No discharging current:
      	POWER_SUPPLY_NAME=bq78z100-0
      	POWER_SUPPLY_STATUS=Not charging
      	POWER_SUPPLY_PRESENT=1
      	POWER_SUPPLY_VOLTAGE_NOW=3386000
      	POWER_SUPPLY_CURRENT_NOW=0
      	POWER_SUPPLY_CAPACITY=27
      	POWER_SUPPLY_CAPACITY_LEVEL=Normal
      	POWER_SUPPLY_TEMP=270
      	POWER_SUPPLY_TECHNOLOGY=Li-ion
      	POWER_SUPPLY_CHARGE_FULL=6494000
      	POWER_SUPPLY_CHARGE_NOW=1734000
      	POWER_SUPPLY_CHARGE_FULL_DESIGN=6000000
      	POWER_SUPPLY_CYCLE_COUNT=1
      	POWER_SUPPLY_POWER_AVG=0
      	POWER_SUPPLY_HEALTH=Good
      	POWER_SUPPLY_MANUFACTURER=Texas Instruments
      Signed-off-by: default avatarLI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
      Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
      Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
      4eed7f5a
    • LI Qingwu's avatar
      dt-bindings: power: bq27xxx: add bq78z100 · 83ee0681
      LI Qingwu authored
      Add bindings for TI BQ78Z100. An I2C interface gas gauge.
      It provides a fully integrated safety protection
      and authentication for 1 to 2-series cell Li-Ion and
      Li-Polymer battery packs.
      Signed-off-by: default avatarLI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
      83ee0681
  4. 15 Mar, 2021 4 commits
  5. 14 Mar, 2021 1 commit
  6. 09 Mar, 2021 1 commit
  7. 06 Mar, 2021 11 commits
  8. 05 Mar, 2021 3 commits
    • Linus Torvalds's avatar
      Merge tag 'for-5.12/dm-fixes' of... · 63dcd69d
      Linus Torvalds authored
      Merge tag 'for-5.12/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper fixes from Mike Snitzer:
       "Fix DM verity target's optional Forward Error Correction (FEC) for
        Reed-Solomon roots that are unaligned to block size"
      
      * tag 'for-5.12/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm verity: fix FEC for RS roots unaligned to block size
        dm bufio: subtract the number of initial sectors in dm_bufio_get_device_size
      63dcd69d
    • Linus Torvalds's avatar
      Merge tag 'block-5.12-2021-03-05' of git://git.kernel.dk/linux-block · 47454caf
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - NVMe fixes:
            - more device quirks (Julian Einwag, Zoltán Böszörményi, Pascal
              Terjan)
            - fix a hwmon error return (Daniel Wagner)
            - fix the keep alive timeout initialization (Martin George)
            - ensure the model_number can't be changed on a used subsystem
              (Max Gurtovoy)
      
       - rsxx missing -EFAULT on copy_to_user() failure (Dan)
      
       - rsxx remove unused linux.h include (Tian)
      
       - kill unused RQF_SORTED (Jean)
      
       - updated outdated BFQ comments (Joseph)
      
       - revert work-around commit for bd_size_lock, since we removed the
         offending user in this merge window (Damien)
      
      * tag 'block-5.12-2021-03-05' of git://git.kernel.dk/linux-block:
        nvmet: model_number must be immutable once set
        nvme-fabrics: fix kato initialization
        nvme-hwmon: Return error code when registration fails
        nvme-pci: add quirks for Lexar 256GB SSD
        nvme-pci: mark Kingston SKC2000 as not supporting the deepest power state
        nvme-pci: mark Seagate Nytro XM1440 as QUIRK_NO_NS_DESC_LIST.
        rsxx: Return -EFAULT if copy_to_user() fails
        block/bfq: update comments and default value in docs for fifo_expire
        rsxx: remove unused including <linux/version.h>
        block: Drop leftover references to RQF_SORTED
        block: revert "block: fix bd_size_lock use"
      47454caf
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.12-2021-03-05' of git://git.kernel.dk/linux-block · f292e873
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "A bit of a mix between fallout from the worker change, cleanups and
        reductions now possible from that change, and fixes in general. In
        detail:
      
         - Fully serialize manager and worker creation, fixing races due to
           that.
      
         - Clean up some naming that had gone stale.
      
         - SQPOLL fixes.
      
         - Fix race condition around task_work rework that went into this
           merge window.
      
         - Implement unshare. Used for when the original task does unshare(2)
           or setuid/seteuid and friends, drops the original workers and forks
           new ones.
      
         - Drop the only remaining piece of state shuffling we had left, which
           was cred. Move it into issue instead, and we can drop all of that
           code too.
      
         - Kill f_op->flush() usage. That was such a nasty hack that we had
           out of necessity, we no longer need it.
      
         - Following from ->flush() removal, we can also drop various bits of
           ctx state related to SQPOLL and cancelations.
      
         - Fix an issue with IOPOLL retry, which originally was fallout from a
           filemap change (removing iov_iter_revert()), but uncovered an issue
           with iovec re-import too late.
      
         - Fix an issue with system suspend.
      
         - Use xchg() for fallback work, instead of cmpxchg().
      
         - Properly destroy io-wq on exec.
      
         - Add create_io_thread() core helper, and use that in io-wq and
           io_uring. This allows us to remove various silly completion events
           related to thread setup.
      
         - A few error handling fixes.
      
        This should be the grunt of fixes necessary for the new workers, next
        week should be quieter. We've got a pending series from Pavel on
        cancelations, and how tasks and rings are indexed. Outside of that,
        should just be minor fixes. Even with these fixes, we're still killing
        a net ~80 lines"
      
      * tag 'io_uring-5.12-2021-03-05' of git://git.kernel.dk/linux-block: (41 commits)
        io_uring: don't restrict issue_flags for io_openat
        io_uring: make SQPOLL thread parking saner
        io-wq: kill hashed waitqueue before manager exits
        io_uring: clear IOCB_WAITQ for non -EIOCBQUEUED return
        io_uring: don't keep looping for more events if we can't flush overflow
        io_uring: move to using create_io_thread()
        kernel: provide create_io_thread() helper
        io_uring: reliably cancel linked timeouts
        io_uring: cancel-match based on flags
        io-wq: ensure all pending work is canceled on exit
        io_uring: ensure that threads freeze on suspend
        io_uring: remove extra in_idle wake up
        io_uring: inline __io_queue_async_work()
        io_uring: inline io_req_clean_work()
        io_uring: choose right tctx->io_wq for try cancel
        io_uring: fix -EAGAIN retry with IOPOLL
        io-wq: fix error path leak of buffered write hash map
        io_uring: remove sqo_task
        io_uring: kill sqo_dead and sqo submission halting
        io_uring: ignore double poll add on the same waitqueue head
        ...
      f292e873