Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2813983lqt; Tue, 23 Apr 2024 02:21:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfFb1/qOToRPbj6tuAtqBhTF/bap+O1f+89JumHOmeOhYRSRG0fOhpfgiQPjx53b4i99ppxH44RNQaZruj50hbROL3L20z8Kj5AG9LxQ== X-Google-Smtp-Source: AGHT+IE+c94Ji8LUxdj7FdN04iGPLQljbRKYzACzMuOEX2xI+E7FU5NwL5fJgWVckzgK10iMJVYK X-Received: by 2002:a50:9316:0:b0:56c:d35:1775 with SMTP id m22-20020a509316000000b0056c0d351775mr10877569eda.35.1713864115559; Tue, 23 Apr 2024 02:21:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713864115; cv=pass; d=google.com; s=arc-20160816; b=zKNoypR3FqRqXjyuPGeBSbkWAGpXivE6VI+rWprmpid1jsWECgN4JIxR9g5r1o/iCd cwpkGT8ep18JVQkwVPVOL4eTUOMpjlER9H0ZeYF7/Qma9h5gDRPVwQ83MHcU8YVlbCRt VsdAMyjWH/HVxs96euDB7cnNhTxX2Cscs+ePkyMLFslHmHHy7n3Aj1qaNfoZdpoNnxQ2 Kk+TCSSeUqFUrFFD5W99Gc4XgZ1g7U0D1q2aKb/8uyzRkel2qb5jClftRdDEjpIXTix1 54g0CWvg333o6HRcVY9ZMzm+cmHUTYWydwi5HxYvB+rrlas7sK+E4IyA87H0FOgA8Kk9 7UQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=sgnZ9zkLYTGa0PybM1NeuEhzLN21P/rf+/AbMdi1VXM=; fh=t+VQ2nzNTq8VvvwZRpHSDybCQSsHFRN8PihDHC0Zx1w=; b=BB4lCgUb2zHzqnIuBoQwhC0tPVCRXFM8H/fsw967wIBzecfkBm1JG6DlJ9j7S7FlCA 6LM3Z8N+3uDRGBL7gtwNUF3w89SQuYjudvevZ+PbK5Q5aeeBdMyCbzcoSIMHsD4d1+ot l6O8hNFUaEB7bDdC6+G6WCt6T+TNvrBCn8Cv40mW+0u10splqDtRWN8yknlm3ztAoA0X NT/jtNAE8YgqTre+TyQ6DJc3zaFv7tee5AGE+LjJGss5pZYSOmN7Ydx0OKWyfCzyVozN TMmFyUfxmqcBDYA7E5j1lYyYFJrcI2pXmI/aSW3c4JaRzvGfaOFAJ2hsJgxJdQJb1tWc x/qg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=CDIXZBin; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-154779-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154779-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j7-20020a508a87000000b005700c8eaf00si6847425edj.85.2024.04.23.02.21.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 02:21:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154779-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=@bootlin.com header.s=gm1 header.b=CDIXZBin; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-154779-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154779-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 476941F22191 for ; Tue, 23 Apr 2024 09:21:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 676C15FB87; Tue, 23 Apr 2024 09:21:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="CDIXZBin" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 9235C5730D; Tue, 23 Apr 2024 09:21:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713864079; cv=none; b=SvSIj7GnZMIEtM9xlqANFjqSBVS2NegvG9t4VrWjba9HwBioSkhMGgDyEf+vWZbJ9dawh+P8HMvduQx7uaHHOHJ3sEg17CoUswuUbtQ+E9tlXbQYbymRl7lMaV01CRD3Naoa1jbClwL/LiYW6swcdaEy0S4ZpW+EQfiGA8VEt6g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713864079; c=relaxed/simple; bh=+bcOG7iwFtnTz2lO3InRZDB83IfORLXmlQlsJoEGxnw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tL0eShSYHDPk4l7WQojWmex8BvkeXal0aISfMZq9I0+IUvrDx/bPFNWruF3dLlH+8/+TnX6mgDDiSO/kXq0xMWWq38axbFZzmhkCCzzGrj8Oh8AI9DXCLtGR9hUJHFCTwIGKxwGCkIUD2M2iCGqHzfxSjisZy2fZbg0EZfB3Yes= 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=CDIXZBin; arc=none smtp.client-ip=217.70.183.193 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 Received: by mail.gandi.net (Postfix) with ESMTPSA id 6947D240005; Tue, 23 Apr 2024 09:21:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713864076; 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=sgnZ9zkLYTGa0PybM1NeuEhzLN21P/rf+/AbMdi1VXM=; b=CDIXZBinKb58tvc+8OO9aLxk2NOB9NHuGFKFEBruVht5n4Zd5ygFqxwIeA1ZlbaxXcRSiz fgl+MVMMCTgVDlTUbQl1Vx0lnbgoR/ArTYS2wqDup9jTKnoaqLbQLKWeXSIPpIh0SA1r6f GAO5enmLMFj13KRJjZ00N7wnez/f1wpRpOgCETd1HYZ44GUj3e/mkZ5NTbvxCEgB4CCdSc Gz/jzACbosfAtLZsJrznT0VrSIEUhkFaK0uoyKja9HPFLOrcs22cErgnEaZPfckZFnquVI Bhs89zU+a77Hh2mdSkQ7Grhwm1J/0900hFCnot9XDzkXHLmavanUJVGBVQdh9w== From: Kory Maincent Date: Tue, 23 Apr 2024 11:21:11 +0200 Subject: [PATCH net-next v3 2/3] net: pse-pd: pse_core: Fix pse regulator type 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: 7bit Message-Id: <20240423-fix_poe-v3-2-e50f32f5fa59@bootlin.com> References: <20240423-fix_poe-v3-0-e50f32f5fa59@bootlin.com> In-Reply-To: <20240423-fix_poe-v3-0-e50f32f5fa59@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 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. Fixes: d83e13761d5b ("net: pse-pd: Use regulator framework within PSE framework") Reviewed-by: Andrew Lunn Acked-by: Oleksij Rempel Signed-off-by: Kory Maincent --- Change in v3: - Add a missing Fixes tag. --- 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; -- 2.34.1