From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 B92B936214F for ; Thu, 20 Nov 2025 15:36:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763653012; cv=none; b=QfM3bE48wS4iSf4rBkfprlam+mnwxmjkIyaD/Q0Jnc7NrhLe9sY23vc0UXrdCMvf4RRQDV8uN6fsvZ+XydW9mfTpEmWG5GeMaIqPiwi0jBGpGPfB/vkWi7z45qnOZ5onRqEDia8gcknRbCJTOPVW7C14F+vCLsFJtPiHcXeea7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763653012; c=relaxed/simple; bh=1ql/UuDa5J03nIlCEaKKpRNUsWWo0A2ZXV1rArNVUrc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=h7XYDiQP9KfUOUTruHvuMicPcZZCoxd/5Jfk96OyAeUFC7sI2QJzfDyoB5a/vWHmoj/7sBkgkJ7Jtw/Pkf17KlLEXl56gxTX3gPMQ3m43svk5LT/NyRndhHpe8sOQzv9WKJFBaDwdnI43/ZLxJx9whH+VAuq0GrLIHAuf7cT+Dw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=fSk1CVqv; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=gjSDBbix; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="fSk1CVqv"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="gjSDBbix" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5AKDUbJX3925976 for ; Thu, 20 Nov 2025 15:36:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= e5mg+zvyUutw7UK0He3cdlBatNPtFBXUZumgkMxwM08=; b=fSk1CVqv037tFUj/ VFpZc0eF4j5CV9ylPDSR7tB9pi6ooYmcO+kByxxi8lrx+PUC1TWCcysMc99qEKgP kG3QP8gUoGZLS4MfCcoyzCvh/86JC/HxEtL9dUkxP7X7pOsRLVFqo0jpOnLtQ58J KVMYXdEr2oc/2x/7PAqFcO9mRZMqC8UjjgibvPe+jWJ6O3ZpIMpt1cSznZFcXEoN IzjHMwaJ2qU9yByCCFpxv7fy8Z3D3Bj9YRb4cEJUaXsAZypBf7UzOvjjREU5hTFH G8DGzVWENfXM5SM7UIaTs8KrTXBUwsjrxlPClvaSBhITeFTAW9iz0YdXDkqQ/ie3 cUSKuw== Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ahwd79r7w-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 20 Nov 2025 15:36:49 +0000 (GMT) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-4edaa289e0dso4474731cf.3 for ; Thu, 20 Nov 2025 07:36:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1763653009; x=1764257809; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=e5mg+zvyUutw7UK0He3cdlBatNPtFBXUZumgkMxwM08=; b=gjSDBbixlJE+DkRoAU0RU9OKWzBfsppln2fnYU7opdXx9BSsFC56b+1LNE6sl/MOny 4Gv7k7fyQKzntPrrEpmXjJM2YU4XxmMe8DTFsj6jcANtqxruHVT4EmJOd05coRtcj0pc EqS8LrloebHynDyipJL1kPnTNwSvi6F1ed8HX/OeNVNVLpCrB9rjucWkcKoLLSLdQjVJ KWzu61/drMOI9v+M3c+u0SSAceJSSOjSG+lsKAy9CNCAQHB7KZLHrH5V+Z4dgnnzo11E qWnzFqc2qc2r6bN4ULbuCbhADdeAV0IMOpi6ljCmKH/xkVlfVxVfsNrpVU4jq94SRiq0 +tsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763653009; x=1764257809; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e5mg+zvyUutw7UK0He3cdlBatNPtFBXUZumgkMxwM08=; b=iVdCMzRKa9C3giXQyuH3oHxLPbq5r1/z5WBmUi67GPWd6cv0ur2w5Ih6pSdyD66Xyo Tr8G+YoXOv0H3h5FvIY1OxCs4NmnTAPD+zeFoY8eYTDNlR04VjHZe/GNLxyX3wxqD1ae DFrP89rNDUaX2qjG+EU3l/LVRAHYdwG+9zGuv+oTbmFhhps06027KINdcGPMe9P+Tgqo 9SZW2P8jnLQfHSEcN4pnLEq7KEUyV3TVlg5Djf4ddfjAz4cmfgv91wiJVd3ZEYSyUC3w 37Qvh4b4aacsEzu7kXrRzFVzqfgrE21YiH4rYTrg+8O9tI65Va0RgMmKn9GhU2e9OAq5 7apw== X-Forwarded-Encrypted: i=1; AJvYcCUZzGAyssqL03GnYq3BXemnS/h2+ahumJ67k1rQNnqu7F7q/IelXHKhIzIX/qySFpxQoJ/9m6ozjUyLoyQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxbLLPRvG3POavXQW74eDy+APpzC/UmpGkYecKcqCFiyZF9/VdG gkCX7ZFdsOKUDTIgNg4mOz4+E/kKIDY4gc4qODKvYpYoYHaDMpabGfwUz8b1sWO1BJWAYyDlPGR ERyQUxDA8wOpYNs3AmWtn3sraopOjIPFl52hdfS7vqwjdpo+PgBJrj8p18apK5GEflGQ= X-Gm-Gg: ASbGnctOhF5t8s9AKw6fSsogeabP94hp5Py0zYob3WewchYy0xPgng0RTcNiS+euKtI m2IuyJDDm+NCeoustF603eJRfobPjBqpflK3E6BBDK389BenIxfpors0UglIddwKU8q5ga3/LgB Poosk1gX1CEcexE/tFhk5CZNgMEB4E1+hdfw23j7/xedNNtH9fnkKul+bcOrzzeGysPrd9hMbcA uwbzUVy595wLNYHQkQyLhHyv4JRcFTAXqEITgp7pZ9HY60R+F795qz0TX9fTtF/vHxGiPNAiCyR sq7v1Zvt/6ffjUSMELc1QPKmrXXqHpXbnDeb8ei4I0b9X1XupQCPMgG8ZACasxdcow5yT6QvM7T nt0JBu02mUojdfTkBSJFAbVVqoNRDm2BoSdZGS4q8jxSSw//G6B4N+/wh1LtEsYEXCO0= X-Received: by 2002:ac8:598d:0:b0:4ee:87e:dedf with SMTP id d75a77b69052e-4ee4972fffamr31809821cf.8.1763653008678; Thu, 20 Nov 2025 07:36:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IGnOTH8PO0trW0TWGHubhIETfCFdojXrEbc5Euw4j3mVrbNZgE0HWns168CycpWGBdRJs3oIw== X-Received: by 2002:ac8:598d:0:b0:4ee:87e:dedf with SMTP id d75a77b69052e-4ee4972fffamr31809301cf.8.1763653008144; Thu, 20 Nov 2025 07:36:48 -0800 (PST) Received: from [192.168.119.202] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6453642d267sm2272412a12.22.2025.11.20.07.36.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Nov 2025 07:36:47 -0800 (PST) Message-ID: <57bab427-d8fd-490d-88f6-358b79367ed1@oss.qualcomm.com> Date: Thu, 20 Nov 2025 16:36:44 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 5/6] arm64: dts: qcom: x1e80100-vivobook-s15: add charge limit nvmem To: Maud Spierings , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20251116-asus_usbc_dp-v2-0-cc8f51136c9f@hotmail.com> <20251116-asus_usbc_dp-v2-5-cc8f51136c9f@hotmail.com> <378c611b-f8c6-4f89-a3b3-6d8c22445e83@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=Jtf8bc4C c=1 sm=1 tr=0 ts=691f3591 cx=c_pps a=EVbN6Ke/fEF3bsl7X48z0g==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=69EAbJreAAAA:8 a=jBJ5OEMDLcug7rvSSDIA:9 a=QEXdDO2ut3YA:10 a=a_PwQJl-kcHnX1M80qC6:22 X-Proofpoint-ORIG-GUID: qm5mzfwhd8U51x70G3WYJTgaUcyjTsIj X-Proofpoint-GUID: qm5mzfwhd8U51x70G3WYJTgaUcyjTsIj X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTIwMDEwMyBTYWx0ZWRfX43duSYTDkoVS JJCk86o6eyXfXC0uGLUPSZT5AUAweXaF2TaktezOAlcWj1pendXScGSaSNVODSmpPG0wScVPSq8 18ITh7PsI57mp21eUC633NdUJSOJt5jufudzmC1NU3vZBisXW578s0C4ShSXrfpKMIhqBSYXOKO SnCI37ViQBj5GsvgShHUUO2+ewPSDP7jLD3YzV4npEo8hqSzrlKYKxrTvw/lpUQD8xAb3I8Qlox rUrL/SYJCt3cACMSVc7MinwzBVX60sVrKDmE0fwNLk9iFzTENnTSuAznUKj1T3LofnApfzIGdSJ w4wHsKwcX7KgsnoTvZaLqvjL30OEaN4NKiovpPm98Zd/jkxOHdVMwAuEguTy/ESDYQmFfzcS+rt viBHliylMUn16UodqZbkKGvczRNytw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-20_05,2025-11-20_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 clxscore=1015 adultscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 phishscore=0 spamscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511200103 On 11/17/25 4:44 PM, Maud Spierings wrote: > On 11/17/25 16:35, Konrad Dybcio wrote: >> On 11/17/25 3:13 PM, Maud Spierings wrote: >>> Hi Konrad, >>> >>> On 11/17/25 13:59, Konrad Dybcio wrote: >>>> On 11/16/25 11:52 AM, Maud Spierings via B4 Relay wrote: >>>>> From: Maud Spierings >>>>> >>>>> Add nvmem cells for getting charge control thresholds if they have >>>>> been set previously. >>>>> >>>>> Signed-off-by: Maud Spierings >>>>> --- >>>> >>>> Have you verified that e.g. >>>> >>>> connecting the charger >>>> setting the charge threshold >>>> rebooting to windows >>>> rebooting to windows once more for good measure >>>> rebooting to linux >>>> >>>> still has the settings persist? >>> >>> Hmm I have tried several things but I can't seem to get the values to stick. I the spmi-sdam driver is compiled in, I am not quite sure if I might be missing something. >> >> Hm, I wonder if Windows/UEFI overwrites these values or whether they're >> used by something else.. >> >> Can you set a threshold in windows and see if Linux can read back that >> data? > > the values in /sys/class/power_supply/jada-jada/ are zero when rebooting from Windows into Linux after enabling charge limitting in the Asus application. > > I remember my old vivobook (x86) also forgot its settings each boot, but given the nvmem cells that should not be happing here I guess. It is odd that there seems to be no collision between Windows and Linux. Maybe the Windows mechanism is doing the old trick of writing it in there every boot? Odd indeed.. Does it work if you reboot from Linux to Linux? Konrad