Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp215336pxb; Wed, 14 Apr 2021 13:28:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaT6Hs9BbCIYVXybrCXNv2aem6aeI3NSQQxrMeVPmrgVEdpv0bAP+1qkN2hqgvaM6K1OZT X-Received: by 2002:a17:906:4147:: with SMTP id l7mr683902ejk.17.1618432080805; Wed, 14 Apr 2021 13:28:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618432080; cv=none; d=google.com; s=arc-20160816; b=e7kUeIli543vKTiSzvpLTU5bOfq0XxkNoHFF7igJq9gKv9PgW2GFwcntRYDUU8Uqef 8s6w2y54dh8mxZQl26iW10ZPt9iBw9EEozdwiHb+PeRClsvIlnCUpo0STy2NO9E+i3Ss Xlfrvo5hZTbg4O83w25fPgGIpebbaxBu6if8Ft8ebm6jdob4EyvCp9XTyyLd3fR0tGaQ JH2GPTK+o1M2m3sz3J9e/QMme1p/XWpiRm1YAg6Ud8+6QWZGDFCvz4N2chir3zXSqVJ+ h0gCX1OeOFD3CXsm5lmB5Je7imesXmFA1xHAVy7m9AyQtYhQQMwGRSl4PC1fsfyjo1PV Jpvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VL+3Khe0pTD/l2rOSGRuJdOoL2SvZynD8rVDjpFMxG4=; b=gIF/H4xbE4Fuk3+UlhokLZp0Nvti7JBfBzf4at22PyDWOMyx8trwuoxxTlVCD/Nfc7 nhHUzh+W0D/aQ9SHZzf8k3Vpm36YuOXB71iQyuTXVB0EKhtt4KvY4zFYoeWx0ulUZEFt 3uF8cV0f6OJ6vPH5/hpGdbnKZr6r5GYTuoqLmkq7Or7A0ux35ppJY3ouXrjsgPagQ870 L7mkYryHsCnLYk6XJTPI0ne53FrF/RsA0SvaJxi5mD6EAhEOCZGtXSp/EQTedt3l9zHT +ejP9pbntgbtkavNOYcuGEIrR7Sl+NOcei+MqMJdtOHTsHdCl7J6lRD4HRpDkKu7jt8d A2wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cesnet.cz header.s=office2-2020 header.b=k+LZ1Kkb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cesnet.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si561535edz.155.2021.04.14.13.27.37; Wed, 14 Apr 2021 13:28:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cesnet.cz header.s=office2-2020 header.b=k+LZ1Kkb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cesnet.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349843AbhDNIEA (ORCPT + 99 others); Wed, 14 Apr 2021 04:04:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231574AbhDNIDU (ORCPT ); Wed, 14 Apr 2021 04:03:20 -0400 X-Greylist: delayed 103955 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 14 Apr 2021 01:02:57 PDT Received: from office2.cesnet.cz (office2.cesnet.cz [IPv6:2001:718:1:101::144:244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AB5CC061574 for ; Wed, 14 Apr 2021 01:02:53 -0700 (PDT) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by office2.cesnet.cz (Postfix) with ESMTPSA id E113440006D; Wed, 14 Apr 2021 10:02:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cesnet.cz; s=office2-2020; t=1618387370; bh=VL+3Khe0pTD/l2rOSGRuJdOoL2SvZynD8rVDjpFMxG4=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=k+LZ1KkbwicpSivb9kbGRF54c5MYAbcKOPXglu7THalVBLwgXPGnqkQnPjwLU5ETY f3DJptZHGoyL19FK/fHyhjbwgaN0ToLVVIHIP7w43lUIb8yjxq66ayZ8r8tcpEn1OS tcMJj7gJJAutzdvR4iz7xh3X69frbiVyxH2eX9N4Y/PK0Q3klZejR60PHO/pz5i7VC 7CLuo/dcXj+7Z3tXPAQn3AdFW23Qs8XbGE/AyBksJmPrgu/Q/ZBng9mByMUkSFSwCq aLMsNEe42XvX91HXPkzgJ2nY9vPshhzw0LUOn11D7PcJus7XrDBokfNx2txSHDkYX+ 5bBoIogzn6NGw== Received: by mail-pg1-f177.google.com with SMTP id q10so13837449pgj.2; Wed, 14 Apr 2021 01:02:50 -0700 (PDT) X-Gm-Message-State: AOAM530Ra2GSXAYKwP0WXVEM0nzFAgisCBrLErtAKL5hyZKXjBXeQt/z DqHNwFh7MBo0XvdWtN/aNDx2ipb9k0iJs9CEvlM= X-Received: by 2002:a63:2404:: with SMTP id k4mr1212088pgk.381.1618387369456; Wed, 14 Apr 2021 01:02:49 -0700 (PDT) MIME-Version: 1.0 References: <20210329143833.1047539-1-kubernat@cesnet.cz> <20210414001308.3434548-1-kubernat@cesnet.cz> <20210414032902.GA242591@roeck-us.net> In-Reply-To: <20210414032902.GA242591@roeck-us.net> From: =?UTF-8?B?VsOhY2xhdiBLdWJlcm7DoXQ=?= Date: Wed, 14 Apr 2021 10:02:37 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5] hwmon: Add driver for fsp-3y PSUs and PDUs To: Guenter Roeck Cc: Jean Delvare , Jonathan Corbet , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org st 14. 4. 2021 v 5:29 odes=C3=ADlatel Guenter Roeck na= psal: > > On Wed, Apr 14, 2021 at 02:13:06AM +0200, V=C3=A1clav Kubern=C3=A1t wrote= : > > This patch adds support for these devices: > > - YH-5151E - the PDU > > - YM-2151E - the PSU > > > > The device datasheet says that the devices support PMBus 1.2, but in my > > testing, a lot of the commands aren't supported and if they are, they > > sometimes behave strangely or inconsistently. For example, writes to th= e > > PAGE command requires using PEC, otherwise the write won't work and the > > page won't switch, even though, the standard says that PEC is optional. > > On the other hand, writes to SMBALERT don't require PEC. Because of > > this, the driver is mostly reverse engineered with the help of a tool > > called pmbus_peek written by David Brownell (and later adopted by my > > colleague Jan Kundr=C3=A1t). > > > > The device also has some sort of a timing issue when switching pages, > > which is explained further in the code. > > > > Because of this, the driver support is limited. It exposes only the > > values, that have been tested to work correctly. > > > > Signed-off-by: V=C3=A1clav Kubern=C3=A1t > > checkpatch says: > > WARNING: Missing or malformed SPDX-License-Identifier tag in line 1 > #108: FILE: Documentation/hwmon/fsp-3y.rst:1: > +Kernel driver fsp3y > > WARNING: line length of 137 exceeds 100 columns > #409: FILE: drivers/hwmon/pmbus/fsp-3y.c:225: > + dev_warn(&client->dev, "Device mismatch: Configured %s (%= d), detected %d\n", id->name, (int)id->driver_data, data->chip); > > Please fix and resubmit. > Done. V=C3=A1clav > Thanks, > Guenter