Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4362508rwd; Sun, 4 Jun 2023 03:54:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Ve7hXzVyLueCMdZoHQ/ubLjQM1HvqD45DJy7vPnf74aMc8eCnv2uh+7vZye+L6CIjap9W X-Received: by 2002:a05:6a20:9146:b0:ff:ca91:68ee with SMTP id x6-20020a056a20914600b000ffca9168eemr3854306pzc.9.1685876056059; Sun, 04 Jun 2023 03:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685876056; cv=none; d=google.com; s=arc-20160816; b=RI/2DLbn5LRT49tSXspj6k/Px0VdgJ8v0gBF0L9PvkRffjAaZtgtU5u42YuYbsRR0t +AFTl9b/6uNlaJU8UtvkLV6vLkISesJJKuWuyfRa/vh9D7Fjniag7+fCO58jyOhvHC5t +I6R+2Kkm98zxkVrP6Oj6ICy5gnq7k/8yEeXJM+dbGB3U4G5j3LdvJoYFeZBqs8IGFhl r90ex5vcjcmBmh0wAgMOIKlbefvRc7hDvuGAct5k8CSbGzPQLBISkT5A+RmufMpwUJcS SS5V4Zd4Zw9ZJA3ib5Nmq5mKYntovXdQmnK3XYlpqAz5AocooCwQK1r8p9+DXcY8lz9s hzGA== 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:subject:cc:to:from:date :dkim-signature; bh=3lryfMvhxoJj/xU3zcNGJmhMPY+DIFQKASdFgSZZAMw=; b=eW9NWwe1o74Nzpde+nGJXbjczLFkcatA68FdXKatMLUGTd9HStEock9j3ayLeR0574 AIWUMrtOqEBaJSu+nXCLcXrd2+f8B3+HifzRFmm6DleEo+v8tazRZe+s+GFtwcEL3yAB lFGiZv0Z1OoVtPm4k4rQ/dtlPBpFxWavm7MlBPuVHd4m1IM5EAkLyBCosCJzP7qdkeH4 ptrs1VV6CQKlIIfk6p40SLdFfHJSPuyNE+aqWfrxyJYxeG/JK7GMHMFpetu4l+C714y0 0rfL0VrNX6rpUxOffUrl+a6MZMvzhb+tnW61waCyyjWtIHLxeGFuTZqPspo6/A/tkTNM zhcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C5gTqz+d; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g19-20020a633753000000b00543a6b76430si572937pgn.481.2023.06.04.03.54.02; Sun, 04 Jun 2023 03:54:16 -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=@kernel.org header.s=k20201202 header.b=C5gTqz+d; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231169AbjFDKmR (ORCPT + 99 others); Sun, 4 Jun 2023 06:42:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbjFDKmQ (ORCPT ); Sun, 4 Jun 2023 06:42:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51F18AF; Sun, 4 Jun 2023 03:42:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DA91860E76; Sun, 4 Jun 2023 10:42:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FD6CC433D2; Sun, 4 Jun 2023 10:42:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685875334; bh=va3qiMMY1sl2WXpsRKVN8nbug/kGtcX+nr7kDg+fifg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=C5gTqz+dTUiA9sbBaPB31tMjyVI3oYqkqkj2BfNug3oIDBP74S0+yRfRQKdbfY0qo 7HsOkcqTP5FMuO1Oz+8EC8PDbAQG1engZywszZHEAVKFThwvZJC5O66BVrdYTuzYO0 ELoUGLdFhxxCPUMVHJJeppa8JMIz7WizyiIq50qDqL6thy66qHU0iRgQH4JEArs05j ovb4VdsrJgSL+R/9i9rUBX0AQJYDWWeX0WtrT55oeegE+ocB97PqzhZZeVX+VKgsAh 1WEeMQMo+OdtKtSH2Rq//VxGJ4GwbuQXWiBsCUT6lfrYokJtiuIUz9SC0o3JkCMWkt 0Az57aggjpb7A== Date: Sun, 4 Jun 2023 11:42:06 +0100 From: Jonathan Cameron To: Andy Shevchenko Cc: Maksim Kiselev , linux-iio@vger.kernel.org, Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Cristian Ciocaltea , Cosmin Tanislav , Miquel Raynal , ChiaEn Wu , Arnd Bergmann , Ramona Bolboaca , Caleb Connolly , ChiYuan Huang , Ibrahim Tilki , William Breathitt Gray , Leonard =?UTF-8?B?R8O2aHJz?= , Haibo Chen , Hugo Villeneuve , Mike Looijmans , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v2 1/3] iio: adc: Add Allwinner D1/T113s/R329/T507 SoCs GPADC Message-ID: <20230604114206.789708a2@jic23-huawei> In-Reply-To: References: <20230601223104.1243871-1-bigunclemax@gmail.com> <20230601223104.1243871-2-bigunclemax@gmail.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 > > + if (!wait_for_completion_timeout(&info->completion, > > + msecs_to_jiffies(100))) { > > Dunno if it's better to have this parameter to be defined with self-explanatory > name. Probably a response to my earlier comment. I'd agree with a good name but GPADC_TIMEOUT which was the earlier naming is less use than a value and it's not obvious what that name should be. A nice datasheet reference would be good to have though. > > > + ret = -ETIMEDOUT; > > + goto err; > > + } > > > > + if (num_channels > SUN20I_GPADC_MAX_CHANNELS) { > > + dev_err(dev, "num of channel children out of range"); > > + return -EINVAL; > > + } > > Is it really critical error? Overflow of registers - so yes. I wondered this on v1 and went digging :) Now, there are no such devices known, so meh on whether check is useful. > > ...