From patchwork Mon Apr 22 13:35:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kory Maincent X-Patchwork-Id: 13638532 X-Patchwork-Delegate: kuba@kernel.org Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 5702A1509AF; Mon, 22 Apr 2024 13:36:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713792971; cv=none; b=lmgMSnHOKJdHbCQlCHIxWxaVcmwhw6Zhrjc+t9YlEqkNBDGG+q4cNa0wMQONGxS7c4v1aubykC7uu7iRdzB78Mfh81XasX+EEVuZj8kZ9BYU8vm4XgRQWYkfnmHW0i1OsqihGtdFxIL80m8DWpgY4qlRG9IHgOpk8E00vWj5Q2Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713792971; c=relaxed/simple; bh=+w06Be0TAX3C5KYPO88oXI77bWnptU5o1vfpfDnP5CY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=si5GT/Zk2oPdEwPnr4Z5EEXB28mmzmPhpOk1LvqHbWDdQQc5G421y2lFyZCFh0gCpqqzKj73Q5O/3uO6YJBz+M9xrZy2L/0qdJPP2c/rlYOaLRMCtbB7JuziyXE5SyecieiwdJvRdyfzT/RwIsvwSy45R0yMhUWoLQL+THfShbc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=LkJ9hzO2; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="LkJ9hzO2" Received: by mail.gandi.net (Postfix) with ESMTPSA id 428651C000A; Mon, 22 Apr 2024 13:36:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713792961; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cNswcMmS0UYfsHKzGlg9eZWnaGdsyWARoSLz/i+rBuk=; b=LkJ9hzO2NSwzw9itaFvpwdJx+aik2qdRH/KeHDycjZDHEE2UeLUPWgZQs2cF4XAa8hQOBH mKWT00mNYNx7zge54CVDzm79Ene73xxkts3IfBBJwKU36+3y7lKPUaO2kjXZbKCkKM2cND iuP80+12/YLfjalfmYtw+vGmyWXapRgidUoJtMoZHOXZ+kNZ8sKruXRH+oOnRnTlMMwviO 7PfqKSBKoVHw0oLTA/SHdsvYW6bgTynr4djRBDUhMHMiw9LhnS07dMgboAzXk0miWs/pw9 IEU5bfsVYL0o95bECyMp47YlblmI3r/aEW+MRuNTtz6eNuRfVHDQ8UGctj9s4A== From: "Kory Maincent (Dent Project)" Date: Mon, 22 Apr 2024 15:35:47 +0200 Subject: [PATCH net-next v2 2/3] net: pse-pd: pse_core: Fix pse regulator type Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240422-fix_poe-v2-2-e58325950f07@bootlin.com> References: <20240422-fix_poe-v2-0-e58325950f07@bootlin.com> In-Reply-To: <20240422-fix_poe-v2-0-e58325950f07@bootlin.com> To: Oleksij Rempel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Kyle Swenson , Kory Maincent X-Mailer: b4 0.14-dev X-GND-Sasl: kory.maincent@bootlin.com X-Patchwork-Delegate: kuba@kernel.org From: Kory Maincent (Dent Project) Clarify PSE regulator as voltage regulator, not current. The PSE (Power Sourcing Equipment) regulator is defined as a voltage regulator, maintaining fixed voltage while accommodating varying current. Reviewed-by: Andrew Lunn Signed-off-by: Kory Maincent Acked-by: Oleksij Rempel --- drivers/net/pse-pd/pse_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/pse-pd/pse_core.c b/drivers/net/pse-pd/pse_core.c index bad29eaa4d01..795ab264eaf2 100644 --- a/drivers/net/pse-pd/pse_core.c +++ b/drivers/net/pse-pd/pse_core.c @@ -294,7 +294,7 @@ devm_pse_pi_regulator_register(struct pse_controller_dev *pcdev, */ rdesc->id = id; rdesc->name = name; - rdesc->type = REGULATOR_CURRENT; + rdesc->type = REGULATOR_VOLTAGE; rdesc->ops = &pse_pi_ops; rdesc->owner = pcdev->owner;