Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3321653pxb; Tue, 19 Jan 2021 21:28:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoFfDDuXhTh97/mp1jOGgIY0+MtAwDtYQw5sxkmMOkNwuMpW3ygehx3/0GCaf4MxU4W8kR X-Received: by 2002:a17:906:b09a:: with SMTP id x26mr5218802ejy.199.1611120495647; Tue, 19 Jan 2021 21:28:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611120495; cv=none; d=google.com; s=arc-20160816; b=xBSbsXJyvUakJ5NpCtYtGUhcnQ7SGumwARwTPgG+SHejPiIT1b9IjxjJk6SnFpB5C9 u2ameXsPskpo3WZDUIAumGTJ6KAr7Murz3M3a5gdLrxs2678RSAFtDjkFOQEO2jB3jdU 2ro0uYq03T0WloVNTKNrDxlGVZl0eZgxno5DIlIjfE0G2X95b4jct6979NxHUBlBC/pL bkD4cb3iwPrVznj3lr7WLBP5w1J+mAlDNQPxAFDFP7CyIvdN7NKpMjxAMF01hcR/dAej qesr99aGgFyeEaBfg9SwylhsVxIZ5WRLBEUzYTh0b3W9ShY/9WePs6quPdtSIrju3Giz tSCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature:dkim-signature; bh=PcJyYtudzRQd2L7XJQWnv/OgA9ryKAZhSUK7NWDCh0I=; b=oQ6RH6hDordMAKlDIgqKuF23IqJB28jeyz/Dbh9f20k62p4Cg2MWi2lNM15gR/PlCL 3zsnWYLy/tpefTg/pjPeDJB37+2fBnmiYvFq748DPPxq12mjiWbu4GinS7YRt/uz7Q6V b46e++UlbGzuibjfBs/6nt3Sj3NE0yqYnKSclRRjXpRyOIyn0DlXaVNSShbj2+d5LNvh Z4e2kqyFg6zwyyq6hKxhzSZNLAJoycsmblxi9m8Gohbi8t/icQ1O21zq/VtNnt74qlP4 Hb6hSAhFClT4MshYxEG1uR51Gki++eRjmsFGjC0uGpwLYKVkCMykl5otyCqpQY7r2csW oSqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=cWi81Ojs; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=K1fxRdrn; 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 i12si407903edn.0.2021.01.19.21.27.50; Tue, 19 Jan 2021 21:28:15 -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=pass header.i=@aj.id.au header.s=fm1 header.b=cWi81Ojs; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=K1fxRdrn; 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 S1726659AbhATFUh (ORCPT + 99 others); Wed, 20 Jan 2021 00:20:37 -0500 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:36989 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730129AbhATFRt (ORCPT ); Wed, 20 Jan 2021 00:17:49 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id CE60D580661; Wed, 20 Jan 2021 00:16:38 -0500 (EST) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Wed, 20 Jan 2021 00:16:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm1; bh=PcJyYtudzRQd2L7XJQWnv/OgA9ryKAZ hSUK7NWDCh0I=; b=cWi81OjsDif1cVZ7S8+BWWAVbWdcEHBCqCrm9Xp+QUm6HOq sfiFSIX8cm0VccSlAfNmDYFq+Szus38GXIkPPpw23Nj9hxwDfjX98BnJvPbQUQ76 /HQharncbffM3e8xIs59cu1iy407oekr3Z/5VqI+TyqgQKn27vgJVdwA5+orKIx9 63RIplLN9PRFm9RlgL0X3y5frdNsV3SzTrRYl/NR+VO4onc2q0HPL8MlV1Dp9zhU 18UU83GNxqDLq+YN1wv7pUJ/JhitHEwEqKCgTs3WS2mGOvpcKXr2mN6nJNOh2pB8 UX2ikxtDNf/1I1ypA21Jzlt2Y0F9mkQyAebYtOg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=PcJyYt udzRQd2L7XJQWnv/OgA9ryKAZhSUK7NWDCh0I=; b=K1fxRdrnOOc61H9m8BCmDb GG3R7CjsKc28FwokFYFG3UkxrEIfWUGnZSkw1mXsYHGvUtlgfnUjbY+QMm++G1rC az5n9Kd0RR4Hp7VaM1RQzlAU/tGau0jIecWKjb2JHnbxXXFv6evAucXF6BwdzvhX 4sD8uaJRIJokqY65oDA3H0Td8osqBguuo8oUOlFfhTQecrJW//3fEEJ28mGfiHF/ 8v9SkxPfaXxPpzDg4WBTonp/+uULDSgPcUEtyeMzqXdH8yELYAgNLFMsJX/GvGpE UAC2NN9KQjR2wfzHQihT+3vCqCfPQZNyAsfEtXN9wTmkHS9Ws6Zfrj5rVO1og+sQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddugdekvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehnughr vgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucggtffrrg htthgvrhhnpeehhfefkefgkeduveehffehieehudejfeejveejfedugfefuedtuedvhefh veeuffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grnhgurhgvfiesrghjrdhiugdrrghu X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id A9351A0005D; Wed, 20 Jan 2021 00:16:37 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-78-g36b56e88ef-fm-20210120.001-g36b56e88 Mime-Version: 1.0 Message-Id: <2bf67d3a-cd5f-4f9c-b043-709b18a759d5@www.fastmail.com> In-Reply-To: <20210118065059.2478078-5-troy_lee@aspeedtech.com> References: <20210118065059.2478078-1-troy_lee@aspeedtech.com> <20210118065059.2478078-5-troy_lee@aspeedtech.com> Date: Wed, 20 Jan 2021 15:46:17 +1030 From: "Andrew Jeffery" To: "Troy Lee" , openbmc@lists.ozlabs.org, "Joel Stanley" , "Philipp Zabel" , "open list" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" Cc: "Ryan Chen" , "Chia-Wei, Wang" , "Troy Lee" , "kbuild test robot" Subject: Re: [PATCH v3 4/4] hwmon: Support Aspeed AST2600 PWM/Fan tachometer Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Troy, On Mon, 18 Jan 2021, at 17:20, Troy Lee wrote: > Add Aspeed AST2600 PWM/Fan tacho driver. AST2600 has 16 PWM channel and > 16 FAN tacho channel. > > Changes since v2: > - declare local function as static function > > Changes since v1: > - fixed review comments > - fixed double-looped calculation of div_h and div_l > - moving configuration to device tree > - register hwmon driver with devm_hwmon_device_register_with_info() > > Signed-off-by: Troy Lee > Reported-by: kernel test robot > --- > drivers/hwmon/Kconfig | 10 + > drivers/hwmon/Makefile | 1 + > drivers/hwmon/aspeed2600-pwm-tacho.c | 756 +++++++++++++++++++++++++++ > 3 files changed, 767 insertions(+) > create mode 100644 drivers/hwmon/aspeed2600-pwm-tacho.c ... > diff --git a/drivers/hwmon/Makefile b/drivers/hwmon/Makefile > index 09a86c5e1d29..1a415d493ffc 100644 > --- a/drivers/hwmon/Makefile > +++ b/drivers/hwmon/Makefile > @@ -52,6 +52,7 @@ obj-$(CONFIG_SENSORS_ARM_SCPI) += scpi-hwmon.o > obj-$(CONFIG_SENSORS_AS370) += as370-hwmon.o > obj-$(CONFIG_SENSORS_ASC7621) += asc7621.o > obj-$(CONFIG_SENSORS_ASPEED) += aspeed-pwm-tacho.o > +obj-$(CONFIG_SENSORS_ASPEED2600_PWM_TACHO) += aspeed2600-pwm-tacho.o Why does this have to be a separate implementation from the existing ASPEED PWM/Tacho driver? Is there really nothing in common? Andrew