From patchwork Fri Jun 23 15:05:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Leis X-Patchwork-Id: 9806761 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9AAE460349 for ; Fri, 23 Jun 2017 15:05:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 899D328429 for ; Fri, 23 Jun 2017 15:05:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A8132877A; Fri, 23 Jun 2017 15:05:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49F6028429 for ; Fri, 23 Jun 2017 15:05:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753942AbdFWPFf (ORCPT ); Fri, 23 Jun 2017 11:05:35 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:35361 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750932AbdFWPFe (ORCPT ); Fri, 23 Jun 2017 11:05:34 -0400 Received: by mail-pf0-f170.google.com with SMTP id c73so24654731pfk.2 for ; Fri, 23 Jun 2017 08:05:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=PfZtflMsmsdCsT6lquLod3sIzZTOhXrIHwnZB3ofRuE=; b=QponAZiwrTCp0F807nDuY4OCx78NL4GQan6PX9ZzTieDrRrErGadVnX8DMUpF32p37 eHL1U1LIUVRNpfaeIwEwg2iEZ2gOVSAyWMkAxzhpDsDQn7L0lQG5Fa1tJIpoO8YPYbAE HiHPVzneVHAPreLc5lYiquys6yxNkWbNRRWa10CDmMPqTAuDL3qQwnQluSJdGFNU4JIM FhfMeEkwDGizemy24re7LhvCDe5E8YlJsJw83Y0u/HgM04ZmBix6WvdD2v5zjDgnRuFo lom5qMCfq4KHw5utb+lqeTP4O4WklsUCEHl5g6fXvZV1Y5UEHgub/0ZAni5UVH32CHdV +Quw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=PfZtflMsmsdCsT6lquLod3sIzZTOhXrIHwnZB3ofRuE=; b=OdG0it3VDMug16fQlUKhLGDR7GNH0YEdQQJG+5JKNzJ6w2wa9eqfbt5MK6DJXeADWa ed1zBjbOp6V6lSEOX5bPGLo/eOh0LGdkr0fCW9uSBD1PEJArDuYFyKiuV93zMKa/YYh7 a59sIM3Uw7p+/27dDOSrW2wTIc5RBhfo2yyNeZUzM7WgebtF3LzzFUnW0f6GQOGuyePV /fSTTPuljNKuCdq42TO18c3TpbmlMMjzBOMJx1jh5nmSyn8XpiNzhiWBhmMj44zHIuFs nFy4a0avdMLiasgAidff5P2ra6xcXPH+Lnp/01G/Oaw5GybzEUhSS6UoOzufJNo98jLj hvAw== X-Gm-Message-State: AKS2vOxvY7uNsGxtdseE01iS4173Fse6SovGi3lv+72B+Pnei0dCN8Hh NeH0rfOo0IabA9sV X-Received: by 10.99.67.68 with SMTP id q65mr8610105pga.260.1498230333721; Fri, 23 Jun 2017 08:05:33 -0700 (PDT) Received: from venture.svl.corp.google.com ([100.123.242.104]) by smtp.gmail.com with ESMTPSA id t23sm9765205pgb.25.2017.06.23.08.05.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Jun 2017 08:05:32 -0700 (PDT) From: Patrick Venture To: venture@google.com, joel@jms.id.au, linux@roeck-us.net Cc: linux-hwmon@vger.kernel.org, emilyshaffer@google.com, peterh@google.com Subject: [PATCH 1/2 v2] hwmon: (aspeed-pwm-tacho) reduce fan_tach period Date: Fri, 23 Jun 2017 08:05:25 -0700 Message-Id: <20170623150525.7014-1-venture@google.com> X-Mailer: git-send-email 2.13.1.611.g7e3b11ae1-goog Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Reduce the fan_tach period such that the fan controller uses a shorter period to measure the rpm. Testing: Tested on an ast2400 sitting on a quanta-q71l. Signed-off-by: Patrick Venture --- drivers/hwmon/aspeed-pwm-tacho.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/aspeed-pwm-tacho.c b/drivers/hwmon/aspeed-pwm-tacho.c index 86e2ea8287a7..b2ab5612d8a4 100644 --- a/drivers/hwmon/aspeed-pwm-tacho.c +++ b/drivers/hwmon/aspeed-pwm-tacho.c @@ -160,7 +160,7 @@ * 11: reserved. */ #define M_TACH_MODE 0x02 /* 10b */ -#define M_TACH_UNIT 0x1000 +#define M_TACH_UNIT 0x00c0 #define INIT_FAN_CTRL 0xFF struct aspeed_pwm_tacho_data {