From patchwork Thu Sep 21 14:20:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antoniu Miclaus X-Patchwork-Id: 142843 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5071617vqi; Thu, 21 Sep 2023 12:02:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9BAuSlp9JnS4E7DQo9eLQLGvi8p8gwBlBDyvER9TKBEvGgtv9SaNZB97aqqP8wcAFWgVR X-Received: by 2002:a05:6358:9313:b0:130:e0a9:a7b4 with SMTP id x19-20020a056358931300b00130e0a9a7b4mr6867257rwa.13.1695322964323; Thu, 21 Sep 2023 12:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695322964; cv=none; d=google.com; s=arc-20160816; b=Nau4a0e63jWpKLEUQVCN46UXSEo/EiEhRXEB01GEKxG3enmyOcKOVkBOiFPtte/vYI I7mlQV9c1AqYgGj9tZbIiD8OjT/+UcpAE9PMTtdvkCAqmnr8CMkq+fcGcjDLrzdOu3F2 FD4Uy+JgwKsMpPHdY0sYcwoL4jW7UFLDJdSsfxqkWQOEqQxGK+fU4tCbTpdEFMNlVBIv nA+zuR++7UVCt4blyFmSt/Cs80Kky1yZqh/KAr38DT9wxXvbxmGXpG4nqIrus33/QjY6 VciHQao7+D+8eDOU86Smk7OQ+2oiNB/CC1Bc29dfE4OtBIcJXGo+tLM/oXeZAIqYVfXp kALg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=otxHTo0e+DBuNg9WCaAO8lnsi3hrbbDBQNO2Gbo1BqY=; fh=sA6c4ifE2iquZBa0xFbXVl7qcdCsrwxqtf91K1NtIGA=; b=qR7v6D3zGbThUilAjhdm+ZKK5f2Bap41gm4TMzFKF5FKYM0zm+OziBpYEJDWMlxQ5v Pkj5nnIJwz6PJViL6y+BUkIToksKlW60xmLG0eWv8ITPYaifDESJiNMy0t4TLi1zyN0X ofEF88O4Nvgelhcc5e5bKotREMuk1sY8iQc1ZNU0uFTgQUTYlM4a9ES9aJTIsxzKVBnf uUH2cX0Yb07KwdeGrOIsUDL/HWeJ+S12wI8F3g0EvUnIZKniVgdHLvn+QHodX+MbCQD9 qXSHhJGnXAaZoWbxaEjooo4GdS98ABb3g18kiSKJcZTolrEs6vL/Bzjq2SJMchrHiE3C ef8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id y72-20020a638a4b000000b00563f627f2easi2004843pgd.122.2023.09.21.12.02.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 12:02:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 017BC802A039; Thu, 21 Sep 2023 11:58:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230503AbjIUS6H (ORCPT + 28 others); Thu, 21 Sep 2023 14:58:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230001AbjIUS5x (ORCPT ); Thu, 21 Sep 2023 14:57:53 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 685A5BF111; Thu, 21 Sep 2023 11:51:43 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38LE1Lp5004679; Thu, 21 Sep 2023 10:20:59 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3t8dv9u6rt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Sep 2023 10:20:59 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 38LEKwed016548 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 21 Sep 2023 10:20:58 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 21 Sep 2023 10:20:57 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 21 Sep 2023 10:20:57 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Thu, 21 Sep 2023 10:20:57 -0400 Received: from amiclaus-VirtualBox.ad.analog.com (AMICLAUS-L02.ad.analog.com [10.48.65.194]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 38LEKdFW020713; Thu, 21 Sep 2023 10:20:48 -0400 From: Antoniu Miclaus To: Daniel Matyas , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , CC: Antoniu Miclaus Subject: [PATCH 2/2] drivers: hwmon: max31827: handle vdd regulator Date: Thu, 21 Sep 2023 17:20:04 +0300 Message-ID: <20230921142005.102263-2-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230921142005.102263-1-antoniu.miclaus@analog.com> References: <20230921142005.102263-1-antoniu.miclaus@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: sfXD8LUFLHlsKfR9WXR6hCoil21wjcZd X-Proofpoint-GUID: sfXD8LUFLHlsKfR9WXR6hCoil21wjcZd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-21_13,2023-09-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=704 bulkscore=0 adultscore=0 mlxscore=0 malwarescore=0 phishscore=0 priorityscore=1501 clxscore=1015 spamscore=0 impostorscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2309210123 X-Spam-Status: No, score=-0.8 required=5.0 tests=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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 21 Sep 2023 11:58:26 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777674972506293391 X-GMAIL-MSGID: 1777674972506293391 Add missing implementation for the max31827 supply regulator. This is a hardware required property that is not handled. Signed-off-by: Antoniu Miclaus --- drivers/hwmon/max31827.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/hwmon/max31827.c b/drivers/hwmon/max31827.c index 602f4e4f81ff..43709f47f518 100644 --- a/drivers/hwmon/max31827.c +++ b/drivers/hwmon/max31827.c @@ -427,6 +427,11 @@ static int max31827_probe(struct i2c_client *client) return dev_err_probe(dev, PTR_ERR(st->regmap), "Failed to allocate regmap.\n"); + err = devm_regulator_get_enable(dev, "vdd"); + if (err) + return dev_err_probe(dev, err, + "failed to enable vdd regulator\n"); + err = max31827_init_client(st); if (err) return err;