From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 929E1C433B4 for ; Wed, 5 May 2021 18:33:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 58360613C9 for ; Wed, 5 May 2021 18:33:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234921AbhEESd6 (ORCPT ); Wed, 5 May 2021 14:33:58 -0400 Received: from smtp.outgoing.loopia.se ([93.188.3.37]:14904 "EHLO smtp.outgoing.loopia.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234887AbhEESd5 (ORCPT ); Wed, 5 May 2021 14:33:57 -0400 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 4D3391A99432 for ; Wed, 5 May 2021 20:32:56 +0200 (CEST) Received: from s499.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 3CF5B2E2C5C4; Wed, 5 May 2021 20:32:56 +0200 (CEST) Received: from s475.loopia.se (unknown [172.22.191.6]) by s499.loopia.se (Postfix) with ESMTP id 378021CE6247; Wed, 5 May 2021 20:32:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se Received: from s645.loopia.se ([172.22.191.6]) by s475.loopia.se (s475.loopia.se [172.22.190.15]) (amavisd-new, port 10024) with LMTP id VRGAQ1D_P96G; Wed, 5 May 2021 20:32:55 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: carl@hgsystem.se X-Loopia-Originating-IP: 98.128.181.169 Received: from localhost.localdomain (h-98-128-181-169.NA.cust.bahnhof.se [98.128.181.169]) (Authenticated sender: carl@hgsystem.se) by s645.loopia.se (Postfix) with ESMTPSA id 2C872157A02D; Wed, 5 May 2021 20:32:55 +0200 (CEST) From: Erik Rosen To: Jean Delvare , Guenter Roeck , Jonathan Corbet , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Erik Rosen Subject: [PATCH 0/3] hwmon: (pmbus) Add support for additional Flex BMR converters to the pmbus driver Date: Wed, 5 May 2021 20:32:45 +0200 Message-Id: <20210505183248.57082-1-erik.rosen@metormote.com> X-Mailer: git-send-email 2.11.0 (Apple Git-81) Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Some Flex PMBus converters (BMR310, BMR458, BMR80, BMR490 and BMR491) end up in an undefined state when trying to read an register that does not exist in the chip. This causes the following chip access to also fail even if it is a valid register read. This will mess up the pmbus driver auto-detection process. One way to reset the pmbus state machine to a known state is to read a register that is known to exist. This read will fail but will also reset the chip into a known state. For such chips we suggest adding a new pmbus flag: PMBUS_READ_STATUS_AFTER_FAILED_CHECK By setting this flag the driver will try to read the STATUS register after each failed register check. This read may fail, but it will put the chip into a known state so that the auto-detection process can proceed correctly. Add support for Flex BMR310, BMR456, BMR457, BMR458, BMR480, BMR490, BMR491 and BMR492 to the pmbus driver This patch has been tested with Flex BMR310, BMR456, BMR457, BMR458, BMR480, BMR490, BMR491 and BMR492 converter modules Erik Rosen (3): Add new flag PMBUS_READ_STATUS_AFTER_FAILED_CHECK Add documentation for new flags Add support for Flex BMR310, BMR456, BMR457, BMR458, BMR480, BMR490, BMR491 and BMR492 to the pmbus driver Documentation/hwmon/pmbus-core.rst | 24 ++++++++++++++++++++++-- Documentation/hwmon/pmbus.rst | 11 +++++++---- drivers/hwmon/pmbus/Kconfig | 7 ++++--- drivers/hwmon/pmbus/pmbus.c | 24 ++++++++++++++++++++++-- drivers/hwmon/pmbus/pmbus_core.c | 2 ++ include/linux/pmbus.h | 13 +++++++++++++ 6 files changed, 70 insertions(+), 11 deletions(-) base-commit: 1e28eed17697bcf343c6743f0028cc3b5dd88bf0 -- 2.20.1