From patchwork Wed Jun 21 01:14:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Leis X-Patchwork-Id: 9800565 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 B11B86038C for ; Wed, 21 Jun 2017 01:14:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 892042624A for ; Wed, 21 Jun 2017 01:14:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D81D26E46; Wed, 21 Jun 2017 01:14:54 +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 1ADA32624A for ; Wed, 21 Jun 2017 01:14:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752921AbdFUBOx (ORCPT ); Tue, 20 Jun 2017 21:14:53 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:33083 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752633AbdFUBOx (ORCPT ); Tue, 20 Jun 2017 21:14:53 -0400 Received: by mail-pf0-f173.google.com with SMTP id 83so77420246pfr.0 for ; Tue, 20 Jun 2017 18:14:53 -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=ko1x9KVFy0E/zLbP4IifyVcnKn61wirUVruE1enzkKM=; b=O9g2nfS/oemhY91fcFpXlzcKLm6sj8aeWIiMJEEg4FL95Wg6VRdjraVe1pLD9cN2nU XDAnYQoE4su9S2JuuLhai1Rcb/MmmTAroTrwruAUF9Z/pNTOBSpdGxbzFIlrR7qafPal lzU0etCbjT4bxKL9zTnIoG/8tChVenKppURMypoMgZIQEM61ydnIJ36XOAl6kH113pvx h/gsEsCNHgV17Uo+/ofhZ6aBvEWC/1FnfRVsky0vnZ3t3hFUk0vXDMTtlfEdd7myEFQX kr5oduzDYyyj1SLsRzlhApADzrFVS3+AQIi1E0Q6r1Fcg25na+n/KGW6B/LOvjj7//EH 30Kw== 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=ko1x9KVFy0E/zLbP4IifyVcnKn61wirUVruE1enzkKM=; b=GpQmvvxK1+Cl5Mdkw3Z9xBPMKHSqNJmpQuDWGNH8fUE4p/M5qeZkaDTX5MwFkwOs4U kvVIkqynrB50cY1Sn6dd1KfDuygXXlidaIBcbWnZgPVjM4Sh/89aIHZFJC7fmkYsvJ/B XSjscCz8JAU88gxWOP+akup9jKzvfCIM/tHKnpAsm5tHCkwjwX+bmBPws/GtJ8N3a7Kh fcHy5Q44qxDO0mYD+I0A9nz7z5q63m+3OcyMhirc3C9xoP/644kzI7UpY6PA3FET3jqX hwS4mHH8aE6+oc2miadSRD1LG4QxqwDcW/6tW/nsNWRL+SRni9O9039eqcMHZWnobmXo o8ww== X-Gm-Message-State: AKS2vOxOEOkABhOt21EwK6bH09BCU1HOWV9TIaTSlSnhOpP8aEs/woYo l0nKb8sLSx1Kj88T X-Received: by 10.84.140.3 with SMTP id 3mr39126297pls.220.1498007692636; Tue, 20 Jun 2017 18:14:52 -0700 (PDT) Received: from venture.svl.corp.google.com ([100.123.242.104]) by smtp.gmail.com with ESMTPSA id s15sm35641202pgo.48.2017.06.20.18.14.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 18:14:52 -0700 (PDT) From: Patrick Venture To: venture@google.com, joel@jms.id.au, jdelvare@suse.com, linux@roeck-us.net Cc: linux-hwmon@vger.kernel.org, raltherr@google.com, emilyshaffer@google.com, peterh@google.com Subject: [PATCH 1/2] hwmon: (aspeed-pwm-tacho) reduce fan_tach period Date: Tue, 20 Jun 2017 18:14:48 -0700 Message-Id: <20170621011448.25296-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: This was 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 {