From patchwork Mon Jan 15 20:43:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 188338 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp1938423dyc; Mon, 15 Jan 2024 12:50:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6VQMMtdcwKOlJhgMEr0z36E64zrkvrQjHzMeRTh+KcvRWm2qTazTBJf6GDdqGIWJ/4b90 X-Received: by 2002:a9d:65c9:0:b0:6db:b046:2189 with SMTP id z9-20020a9d65c9000000b006dbb0462189mr5661466oth.24.1705351823277; Mon, 15 Jan 2024 12:50:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705351823; cv=none; d=google.com; s=arc-20160816; b=CRwfp2MldCY5tc9O0swYtw0v9oxP59AC+GpuVgw1IPcprjRsGQNp9Fmh+jgkN3Kqss pDa1mv2q/BxQL1H7gOnjMosOA/bqccJAZ/dtVWulLrQ23mDHsDpYWuslHcyXeRNSWvZ8 X2c5VHsCrNBUJ8Rgt5xZZVQF/eDA62yxl6nZVe5jywrABu6RXGLwkN8bkA3KEhpJ7B05 T77VS5lNUwak52SDCD7l9tbku60vNK1EaJlglpuOCXSjPMIpuVBWd9DVdP8IzZyZLTXr WtfTuJZ3sUKa/mC7ntpquDvMc+AqFgSUUAkPfZro7DE0+dRKxjHqka+wXdxFiswP8s19 BD2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=1jYSDOUcohEtv8yS7QcR+7PQCX6GkwdI1vAvfWqaBR4=; fh=SJTuxLYrChWJ12CtNEzYST8jY5euYblYcmVxRsS6cXM=; b=et+DIa6F7uCChhRRDQ3ttIhdMDKneCKKLnTv4PWQnxQmtdnbeNC8ZOrFTnwiPJiI3d OPE6Fd4t2zX+68Ok8QTCx3ALG9nrndOhYojxYbpRxnmYCWQ4BRj5lZkhiHPTbUHImGll vmK4BLKae1FIluMDZ3N0D1aOzIa7SMw9G8MW2nqGQ7wto7Pi+nah99JTFsLfc2FP5zjD 7acAaDegVBrNOTzuuq6f+Es9HVI6GnMor4Ku5mclArkmTbtYYNPvINFKG7C/jZudLUuq oeQRstjos62xGaJeEf75fY0D+BsNUdxzfK/JbLxvsNaoyUxza8ESMDg0C182u7uhLHEx JUJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="R/YXTCgF"; spf=pass (google.com: domain of linux-kernel+bounces-26489-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26489-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i22-20020a0cab56000000b0067f94610e71si2262343qvb.561.2024.01.15.12.50.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 12:50:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26489-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="R/YXTCgF"; spf=pass (google.com: domain of linux-kernel+bounces-26489-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26489-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3B5B51C223D6 for ; Mon, 15 Jan 2024 20:43:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 617DB1AADC; Mon, 15 Jan 2024 20:43:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R/YXTCgF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6622B1B581; Mon, 15 Jan 2024 20:43:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4B16C433C7; Mon, 15 Jan 2024 20:43:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705351395; bh=AB0MU58KQMheuhuESrBfAGmtVVn89O+3ztJ7LgDFSkY=; h=Date:From:To:Cc:Subject:From; b=R/YXTCgFMcwTd+gAmGqLkeTrXSjpFQgVvWymN4YOeYPypZYBqkChEFZJlR7cxpFbz xelPDQeVKK+HNbt17aFz4GtdTXY2rZmQe7JHiRpibmE8k/VQxomNhVJfaFELkWgzwQ gCxBbE+DV0uzN42DCbtwi92JrPzzHGzBuaGCHDOsIBOl1g2N0440uQMBSzEnb5AMuC FyOzzCIMDSAB19oJLVjZYfNBNtBGf3w7nF8v+f36lQ0TCTTLGdxopT2sk2Dp5tE/H3 AKldojLXQvPIi1b3eDZY3vMt8/Qs0MFXHebqZk3FWIIGmZ1fqlBb7H9KyJ8PQsIZw1 4VV44B8PKvJVA== Received: by mercury (Postfix, from userid 1000) id B31DA10644D4; Mon, 15 Jan 2024 21:43:11 +0100 (CET) Date: Mon, 15 Jan 2024 21:43:11 +0100 From: Sebastian Reichel To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [GIT PULL] power-supply changes for 6.8 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788190993076924417 X-GMAIL-MSGID: 1788190993076924417 Hi Linus, The following changes since commit b85ea95d086471afb4ad062012a4d73cd328fa86: Linux 6.7-rc1 (2023-11-12 16:19:07 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git tags/for-v6.8 for you to fetch changes up to 05599b5f56b750b5a92ff7f2c081945210816f83: Merge power-supply fixes for 6.7 cycle (2024-01-14 21:38:31 +0100) ---------------------------------------------------------------- power supply and reset changes for the 6.8 series * new drivers / features - bq24190: Add support for BQ24296 charger * cleanups - all reset drivers: Stop using module_platform_driver_probe() - gpio-restart: use devm_register_sys_off_handler - pwr-mlxbf: support graceful reboot - cw2015: correct time_to_empty units - qcom-battmgr: Fix driver initialization sequence - bq27xxx: Start/Stop delayed work in suspend/resume - minor cleanups and fixes ---------------------------------------------------------------- Andrew Davis (1): power: reset: gpio-restart: Use devm_register_sys_off_handler() Asmaa Mnebhi (1): power: reset: pwr-mlxbf: support graceful reboot instead of emergency reset Charalampos Mitrodimas (2): power: supply: Fix indentation and some other warnings power: supply: Use multiple MODULE_AUTHOR statements Elliot Berman (2): dt-bindings: power: reset: $ref reboot-mode in syscon-reboot-mode dt-bindings: power: reset: $ref reboot-mode in nvmem-reboot-mode Hermes Zhang (2): dt-bindings: power: supply: bq24190: Add BQ24296 compatible power: supply: bq24190_charger: Add support for BQ24296 Jan Palus (1): power: supply: cw2015: correct time_to_empty units in sysfs Johan Hovold (1): dt-bindings: power: reset: qcom-pon: fix inconsistent example Konrad Dybcio (1): power: supply: qcom_battmgr: Register the power supplies after PDR is up Kunwu Chan (1): power: supply: Fix null pointer dereference in smb2_probe Marek Vasut (1): power: supply: bq27xxx: Stop and start delayed work in suspend and resume Michal Simek (1): dt-bindings: power: reset: xilinx: Rename node names in examples Nathan Chancellor (1): power: reset: at91: Drop '__init' from at91_wakeup_status() Sebastian Reichel (1): Merge power-supply fixes for 6.7 cycle Su Hui (1): power: supply: bq256xx: fix some problem in bq256xx_hw_init Uwe Kleine-König (16): power: reset: at91-poweroff: Stop using module_platform_driver_probe() power: reset: at91-reset: Stop using module_platform_driver_probe() power: reset: at91-sama5d2_shdwc: Stop using module_platform_driver_probe() power: reset: as3722-poweroff: Convert to platform remove callback returning void power: reset: at91-poweroff: Convert to platform remove callback returning void power: reset: atc260x-poweroff: Convert to platform remove callback returning void power: reset: ltc2952-poweroff: Convert to platform remove callback returning void power: reset: mt6323-poweroff: Convert to platform remove callback returning void power: reset: qnap-poweroff: Convert to platform remove callback returning void power: reset: regulator-poweroff: Convert to platform remove callback returning void power: reset: restart-poweroff: Convert to platform remove callback returning void power: reset: rmobile-reset: Convert to platform remove callback returning void power: reset: syscon-poweroff: Convert to platform remove callback returning void power: reset: tps65086-restart: Convert to platform remove callback returning void power: reset: at91-reset: Convert to platform remove callback returning void power: reset: at91-sama5d2_shdwc: Convert to platform remove callback returning void .../bindings/power/reset/nvmem-reboot-mode.yaml | 8 +- .../devicetree/bindings/power/reset/qcom,pon.yaml | 13 +- .../bindings/power/reset/syscon-reboot-mode.yaml | 8 +- .../bindings/power/reset/xlnx,zynqmp-power.yaml | 4 +- .../devicetree/bindings/power/supply/bq24190.yaml | 1 + drivers/power/reset/as3722-poweroff.c | 6 +- drivers/power/reset/at91-poweroff.c | 13 +- drivers/power/reset/at91-reset.c | 11 +- drivers/power/reset/at91-sama5d2_shdwc.c | 13 +- drivers/power/reset/atc260x-poweroff.c | 6 +- drivers/power/reset/gpio-restart.c | 34 +- drivers/power/reset/ltc2952-poweroff.c | 5 +- drivers/power/reset/mt6323-poweroff.c | 6 +- drivers/power/reset/pwr-mlxbf.c | 20 +- drivers/power/reset/qnap-poweroff.c | 5 +- drivers/power/reset/regulator-poweroff.c | 6 +- drivers/power/reset/restart-poweroff.c | 6 +- drivers/power/reset/rmobile-reset.c | 5 +- drivers/power/reset/syscon-poweroff.c | 6 +- drivers/power/reset/tps65086-restart.c | 12 +- drivers/power/supply/bq24190_charger.c | 459 ++++++++++++++++----- drivers/power/supply/bq256xx_charger.c | 5 +- drivers/power/supply/bq27xxx_battery.c | 22 + drivers/power/supply/bq27xxx_battery_i2c.c | 1 + drivers/power/supply/cw2015_battery.c | 2 +- drivers/power/supply/power_supply_core.c | 167 ++++---- drivers/power/supply/qcom_battmgr.c | 109 ++--- drivers/power/supply/qcom_pmi8998_charger.c | 4 + include/linux/power/bq27xxx_battery.h | 1 + 29 files changed, 615 insertions(+), 343 deletions(-)