Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2940489rwo; Thu, 3 Aug 2023 18:30:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvzNEd2Nu4woXt9BpneFoo4bU6UY3pr1SV9SBn7G3Z95gLi/SV+0onTN/nRiEqSlExDcTR X-Received: by 2002:aa7:cac2:0:b0:51d:87c6:bf28 with SMTP id l2-20020aa7cac2000000b0051d87c6bf28mr368357edt.3.1691112658320; Thu, 03 Aug 2023 18:30:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691112658; cv=none; d=google.com; s=arc-20160816; b=0c3B2TsnocBCKX2H7KiAvK9lGDMd0KAQK/06bDXxwu35RzFB+eMPBxdIOrHsAoCJ0X OsTt7hKSPMxv2eQ4TYwNTneKLvpINBCZ8v63O3aysYjvljH8av/l0HEwVBCX1MUmZtM+ 5UvEEEzdZTFKJZRJkI0n9cvSvzkRifE2b3D8arxBsK3bIfnd/L2YJxvEGqSj24dSeRGr YQ4qBBHS4AMwZ4o15Ak6ihmtRag9vAA3Me+0gVuFpNjVCkktcPujH1DqlN7n0cq8Q3Wk dM79RMqbDxqQJP0wuDssEaALljDTTSdT2h8N7NtgUUh9s3QPmz8Lnl+1t/P/DaJamY9I 6X0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=lwbJe4V1wQMBC7uvDgDMNcUkeqFB1Sc7a2l51PczTIY=; fh=xoN9g/F1VrVw2A3iXEuhfxpej8tUo0dsf7BwWu1FaJc=; b=qV7pK+nu9wTe0fWKRW/7Gv8OyASkhbFsiS7ss3dAkhuj3kS48Fd/56P33MMa2/zJ1/ VoDSM9Y9ewlOXSzSjRQuMXO3BVGdz5Z9Ihra7cjZGhILBLq9s6kedNMUXeRVuKN7ng5b ROv8VSHDSj6fy29DwxERnly3i0M+5aVWf11GW5H2O8bHwOcXJiItcq7sXibUyse6owLR pGf7hV2XqEAZqCjwfcWB581m4mC3FM4ai03kVMSFai5VBbEjrsi9tEvKQDpG7MVJrvE/ fEMlAi9mDLblryRo/bWQRmNdn78S3cL3WSBePPIvutl5SLK/X2tacnVXe8jyHILAPf40 DA0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=IslMSHUJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f26-20020a056402151a00b00522946b4e3asi728535edw.335.2023.08.03.18.30.34; Thu, 03 Aug 2023 18:30:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=IslMSHUJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbjHCXzn (ORCPT + 99 others); Thu, 3 Aug 2023 19:55:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbjHCXzl (ORCPT ); Thu, 3 Aug 2023 19:55:41 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E8213A9F; Thu, 3 Aug 2023 16:55:40 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-68783004143so1130547b3a.2; Thu, 03 Aug 2023 16:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691106940; x=1691711740; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=lwbJe4V1wQMBC7uvDgDMNcUkeqFB1Sc7a2l51PczTIY=; b=IslMSHUJ8aqaN0qWelUdvLlkJcMs5cNDY+JUhe63vCGkLKCHGucEaXJGWYEN86L7e+ HxHQSjMenVzQlizjkGpX7D/pTc2Qqpv9eoGW8pn17YxntGMvkCdTxePZ+g9SgpcOrXVR UpUXVDFim6GcTEKAIP+e9H8i2lRJfMGUU700Sbni48QXqCRblJ4vVvCr7d9pmrLIEKUy /kCKH2ci0jMEiPNVwj6jOJu4aKf28iChSSJ6iUFuUuN8jxD1shvo8SNfsKKhAciJiMa+ h0p60XwKQHxBmIvs+NbVgx0UztGbvp+lddUZ9XclIeku5c4k1/4d0u9QgTYUbMovr9fV TYkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691106940; x=1691711740; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lwbJe4V1wQMBC7uvDgDMNcUkeqFB1Sc7a2l51PczTIY=; b=RdHJB3WUF1Cd4orwHEDEtLXJR4FqLfbOG2qpinFApvKuqEaGiWz1/ICioX0LnlRiQj 7L/BzE9irDBOo5OBsF5+/d/2N4iWDkZu6lbYl0MLLFZ3oNzMTpxizk4nytVSzJI5/9RJ 5GI3JYQbklCDnI7upJB4ho5LyCzUyCD9dmDYAeH8hZUxcjDeTtZ0SlevXxYQOjvP6mkl UL/EmmJ8eYh27zLtkHI6QXMzy1J365WG/lRDZVyBAtU23K6nfb25LaAcRSUyMxxAvZ/W jydXN7ci9id2itzDAzfqdP7yVPbyb0QSLUztOVdOtiKK/tNR8BGGVVrXiLYdLjnyWyT4 FR6w== X-Gm-Message-State: AOJu0YyG3HN0F/jalOv2+tfgGCgaU5cZ78t8Q/EdH77gqWV2+EsDCIud Jn/Uv7HJhAzTsUr/CQYb5Ogmiaz/zwnSqw== X-Received: by 2002:a05:6a20:3204:b0:13b:7533:6839 with SMTP id hl4-20020a056a20320400b0013b75336839mr83044pzc.29.1691106939963; Thu, 03 Aug 2023 16:55:39 -0700 (PDT) Received: from taoren-fedora-PC23YAB4.thefacebook.com ([2620:10d:c090:500::5:7175]) by smtp.gmail.com with ESMTPSA id x15-20020a62fb0f000000b00682a27905b9sm395413pfm.13.2023.08.03.16.55.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 16:55:39 -0700 (PDT) From: rentao.bupt@gmail.com To: Guenter Roeck , Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, taoren@meta.com Cc: Tao Ren Subject: [PATCH] hwmon: (pmbus/bel-pfe) Enable PMBUS_SKIP_STATUS_CHECK for pfe1100 Date: Thu, 3 Aug 2023 16:55:36 -0700 Message-Id: <20230803235536.798166-1-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tao Ren Enable PMBUS_SKIP_STATUS_CHECK flag for both pfe1100 and pfe3000 because the similar communication error is observed on pfe1100 devices. Signed-off-by: Tao Ren --- drivers/hwmon/pmbus/bel-pfe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/pmbus/bel-pfe.c b/drivers/hwmon/pmbus/bel-pfe.c index fa5070ae26bc..8280d274da3f 100644 --- a/drivers/hwmon/pmbus/bel-pfe.c +++ b/drivers/hwmon/pmbus/bel-pfe.c @@ -17,12 +17,12 @@ enum chips {pfe1100, pfe3000}; /* - * Disable status check for pfe3000 devices, because some devices report + * Disable status check for pfexxxx devices, because some devices report * communication error (invalid command) for VOUT_MODE command (0x20) * although correct VOUT_MODE (0x16) is returned: it leads to incorrect * exponent in linear mode. */ -static struct pmbus_platform_data pfe3000_plat_data = { +static struct pmbus_platform_data pfe_plat_data = { .flags = PMBUS_SKIP_STATUS_CHECK, }; @@ -94,6 +94,7 @@ static int pfe_pmbus_probe(struct i2c_client *client) int model; model = (int)i2c_match_id(pfe_device_id, client)->driver_data; + client->dev.platform_data = &pfe_plat_data; /* * PFE3000-12-069RA devices may not stay in page 0 during device @@ -101,7 +102,6 @@ static int pfe_pmbus_probe(struct i2c_client *client) * So let's set the device to page 0 at the beginning. */ if (model == pfe3000) { - client->dev.platform_data = &pfe3000_plat_data; i2c_smbus_write_byte_data(client, PMBUS_PAGE, 0); } -- 2.40.1