Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp443903pxb; Sat, 20 Feb 2021 08:51:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUR2t9VX4EcShvZAcpP5hw3NJTZ+638FyWx8H0+1i2nkwPc7AeLRcpTF5EfMIaRGOq10q6 X-Received: by 2002:a17:906:3882:: with SMTP id q2mr13873036ejd.208.1613839884842; Sat, 20 Feb 2021 08:51:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613839884; cv=none; d=google.com; s=arc-20160816; b=yKEQlzj3G/DuNl/DbVmj+xDPRmwvXDUHsSacQiQAy51fl9bHFN71EkSVOLm4lWDnkr fEHqw+rJfUaQw0eEuGikpA6RBRjWc8Z8vdnwbC+KervOqkeloL3I9oATBFf+ai+zMeTV WjG2BG0sYjvqGMQeUdrDqaeYh7TJ01sm5TIKWnM0FKIbmDs5/+jq6eED7PppNsVYtdQD LyUpyPvNNI4CIuq9IIbm0ogdpy9WvIx7kBbkzcim7ZycCQ5+e6aLs6gPynA2kX77AhbY +8MmHRuss+teuDC4QRigOKhghh08HwVltlG65zBE9drayVdSE+KciBSq5xyflpiaPW92 RSrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=vNEM/tON1M86XHMaCI4bAnuASZzABcq6rX1zJ37Bdqo=; b=f2eBEnrQUw7rBUM1JrDRW7nV5W76LpSQr2S4MxhqZnWxKNYDQwy53kiPGbr3YUwUzi u6dPySR4wVCml7hppbOJO/waMOKuTfw1AWSdKxAodTXQFDv/JhOYoaEh4OqeTItZbkdp nyj1kI8fV3+Bv7Ngua0scU1USkOv9WEeceOSrOUK7s1nW7sgnseKwDJN2Mzb7ZqQFzYN wZSc110aB6ZbFH2XvcDfFkcGREw1nomDv1s1k4ufyEMxZl0GHfWP8udYsG1lVld0Sfjz IkISxMWy2HUmRJ0fX5NJO1DFb8tKrowz0n2UU60RBs/Ay6Cn90/5XyS5P07Lq4U0UrSP PvGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=IVQz5B8X; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cc10si8717957edb.153.2021.02.20.08.51.01; Sat, 20 Feb 2021 08:51:24 -0800 (PST) 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=fail header.i=@lechnology.com header.s=default header.b=IVQz5B8X; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229838AbhBTQte (ORCPT + 99 others); Sat, 20 Feb 2021 11:49:34 -0500 Received: from vern.gendns.com ([98.142.107.122]:33400 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229796AbhBTQtb (ORCPT ); Sat, 20 Feb 2021 11:49:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=vNEM/tON1M86XHMaCI4bAnuASZzABcq6rX1zJ37Bdqo=; b=IVQz5B8XsyLuXnlRA4Cbg7u2Fx 6UQnBt0S6+qDgbUG0yL6Yaj6J3LShaR5qB96dF7gO4MVOTm8CzTQ+KP0yjgdFkVkYzW9+OW0MzeLE pb7P8heKA+mtCk5DPs/AqurYPWmYMRIck7c8XYDrXrrDduV9zRiCZkf9D4E7EVWjh0xV3Oo83k5E+ 5/5zD8rV7OVG6ReTeNMO7BJnPWvIvEt16djjQ5LHwGJoiP/f2PhXTh+PkA7mYwbOZExpjyZ9RqV+H j0BMGl4lXXvNrUz0AsNx8wdASRpwJ+JQLuhIL4WCjdRR+BXjKbukrzk03/lB8UV6LnmHudX01cDYW qD7eRZzQ==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:57734 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lDVR0-0003Fq-US; Sat, 20 Feb 2021 11:48:47 -0500 Subject: Re: [PATCH v8 10/22] counter: Standardize to ERANGE for limit exceeded errors To: William Breathitt Gray , jic23@kernel.org Cc: kernel@pengutronix.de, linux-stm32@st-md-mailman.stormreply.com, a.fatoum@pengutronix.de, kamel.bouhara@bootlin.com, gwendal@chromium.org, alexandre.belloni@bootlin.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, syednwaris@gmail.com, patrick.havelange@essensium.com, fabrice.gasnier@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, o.rempel@pengutronix.de References: <7fa80c10fcd10d1d47d1bddced2b2cca3ff59ba9.1613131238.git.vilhelm.gray@gmail.com> From: David Lechner Message-ID: Date: Sat, 20 Feb 2021 10:48:45 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <7fa80c10fcd10d1d47d1bddced2b2cca3ff59ba9.1613131238.git.vilhelm.gray@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/12/21 6:13 AM, William Breathitt Gray wrote: > ERANGE is a semantically better error code to return when an argument > value falls outside the supported limit range of a device. > > Cc: Syed Nayyar Waris > Cc: Fabrice Gasnier > Cc: Maxime Coquelin > Cc: Alexandre Torgue > Signed-off-by: William Breathitt Gray > --- Reviewed-by: David Lechner (I agree with William's assessment that this use of ERANGE is consistent with other uses in the kernel.)