From patchwork Fri Jan 19 00:46:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 189369 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp714642dyb; Thu, 18 Jan 2024 16:46:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IH67Vg53DBKDFTxX2CkH3HGME4VPrXSvXbE0w9AAPG+Ok7jQ+elP/0k0ViKur1dbzzfdT45 X-Received: by 2002:a05:622a:54e:b0:429:fcdd:5acf with SMTP id m14-20020a05622a054e00b00429fcdd5acfmr1963485qtx.125.1705625214614; Thu, 18 Jan 2024 16:46:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705625214; cv=pass; d=google.com; s=arc-20160816; b=wqMulwKSYximF16NhqbxFDNFFiqasDjkTdMDjFK1gWLuvAPFr5cQtCsEfcwCD9loZT xQiisShwxKga8QKQzOjHUbcMxfCU9ppzTQA5lNZf/+ir9vh6xd4cXg057hkKwS/cmgcw VE3F4RYqGkr68T0EBGXH7mkx9RLIm5IdZJOTA0XpvzYb0Lu6+GDT0XH3KQCLT3pyvBZR bmVphNWajwr5TxvMVZmB8YJRw09ANq9o4XJCy/jt0H8dhyGe57KeaVI6uECAzyswfdeh 6xV/Eyp4ooWp4OD2iOdknpXwMDnPyDRKv6m+Wnd73V+edIjobXWlgGrM9zUpkBWanlsQ rLyQ== ARC-Message-Signature: i=2; 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=Y5n6zarQGqwzVPDznf4q6frmUL3ySCNCN27MSoNKF3c=; fh=gLectZd1li8BYmpt7ZIhMhxQ89GxCnubODdRFHYLe7Y=; b=ts4G6EXHnRGQYvWViu+FiZIK2SXzRNYCy13DD4w3t0HhAemEIkxQPAiKDrLefgJHJJ k78YE87gaPNPtY7Z0sEsUd47gJh4bNOWO6znwU1aLPC5KFz2vw8wyphUf7ElenniPyCB yqsYwgwC7sNR0hfMLQScrDQ9dyh2QE6Phescjd+MZ1jqjCw3ZO83SRlkZIt8067sHIHw tqdn6UZO8pRs4n7ulRyvwFA5qRk4X0gYxWGNrTQvYqGXAGVhYzC9XpFmh+aE9dU0i7wC WdfTwPXRKO45zW4BcOc94+Yaq0a++9LzWK17AXWGQEsG3QLWHDg1VMYi8wuLaGN0EWpg ryDA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=faC1WXXh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-30663-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30663-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 s6-20020ac85cc6000000b0042a25281339si277358qta.228.2024.01.18.16.46.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 16:46:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30663-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=faC1WXXh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-30663-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30663-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 5CCE81C22DD3 for ; Fri, 19 Jan 2024 00:46:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57EAC1392; Fri, 19 Jan 2024 00:46:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="faC1WXXh" 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 1970038D; Fri, 19 Jan 2024 00:46:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705625193; cv=none; b=mBnn3FInqV6K276098+kjr82gByRN01tG1jyuEM0aaipfsCPW1l90npz0mxDk/3xFWYS7wg4ocyUwqAJgVgPlkIZfU223M2ulqBeLRHIuVQvgbgC44LSUgFdM0sgQ+TGtVuNS0G5UowKTDGfFoR1ERLyEMzArhjNBFbnWBr2oxQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705625193; c=relaxed/simple; bh=dzocCGndzebBDVp6sr61B4NYXyqttAewVD6DK4dMQ4k=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=bRRtMmE1QuoVjBYAAalARsYInTCOvMXG/rgC3sR+bA2GOniopkAinHBowUs/HSP3p38fUdIavLExhzWQ2Kk1hN524YNbZW+0uDeZYPoKSbXEkguivzoaAGL7GGMi/vTdGya8wWQ/VhbWn8aFd9UikiWIWAGHGH5HJOzt5YIkEA8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=faC1WXXh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A5F7C433C7; Fri, 19 Jan 2024 00:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705625192; bh=dzocCGndzebBDVp6sr61B4NYXyqttAewVD6DK4dMQ4k=; h=Date:From:To:Cc:Subject:From; b=faC1WXXh/cJruDTGIAzlfmsjor/2tHerCr0bjUZA7lpUrCsZYAaEH5dUtkUtydAcE FBSgqbWq8p6mr3y/oFVOIOn4gbZH3TMreEtxejvmizgnjVHxyZTHdlcOgf2gL1pcQe F+pmGQfb9XZobiQKZpauGmjmVb8+LXnleNQc8imFOzANZOShJeVCJHxaVfGyrvCrOX EVUdS16cMkV4p/Rz7o46yhf9wwpUE/sOlU7aKCMNzB+8HNlqpC3mxqB+FMoHnWRgiY gVVjSYBO+2QZlFBg7w+gAJm72unJSk55UeE7qE36WhBAhAGk9IoJtLKAG/vSNKqUT5 /wMNMyDaWanlw== Received: by mercury (Postfix, from userid 1000) id 3DB401061349; Fri, 19 Jan 2024 01:46:29 +0100 (CET) Date: Fri, 19 Jan 2024 01:46:29 +0100 From: Sebastian Reichel To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Nathan Chancellor Subject: [GIT PULL] power-supply changes for 6.8-v2 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: 1788477665120266470 X-GMAIL-MSGID: 1788477665120266470 Hi Linus, This is the same as the previous one with the referenced fix queued in addition. I just queued the fix, so it has only been in linux-next for a few minutes. -- Sebastian 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-v2 for you to fetch changes up to 17d49b7e47a1001c8796f05f4a2bbdef0a998213: power: supply: bq24190_charger: Fix "initializer element is not constant" error (2024-01-19 01:03:17 +0100) ---------------------------------------------------------------- power supply and reset changes for the 6.8 series new 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 (2): power: reset: at91: Drop '__init' from at91_wakeup_status() power: supply: bq24190_charger: Fix "initializer element is not constant" error 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(-)