Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7898256rwd; Tue, 20 Jun 2023 07:38:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5FHic9Xx0yQ40FEbVu7Agl5RZ0TJ5trJjGriiU1LyVxdHrezFYdMHvARbsitFUQ71YSQiZ X-Received: by 2002:a17:90b:e12:b0:24b:52cb:9a31 with SMTP id ge18-20020a17090b0e1200b0024b52cb9a31mr24273200pjb.22.1687271932398; Tue, 20 Jun 2023 07:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687271932; cv=none; d=google.com; s=arc-20160816; b=ZPkmD/jH4YBILJdygBoQ3le3mCQ4KlpGbLqS6KWKojufPh/rk9QlFWv6by2NIAdtxn tW8j1fI9OzM84VeVObkO8kjGhHVKxBEXVB9ZQRCcMDoyEs/lWjt+qlWGGBU1AWpXRi7H T0WbE6oAnOFKqZBlOnLHUJaMswh794y6g7f8j/KVTdnJTc5bixUGAvlr8Jjc+GCAK1Pr efxHrYKa4WYLmUyX875dx+3kfzGhEK8RbWcCOjrJg/cVvGubZsNdhVKe3R084NkogoTP tHpSp+JpDcZsAS5nkxC/m25E2HbC3E+gAzutdMaZ76DviG1ZwZxVl7Ph/1gkBtPu1ext x2uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RR8ZX3nyZB7Jn/qBr3nYqcN0LdZTBzC/pF8cR+f9Pio=; b=NUwMIaPJj21uRBXlS6n0oHqPZTxibQIhzruzBZJ16Y/DkD3IjUa91+C3An0XjMesYN p1mIXeqDWV0/7TWjH5Se5Bm2KCcoBFk8PlPPhFfCAh8PZBIHa3MgDOgk+dBEYKdetiWt d4DvTL6ckhSZMvcOHLmkq+SMRowgX5h9lSGuCG49xvj7XlBkl11cIHnOSxZ0c2E+UTDv SPGXUPDt90V94q5YJ96DBJhK6Ay6W/u4v1VofhlLspTkB2NWvh0v92UMEesvq6yCxQAq LOQ6z2SUDIA0Pt56dXq6EI71ak31GYKgtRscCeAn9RsJCif096fMPAlo5vKb371Ou3ci +Nkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=S2icewdk; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o7-20020a17090a3d4700b002563251c8e7si1906884pjf.128.2023.06.20.07.38.38; Tue, 20 Jun 2023 07:38:52 -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=@intel.com header.s=Intel header.b=S2icewdk; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232927AbjFTOEQ (ORCPT + 99 others); Tue, 20 Jun 2023 10:04:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232894AbjFTOEP (ORCPT ); Tue, 20 Jun 2023 10:04:15 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF2BFA4; Tue, 20 Jun 2023 07:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687269854; x=1718805854; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=ca7/yI4TqjzgeDR9K0z3MtWXnd6TYta8YQAkAFDWepg=; b=S2icewdk8aOdfcL/GVg0Xvpx8VYG9nWKfDxbmAG+HBPq99L0ncoBuZdb K/oxb/e/ojcQLKpb22aXztZhwhO21rYubkd7nuiX9G7LwaRURogj73CP1 2hQhmhTU/Kl1WoZuuOS/2pIs4ScE6nt/5KP5viyUfL/+u1y041bYfhdkP Mml9Shm45dxUEDbG8sLw47/DOTFv2C/lFmdsFOmixHgoOO3QG4LDCLPg/ eavAvk9lFYsTQRf79VYswSmHUwY8ZANfszu+Esg7p7OmbTM3+wbKczoZm U1DlQs98zeGx60x6wuh7FYHf6ivRbGJwykFnwdt2ikzTFlcJesjgTU9/y w==; X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="339478198" X-IronPort-AV: E=Sophos;i="6.00,257,1681196400"; d="scan'208";a="339478198" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 07:03:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="784078298" X-IronPort-AV: E=Sophos;i="6.00,257,1681196400"; d="scan'208";a="784078298" Received: from mylly.fi.intel.com (HELO [10.237.72.161]) ([10.237.72.161]) by fmsmga004.fm.intel.com with ESMTP; 20 Jun 2023 07:03:54 -0700 Message-ID: <32ddaa7b-53a8-d61f-d526-b545bd561337@linux.intel.com> Date: Tue, 20 Jun 2023 17:03:53 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.12.0 Subject: Re: [PATCH 1/3] counter: i8254: Introduce the Intel 8254 interface library module Content-Language: en-US To: William Breathitt Gray , Jonathan Cameron , Bartosz Golaszewski Cc: Linus Walleij , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, andy.shevchenko@gmail.com, William Breathitt Gray References: From: Jarkko Nikula In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed 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_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi On 6/8/23 17:43, William Breathitt Gray wrote: > On Sun, Apr 16, 2023 at 01:36:53PM -0400, William Breathitt Gray wrote: >> Exposes consumer library functions providing support for interfaces >> compatible with the venerable Intel 8254 Programmable Interval Timer >> (PIT). >> >> The Intel 8254 PIT first appeared in the early 1980s and was used >> initially in IBM PC compatibles. The popularity of the original Intel >> 825x family of chips led to many subsequent variants and clones of the >> interface in various chips and integrated circuits. Although still >> popular, interfaces compatible with the Intel 8254 PIT are nowdays >> typically found embedded in larger VLSI processing chips and FPGA >> components rather than as discrete ICs. >> >> A CONFIG_I8254 Kconfig option is introduced by this patch. Modules >> wanting access to these i8254 library functions should select this >> Kconfig option, and import the I8254 symbol namespace. >> >> Signed-off-by: William Breathitt Gray > > I've queued this patch to the counter-next branch of my Counter tree. > > Jonathan, Bart, I've created an immutable branch with just this patch > for you to pull which should allow you each to merge the other patch in > this patchset for your respective tree. > I noticed this patch cause in linux-next "Counter support" submenu to disappear and its menu entries are listed directly in "Device Drivers" menu. Then I wonder why the CONFIG_I8254 has the help text defined since drivers should select it. Or was the idea something like below? diff --git a/drivers/counter/Kconfig b/drivers/counter/Kconfig index bca21df51168..80631b5b0fc6 100644 --- a/drivers/counter/Kconfig +++ b/drivers/counter/Kconfig @@ -10,9 +10,10 @@ menuconfig COUNTER interface. You only need to enable this, if you also want to enable one or more of the counter device drivers below. +if COUNTER + config I8254 - tristate - select COUNTER + tristate "i8254 interface library" select REGMAP help Enables support for the i8254 interface library functions. The i8254 @@ -25,8 +26,6 @@ config I8254 If built as a module its name will be i8254. -if COUNTER - config 104_QUAD_8 tristate "ACCES 104-QUAD-8 driver" depends on (PC104 && X86) || COMPILE_TEST