Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp767332rdb; Fri, 22 Dec 2023 04:41:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpEErVrJtIEd/mEBsjbaSCuPPHcWh2/jcb9o6C51dTzzbjEb06vGQ9dctNDFhb20SPJSFI X-Received: by 2002:a50:d4ce:0:b0:553:a693:af09 with SMTP id e14-20020a50d4ce000000b00553a693af09mr615771edj.7.1703248875508; Fri, 22 Dec 2023 04:41:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703248875; cv=none; d=google.com; s=arc-20160816; b=m3Ap/4t0StXabdb2Filh2sZGnPrXVxdsT+DIVzKL9dvvgg/52YTYJLaO1esn2IIElI WdmTcPoqZxurG6KL+ANFi3rybQjndLyBT7Ix1kAwGAQqybu94/jSjCikWfHegzanEPAx Ul6a9hWfYV+DJjDhA5YiHjsS91VycqoR5satvdvdcPTmWPagH2vmCGbzVRiAw+1ofxsx 6dwnTPIdX5XbSX5QfQE0lONDVwXIaPzljTNgVypcuATwV7COPTLBzTRe7LDVCPZnhJU/ Bo/B2M9pk6lOzU2IrF98JTrWqpCjSRXsOxN4KaEtWReZtOSYjexz2P8kGhJ1RRENaY/B 18aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+NxAeOpW9J7hsQAlbobO/NRolKrbhrU2anOFPbsTGV0=; fh=4lHQrCDSzeqGL2ygcZFksd1Xq9Utw0/8RVWCYe7yYKA=; b=SvNm7DlfLS9GUVv8QacznSuLBOylLXxT9OGxe62/45ZAA89aXUm1XRDyYrDCxAR+g8 TAM7NWxnLubgcznpkByU7ZcwtcZByCjCthfmgdDq2bDV1r/UbCiJP/rX+RpxBxmNeXo4 gMIgSx4nsceUEybL+b9Z7WAdp5hWiViawqU4vi5GKWv6FerDIA9jcFKr1FP0JHI+EK+i JmKg9W3OljE7Z6Y9WbXGEO8Wt2MS3kG4uA/FMeNWec64pTFW9nUyryh5aYBSRZIzRoCV npXlIHdD5c2wurz85MsTVsrvj0s/D1iJcjQvLvuU0XQWg7E9GnDIQVb3kaxm7xfURGUF +C8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cy1EqYpX; spf=pass (google.com: domain of linux-kernel+bounces-9716-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9716-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cy13-20020a0564021c8d00b00552f5be02e2si1742694edb.231.2023.12.22.04.41.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 04:41:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9716-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cy1EqYpX; spf=pass (google.com: domain of linux-kernel+bounces-9716-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9716-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5829B1F22269 for ; Fri, 22 Dec 2023 12:41:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09DF21804E; Fri, 22 Dec 2023 12:41:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cy1EqYpX" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25B8718624; Fri, 22 Dec 2023 12:41:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703248865; x=1734784865; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=7ZJveX1s7cgliTk+K43ko5ol4fPOQ4lq4WTKaVnm9yM=; b=cy1EqYpXh0BNY2Z+mDv0C5Psx864p6UHoA9Y/3kHPKowy2M47zn020SI O/AbkzDvEH9Eg62h71gCWFD1jGYojjMct+rm2R/dV1dow0N4VyhjSQFD7 I+Z4EsLKSHT+5PVYMK2aWLXs+q5i2PpzokRMAdbo1T/tTr4116TRArknO Ty9XoCXXBI7Ux9+v6Ui2qWtJxXK76nuKdQD8XJXTTq2WNz1Lj9fIa57+T qmolHMiHQIHSFiNjW+oz0MWXGPigdsuaJdkHClN2DqfzGuCEy87HlnwNV 0aPMr0t0WRtbDlS4ky7cUM78bmBdIoYyKedrPntAFYm0OPpF4EYpDIvWC w==; X-IronPort-AV: E=McAfee;i="6600,9927,10931"; a="3196494" X-IronPort-AV: E=Sophos;i="6.04,296,1695711600"; d="scan'208";a="3196494" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2023 04:41:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10931"; a="950265804" X-IronPort-AV: E=Sophos;i="6.04,296,1695711600"; d="scan'208";a="950265804" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2023 04:41:02 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rGepo-0000000891T-0eik; Fri, 22 Dec 2023 14:41:00 +0200 Date: Fri, 22 Dec 2023 14:40:59 +0200 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Kent Gibson , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij Subject: Re: [PATCH v1 1/1] gpiolib: cdev: Split line_get_debounce_period() and use Message-ID: References: <20231221175527.2814506-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, Dec 22, 2023 at 09:58:48AM +0100, Bartosz Golaszewski wrote: > On Fri, Dec 22, 2023 at 2:12 AM Kent Gibson wrote: > > > > On Thu, Dec 21, 2023 at 07:55:27PM +0200, Andy Shevchenko wrote: > > > Instead of repeating the same code and reduce possible miss > > > of READ_ONCE(), split line_get_debounce_period() heler out > > > and use in the existing cases. > > > > > > > helper > > > > > > Not a fan of this change. > > > > Yeah, sorry but NAK. READ_ONCE() is well known and tells you what the > code does. Arbitrary line_get_debounce_period() makes me have to look > it up. We have setter, but not getter. It looks confusing, more over, the setter makes much more than just set. Hence another way to solve this is make clear (by changing name) that the setter is not _just_ a setter. -- With Best Regards, Andy Shevchenko