Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1199479rdh; Fri, 27 Oct 2023 07:27:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdzcQ4BQYUuoYXwmdG4NUAmLO+YrQW+DTIwsnUKwkvghsU5OG+rv4imIZV6budS1nKnCp8 X-Received: by 2002:a05:6870:1712:b0:1e9:8a35:863a with SMTP id h18-20020a056870171200b001e98a35863amr3560926oae.20.1698416852711; Fri, 27 Oct 2023 07:27:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698416852; cv=none; d=google.com; s=arc-20160816; b=zEuomNZSEJZzF1mfGakXYhPUvOl8h9hpz50VYJNmOdUraJH6HoBfGDpsTMgMpEOEGR 1kpBIKqZVtuCWjpUF0jLgOhiXm3rs/pbBPkg6L9kSKfYzVYJMb2v6XO1omoNBxSpnEv7 W508vasCtaqzOynWlv0HTJUlpDKjoUUOERZ47FBWUueSm4ya+ETORkBAdFRVGbhwrEe5 xRbsCTCZsdvTQG0AFYoQSb2KM0h4BrDOYxNKu2SA/OiMxjmGcVJPaMlZpe0MxQ+K1Asl 2d7c8wJwcPqzXI104rORUdo/UPhKx2gX1IqnxGQziZdjn9Q79C9p5l2puFfRIwAf5dCC 0ZhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=RJY4zviZdS18dBXZKEqxAy8PoPYbPPOJLPfQ223Zydg=; fh=Fr4H3jfUJVNnQ3QkO+7jL0YOOiWBljIBi1Lyf4BR6P4=; b=q+nphPxFTyQAUBj5im5zPGSp1DkHI5ulKOREH1xPFAT/0PMacQ7W1vcCmXBSwDiF+C ORI7jvEGJpp4gSu2ZFLngU2wg5ncrR83KcZU2T6NcPHpTm8k5VokFPUboYXKJzwfVL9t KV9icMqDpildTrkf/IP9/p2UEHV+8npE2gNIQNDvmJbrRgH684hclTMkssiaoMD9uS8I 6MLSCGHXe8SxhvaRgKXSynmEy+JDdxw85xiN9VFL4r+TUMlNZWC2x+VMCrMBvDYe/Mwz VtCCxBfSSYFf+ZrSo4Qf0EWKF+tlpwYe37Vq94Gxm8crJtzJjp4O67mv/KuJg5/Qjnlw Ku/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jpq3dKDl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id x3-20020a258583000000b00da0c978c9ecsi2742306ybk.567.2023.10.27.07.27.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:27:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jpq3dKDl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 648AD82F7B88; Fri, 27 Oct 2023 07:27:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346012AbjJ0O1R (ORCPT + 99 others); Fri, 27 Oct 2023 10:27:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345983AbjJ0O1P (ORCPT ); Fri, 27 Oct 2023 10:27:15 -0400 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A73A191; Fri, 27 Oct 2023 07:27:13 -0700 (PDT) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-5a87ac9d245so16045997b3.3; Fri, 27 Oct 2023 07:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698416832; x=1699021632; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=RJY4zviZdS18dBXZKEqxAy8PoPYbPPOJLPfQ223Zydg=; b=Jpq3dKDlCrNa66SAkczqbKuh9I1Lo62Xv7K+M1sbtail30TgF6+sgI4nab69y+pNDP 0xzwLDFwAdKj2gQ9DS2JYRE6aReZQTRbbhdMr23DESDS04oZxrqPTkSl8wPOw2xGSOqh ZNlcUDAr6wx58G2ZaTfYQ3GBW3TjyYgWKby+UK9msNdNlG4Q8sI/7rvZFmMW3WW5VCz4 G22Dxp9SYhID1hFO/8TiUCe7gr4gXceYILPRvp0ra9VgCn1ihUk1PanFvN4GnzaBli68 HqfZmgpj7I6AhFuNbUD/Mk50OvCqx6r/uJwjYhn3s1p8ZocYUVsYzbzRFRtfeBW+Og62 At8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698416832; x=1699021632; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RJY4zviZdS18dBXZKEqxAy8PoPYbPPOJLPfQ223Zydg=; b=TJ5LCgqAGaNLglqdylzbqhuzp3IK5jZyBuUxPXyoKUjx++KCe6XxE7fhoVSywzLnT4 PE1KopoXwy8A+K5PMQKco1hNDWDsSXSllGmwjl8fvs/zogeynIITGZ1P9YyMCThTT9e+ oQMFH8066i2hrc02vv2QPhHql046UOIxDjNcouR++0t953w2YXCBsPPQryc3tgiWY5l+ V52/NZJRM26/zZNE0kHwZwSJE9EtMyY1qZMN/MyXXCuHypCny3W45wllAtwTDmfFjwod biIRwRV76ZKliGAsWIpGyqiVjeU048yc9+mPFvPcsLdoDPvIuOZIBVgo8aFS1u/x0GXd ebBw== X-Gm-Message-State: AOJu0YzR/NGyQVgxS6j5w7z6pZ1ass+0U2Vp7wwapkJ6ThJPH89t59aa gXFzbpTktohbnEXKlo0bcac= X-Received: by 2002:a81:ae09:0:b0:5a7:dad7:61dd with SMTP id m9-20020a81ae09000000b005a7dad761ddmr2897846ywh.20.1698416832444; Fri, 27 Oct 2023 07:27:12 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id n81-20020a817254000000b005a4da74b869sm296530ywc.139.2023.10.27.07.27.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:27:12 -0700 (PDT) Sender: Guenter Roeck Date: Fri, 27 Oct 2023 07:27:10 -0700 From: Guenter Roeck To: Naresh Solanki Cc: Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] hwmon: (pmbus/mp2975) Move PGOOD fix Message-ID: References: <20231027103352.918895-1-naresh.solanki@9elements.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231027103352.918895-1-naresh.solanki@9elements.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 27 Oct 2023 07:27:29 -0700 (PDT) On Fri, Oct 27, 2023 at 10:33:52AM +0000, Naresh Solanki wrote: > The PGOOD fix was intended for MP2973 & MP2971 & not for MP2975. > > Signed-off-by: Naresh Solanki Good catch. Applied. Thanks, Guenter > --- > drivers/hwmon/pmbus/mp2975.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > > base-commit: 5421af83a43bdcb646564fec238253d11009ad3f > > diff --git a/drivers/hwmon/pmbus/mp2975.c b/drivers/hwmon/pmbus/mp2975.c > index 26ba50633100..b9bb469e2d8f 100644 > --- a/drivers/hwmon/pmbus/mp2975.c > +++ b/drivers/hwmon/pmbus/mp2975.c > @@ -297,6 +297,11 @@ static int mp2973_read_word_data(struct i2c_client *client, int page, > int ret; > > switch (reg) { > + case PMBUS_STATUS_WORD: > + /* MP2973 & MP2971 return PGOOD instead of PB_STATUS_POWER_GOOD_N. */ > + ret = pmbus_read_word_data(client, page, phase, reg); > + ret ^= PB_STATUS_POWER_GOOD_N; > + break; > case PMBUS_OT_FAULT_LIMIT: > ret = mp2975_read_word_helper(client, page, phase, reg, > GENMASK(7, 0)); > @@ -380,11 +385,6 @@ static int mp2975_read_word_data(struct i2c_client *client, int page, > int ret; > > switch (reg) { > - case PMBUS_STATUS_WORD: > - /* MP2973 & MP2971 return PGOOD instead of PB_STATUS_POWER_GOOD_N. */ > - ret = pmbus_read_word_data(client, page, phase, reg); > - ret ^= PB_STATUS_POWER_GOOD_N; > - break; > case PMBUS_OT_FAULT_LIMIT: > ret = mp2975_read_word_helper(client, page, phase, reg, > GENMASK(7, 0));