Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1985304rdb; Sun, 4 Feb 2024 09:27:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVnLsYkCQ8dyBgSjVeTnQSSUHHaYTF2LNJ6gTpYW+u3I1Kn6pupIb2/eRnKvIPEd5EOGuS X-Received: by 2002:a17:90b:4b41:b0:295:fb9c:f6c9 with SMTP id mi1-20020a17090b4b4100b00295fb9cf6c9mr11752445pjb.0.1707067666132; Sun, 04 Feb 2024 09:27:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707067666; cv=pass; d=google.com; s=arc-20160816; b=yVoZ83APriNXygksplQ5GTXO7XdDsgDZMj/tnW9IGa/mwh0IxGcj46rnszTfPFRas1 1lAtViOmqo5u2MW0JbepEFIwMjQzLVYzqyjq9RyBUYbp4J4T8slvsMS9m0CPICcmnoJe DbxACHCWUXoBglg019ybRWHI/8M+JoSFfWfVKmomUEPgJg3lOJBwQDxUpICthFt4sU2u mgshqSmCwWRWrdo8EXjIjl8qj/SygBX/MM83f0he6idXWQNvdbILmt+wyFKJ9ZtbhBOg ZWEp/jz1hoC6vdKj7ZGtZ0jvLWDaxGPJCyk/PGI/QHbBphhgyjOVUkUraIGUaf68utER RoEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=BPqVkQrQdDvdd19CjmE3H5WSNllnYaUla8yYMqzxmLY=; fh=Z+QX8aLOwQLj8sUsqa2gRUGCAFDUyxbR2PBfv5fST3I=; b=0+geE29QQMFNl1PjYhPcoyh21ny+VjWVtcmLCe9LnFJF5nOeahbglWu1K5+TwnIKsi nUr/CysSIddsb965yL36e3jmYn+ZlFzU7fmKr/gOPzM5u/N721ACvoBAhST85AUhyg1J zQLrO2DlJQLMQWI/YSXEw+PYNx7MCZPk9f/6XAsuW6ZpSJJlWiPZM50sTcND1qpiXwMB op+hs4WVYFNH1XZJ1J66yTVQSl6zx7lX2JvL8Cym6W/PPSxyMJWR0nqqjHyNOFBjgzc0 2RgEbroo426jLuTmsYCSxyo8G2uk46HYlabXflVxM3xVetiOdZwj7yeh3TszerGvTKvp ujCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="ePzs/au5"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-51821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51821-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCW4GqE4GqiebHfdUIPCdQhiPycETHfdOlVKsGiSxzXStpa83cRx0sW8jdJ+Mspbrt/5i436/uy8t2iDEqLAsAPuf50gkmmD3/LbHQwtpw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j15-20020a170903024f00b001d73e8bbf45si4992453plh.349.2024.02.04.09.27.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 09:27:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="ePzs/au5"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-51821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51821-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C7E3C283231 for ; Sun, 4 Feb 2024 17:27:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8539124B31; Sun, 4 Feb 2024 17:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="ePzs/au5" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 C66D6249EE; Sun, 4 Feb 2024 17:27:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707067628; cv=none; b=TtafHKgjM/as162A/uJraamIFld80nbLyXBNYk4MXuSVGkZ9Hwsy4fvlxYdacqdVOImWlAaLthrHq7HKnOPMG6mgjNYJ/w25whH1IhiIaAXabJ7RJ09FgYEejBTv7y1vqn8gxNq/JkzxgpNGRlGOwMdH3y6YiCuzNsrCcS2HwL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707067628; c=relaxed/simple; bh=6wpOlSUJjb9Y16FHTSpbQGEf+52/IpYFTBtj/sIlmL8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=AVJ8NY0l8ghDqjODTS7y4/EKgB8CYdg4iw70bs7DThJ2PG2FraGfd3VWQFqNdNhGWioN/h4BsnFl2KyX0gfCyucPbtsUHzWSKzVUXEG97VGsFVyJf+WG8ahG4PQIa587+40rjYkngLFWSFP0LiwA4Rm3xEc2GdXZR1IK4CZzHrA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=ePzs/au5; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1707067616; bh=6wpOlSUJjb9Y16FHTSpbQGEf+52/IpYFTBtj/sIlmL8=; h=From:Subject:Date:To:Cc:From; b=ePzs/au5TCEzZfOgsIg5Jg675VoOf8rhc6hVAG8kbBsjNLyMTtfv2/noV8yBXwbBh tb6t+saHJ2bl0gi8UrYR3Uv8Lac2tR1s8pGskvXmAe3fgFStM2dvbYYZrprlD3Wwxx /G+K0v9c0X9te2P2JaJdBoFGEYpDko2iPphWGqcA= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Subject: [PATCH 0/4] power: supply: core: align charge_behaviour format with docs Date: Sun, 04 Feb 2024 18:26:46 +0100 Message-Id: <20240204-power_supply-charge_behaviour_prop-v1-0-06a20c958f96@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIANbIv2UC/x2N7QqEIBAAXyX29wlmINirHIeYbbVw5LLSF9K7J /0cGGYKZBTCDH1TQHCnTGmt0H4aiEtYZ1Q0VgajTaedcYrTgeLzxvy/VFVkRj/gEnZKm3iWxKr VMU6js8FaCzXEghOd7+T7u+8HaxeUyXQAAAA= To: Sebastian Reichel , Hans de Goede , Konrad Dybcio Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1707067615; l=1305; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=6wpOlSUJjb9Y16FHTSpbQGEf+52/IpYFTBtj/sIlmL8=; b=qlXa33twbUd1D3UPwT05217J51xiKeF+Tubfs/zdvjIdb5+Qn3f4HBw7oryM3d+iR4amGOwZx f5Hru5vv5r9CX4qYMVgR7XbDakPBm2YBiRVT1U4a+3phMkW0m+0iWKd X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= The original submission of the charge_behaviour property did not implement proper formatting in the default formatting handler in power_supply_sysfs.c. At that time it was not a problem because the only provider of the UAPI, thinkpad_acpi, did its own formatting. Now there is an in-tree driver, mm8013, and out-of-tree driver which use the normal power-supply properties and are affected by the wrong formatting. Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (4): power: supply: core: fix charge_behaviour formatting power: supply: test-power: implement charge_behaviour property power: supply: mm8013: implement POWER_SUPPLY_PROP_CHARGE_BEHAVIOUR_AVAILABLE power: supply: core: drop workaround for missing POWER_SUPPLY_PROP_CHARGE_BEHAVIOUR_AVAILABLE drivers/power/supply/mm8013.c | 5 +++++ drivers/power/supply/power_supply_sysfs.c | 28 ++++++++++++++++++++++++++++ drivers/power/supply/test_power.c | 10 ++++++++++ include/linux/power_supply.h | 1 + 4 files changed, 44 insertions(+) --- base-commit: 54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478 change-id: 20230929-power_supply-charge_behaviour_prop-10ccfd96a666 Best regards, -- Thomas Weißschuh