Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1013888lqh; Sun, 5 May 2024 11:52:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCpnLfdf2yMpmpnMKqVSvCInRsKZdo/G4/uIngtvrGIi5KS/GjDbOJP0XSzWriKdrCgIicFarQ63JNDE8zWep6sDXHr1NXttKZpMpwsw== X-Google-Smtp-Source: AGHT+IELiCLwsprx9KBkwX1tSNm0+onqRaiII9kDsoVo7pj9SsSyI0MG1Rit0MXkxfJ8r/2QM2wh X-Received: by 2002:a05:6512:32c4:b0:51f:c8f:e356 with SMTP id f4-20020a05651232c400b0051f0c8fe356mr9677711lfg.62.1714935124850; Sun, 05 May 2024 11:52:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714935124; cv=pass; d=google.com; s=arc-20160816; b=ktJOe9z5piyg1gJ4ZTh3ta1ElOC1ybG34FJoDuto+OX1AAFTOuAYGHXi6PFnpKVe0+ lUPMC70/KgW8V66F3qQ1rRSkxLDbdGc1F5eQlqngM55hoA6WqBUNMoG9vlyklkDu/bMV VBWHc2MeAmEAl7hy2JIDPGSYNMy1PiczvUSclKdwgbDJ9xbSx+DAJDcuTH9LTBm5+xat I/T0KTluPu+CEgSxQ9MwoW3/6IeQjkE5KVjioMlLHqae9p8VO4E6RrrrUKiI3eHR0/+Q WLfsniwCdg3CbRY8I2kq11jh5w3ea9jXLfXUikqZ2UoPR788SWs03XF60dvUw72jCHCW wpGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:from:to:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=YGxFQsbI+PnN98hU4cHyHP9LF765mb9ESjBSIrA+jBA=; fh=+uXn05LvBXcdzn5fTrN69DO/b4thyi/MY9PWYirrkyc=; b=YLWo2kJqGynenoWmEZcMSh9bDmixtm+850bLXeMiRw+mEhxs/dDe1B/02X6czeiiL+ R+jlzN/NC56VKUHbtaW3PLjgaE7rxhWk4JtGHgeQDLWIt+KUDz2/aGP68Uj3TjD0gwiL P15Kec/5guNW7f2td0qGVWbgqJamd4m2y8LNTzGXZf5/U2ya1yPQSrOvR9Un7/Ne8I5o lsEh85YELc7AHf9sc6/pfZ28RQyNtwmrU0XBctCkhgI0h9CFUfPyra7IhFVJeebglFfY JNcLD9lYmxTcfVee6GZpOppCGEIv/Adwg7h6G2eE4Elf6XReCm3zbI+4j95mANLSu6jT eJow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mff.cuni.cz header.s=submission header.b=QuRRHMOs; arc=pass (i=1 spf=pass spfdomain=matfyz.cz dkim=pass dkdomain=mff.cuni.cz dmarc=pass fromdomain=matfyz.cz); spf=pass (google.com: domain of linux-kernel+bounces-169100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169100-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=matfyz.cz Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i7-20020a17090639c700b00a58f9b8da59si4094866eje.359.2024.05.05.11.52.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 11:52:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@mff.cuni.cz header.s=submission header.b=QuRRHMOs; arc=pass (i=1 spf=pass spfdomain=matfyz.cz dkim=pass dkdomain=mff.cuni.cz dmarc=pass fromdomain=matfyz.cz); spf=pass (google.com: domain of linux-kernel+bounces-169100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169100-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=matfyz.cz 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8F8AC1F213C8 for ; Sun, 5 May 2024 18:52:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA38A6D1AB; Sun, 5 May 2024 18:51:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mff.cuni.cz header.i=@mff.cuni.cz header.b="QuRRHMOs" Received: from smtp1.ms.mff.cuni.cz (smtp-in1.ms.mff.cuni.cz [195.113.20.234]) (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 97C8250297; Sun, 5 May 2024 18:51:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.113.20.234 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714935114; cv=none; b=rdqXDtf4hFQo0AtkpiY392TAeVp7cdpYza1qHeSrszDTi9bnNN5JidXqV0P3y1swpoaFfp8tfjrYYalHNP83anqe9U/tnl04t6RvvNkfDPzJ+gSeK+xV2PzcEhBgUm5bzw9Qrgn2Sj2luTCoZEIHGEKaeEltLrPhby0QzYbVjp8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714935114; c=relaxed/simple; bh=XV/wisvfDecsJK1pH+e3lMIkinGg4Z0g8h7jG8NBLfw=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:To:From: References:In-Reply-To; b=Gq/E6lAwynOWbhJoQk816M7ddHngg2ZwAhbDYLvErklIEWR3RfIoNctHkqwW0l+AMW/ksGsO6YZXw/hczvKA1h41J2PduZHbe16E8soLosUgiCxYftbm622mORUl3sGDCCDZFQpNoJvtL6QsraxkETPImHNdOc4plb66eNqM/J8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=matfyz.cz; spf=pass smtp.mailfrom=matfyz.cz; dkim=pass (2048-bit key) header.d=mff.cuni.cz header.i=@mff.cuni.cz header.b=QuRRHMOs; arc=none smtp.client-ip=195.113.20.234 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=matfyz.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=matfyz.cz X-SubmittedBy: id balejk@matfyz.cz subject /postalCode=110+2000/O=Univerzita+20Karlova/street=Ovocn+5CxC3+5CxBD+20trh+20560/5/ST=Praha,+20Hlavn+5CxC3+5CxAD+20m+5CxC4+5Cx9Bsto/C=CZ/CN=Karel+20Balej/emailAddress=balejk@matfyz.cz serial F5FD910E8FE2121B897F7E55B84E351D issued by /C=NL/O=GEANT+20Vereniging/CN=GEANT+20Personal+20CA+204 auth type TLS.CUNI DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mff.cuni.cz; s=submission; t=1714935092; x=1716235092; bh=YGxFQsbI+PnN98hU4cHyHP9LF765mb9ESjBSIrA+jBA=; h=From; b=QuRRHMOskR69TFkqDXQ4lTIkl4bpFt1ARaYeCqJVTbIpnQeECM3zCn43TSNXlRMLY kdlrgioDh5gkt0j1ivNgNnwAlEPgIEjs8XEvsvBDbnKLI68na8xS+cSJy/VD04I6y6 DnZ6gGV/zJSssINrELqjKRfR4JiWBXbUsgFG/RCJn6wF4fi2kFGaxIdupOsDdkWSJ4 2ozcoGtgFqE7aeTtxs/ekOrMltieep3yFvFZVQ1e4MPEwRFm1VikvNRNHK7nRsHIvO vxzBEGmSeNL7GlHVh/mJq7acer4rusmQLnql2lswKBXyvlYK/4q9jBEvdzkr3JmRiK IyTyYsJtL5oPQ== Received: from localhost (koleje-wifi-0024.koleje.cuni.cz [78.128.191.24]) (authenticated) by smtp1.ms.mff.cuni.cz (8.16.1/8.16.1) with ESMTPS id 445IpVNr027317 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Sun, 5 May 2024 20:51:32 +0200 (CEST) (envelope-from balejk@matfyz.cz) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sun, 05 May 2024 20:52:06 +0200 Message-Id: Cc: "Lee Jones" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Dmitry Torokhov" , "Liam Girdwood" , , , , =?utf-8?q?Duje_Mihanovi=C4=87?= , <~postmarketos/upstreaming@lists.sr.ht>, Subject: Re: [PATCH v6 3/5] regulator: add regulators driver for Marvell 88PM886 PMIC To: "Mark Brown" From: "Karel Balej" References: <20240504194632.2456-1-balejk@matfyz.cz> <20240504194632.2456-4-balejk@matfyz.cz> In-Reply-To: Mark Brown, 2024-05-06T00:15:01+09:00: > On Sat, May 04, 2024 at 09:37:06PM +0200, Karel Balej wrote: > > > +static const struct regulator_ops pm886_ldo_ops =3D { > > + .list_voltage =3D regulator_list_voltage_table, > > + .map_voltage =3D regulator_map_voltage_iterate, > > + .set_voltage_sel =3D regulator_set_voltage_sel_regmap, > > + .get_voltage_sel =3D regulator_get_voltage_sel_regmap, > > + .enable =3D regulator_enable_regmap, > > + .disable =3D regulator_disable_regmap, > > + .is_enabled =3D regulator_is_enabled_regmap, > > + .get_current_limit =3D pm886_regulator_get_ilim, > > Do these regulators actually enforce this limit or is this just a spec > limit beyond which regulation may fail? If it's just a spec limit I'd > not expect this operation to be provided, it's more for a hard limit > where the regulator will detect and act on issues. I don't see an error > interrupt or anything and this would be an unusual feature for a LDO. I'm afraid I don't have the answer -- my only reference is the vendor version of the driver and I don't see anything there based on which I would be able to tell. But based on what you write, my guess would be that it's just a spec limit. Should I then drop this op and the max_uA values from all the regulators? Thank you, K. B.