Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp259398rdb; Tue, 31 Oct 2023 06:55:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8js7CIEFFBe6ijDEekJNF63DjubTfYFncyQMJ1yZ9anrMn/P+eze6FzBoGZOFWhS7n32h X-Received: by 2002:a17:90a:af84:b0:27d:6dd:fb7d with SMTP id w4-20020a17090aaf8400b0027d06ddfb7dmr12446318pjq.17.1698760509324; Tue, 31 Oct 2023 06:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698760509; cv=none; d=google.com; s=arc-20160816; b=PyIhH1+RvTw/kjtbrb+e5npnplUL8JAvlU4G99zjJpg/glSkhtC+NbyXDV3KuoYBZA 21BrFrUsZkQy/4ksO1oOqpOYVW8NEMgotLgX6j0XgAdkr9DNkbq3oQ17SKl8ZDf+c1KQ 9no7zXStuqETnKlqV3qGcQk8/b4T+FS+cpdYscG0AjSK/oUtDmWc22q4Wd/a4D0Fu8KA pm0X9WEF+rJNCbsJYRH110PSrAS5UoRZcarS3SkeCY6VgWpNStPtvL5WM65Y4xGO+vbr BJypurD+SyWLrSY3HYOzoMmNRFAdWCAlKebPAen4UgLy435II9j3Q6e6FMx3oPJaGpfN yaeQ== 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:dkim-signature; bh=5rUHRQv73AIrtd35QNYvGvh4LBovqhhzdBrWZKCti2w=; fh=mLdoErDjVYI94AFHGA1BBxK3GCph2Kw34oOW4N+pigQ=; b=uNPkuAmPU+UlSDlZjPKC1n0izpnHMktN35j2YFQSaUR2nWV/cY6xagTX/vFgagvux2 8oB1PZq2mOLfsR2KDofyQicnVQ976DmVoA2WfV2PKHfXXCH5ZyoS69YAXASB1ue4hWbT BqCrQss2kKjXTwpm1ALLNGKrAyRE7KSJ+lc3FaH0IWdWyPlL0ImwN7kP+HeEkUjmJZvw FJknBRk1NuIsE4TfjyhDsesogtypINGdl0kTiD06MBDDFT+HNFsBxdfB59euNGUHDgOE sxC3OLX1/o4L4oaDeIcFQa2rKGEoqwtAOHzrIjuFjkJlbkhyj/KHTK0HryB/cA3CnZH0 WyjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=iwqxiKdp; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id lk4-20020a17090b33c400b00276671731e3si1020289pjb.136.2023.10.31.06.55.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 06:55:09 -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=@bootlin.com header.s=gm1 header.b=iwqxiKdp; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 3801680216A7; Tue, 31 Oct 2023 06:55:04 -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 S1344703AbjJaNyj (ORCPT + 99 others); Tue, 31 Oct 2023 09:54:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344691AbjJaNyh (ORCPT ); Tue, 31 Oct 2023 09:54:37 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F4AFE6; Tue, 31 Oct 2023 06:54:34 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 924EBE0007; Tue, 31 Oct 2023 13:54:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1698760473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5rUHRQv73AIrtd35QNYvGvh4LBovqhhzdBrWZKCti2w=; b=iwqxiKdpn7JuId1ORGHScXnbczVUO2o7i2nH+wlQYZ5ECVmdGhJMvkx9PvZl66fr6cBFM2 JLAM1dwn6CiUQq2sMi+/GMGQupOb2u/xld0QYEd14ieHFXhwbRbaFn7DL4DfffbQS7t47+ pBDQTBQ3LDkApcVP3soGkniQ52E/lyFX8RmLXT3kL2Rmc2kvZCsMY/n/ttLQ+wx5NI81k2 JM7UyqOX0wrMOwGZF5HpMxvpgGc97YdW+4go1TrghY7NvDSwQVZpM+vGI32m12uWVVCWTh NEhJV6+/M8rs/hq513YGbNjA8bH73ZWAKhKHzeoeT60t6gjroEdfpqW2dYkytg== Date: Tue, 31 Oct 2023 14:54:32 +0100 From: Alexandre Belloni To: "Miclaus, Antoniu" Cc: Guenter Roeck , Alessandro Zummo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jean Delvare , "linux-rtc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hwmon@vger.kernel.org" Subject: Re: [PATCH 2/2] drivers: rtc: max31335: initial commit Message-ID: <202310311354329a21a9d0@mail.local> References: <20231030115016.97823-1-antoniu.miclaus@analog.com> <20231030115016.97823-3-antoniu.miclaus@analog.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-GND-Sasl: alexandre.belloni@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Tue, 31 Oct 2023 06:55:04 -0700 (PDT) On 31/10/2023 11:23:49+0000, Miclaus, Antoniu wrote: > > > + if (status != MAX31335_STATUS1_DEFAULT) > > > + dev_err_probe(&client->dev, -EINVAL, > > > + "Unable to read from device.\n"); > > > + > > > > That is misleading. The device returned an unexpected status. > > I don't know if this really reflects a problem, but it is not > > "Unable to read from device". > > > > Since the device lacks an ID register, I found this as a suitable > replacement for checking that the communication with the > device actually works before the probe function finishes > successfully. > > I will be more specific in the dev_err_probe message in the > upcoming patch version. > What if this is a transient bus error and the device is actually present and working? don't like this kind of check, they are not usually useful. -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com