From patchwork Sat Jun 24 03:39:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Leis X-Patchwork-Id: 9807573 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 945B96032A for ; Sat, 24 Jun 2017 03:39:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89D692866F for ; Sat, 24 Jun 2017 03:39:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DF2D287DA; Sat, 24 Jun 2017 03:39:51 +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 2DDAC2866F for ; Sat, 24 Jun 2017 03:39:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754932AbdFXDjv (ORCPT ); Fri, 23 Jun 2017 23:39:51 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:34463 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753313AbdFXDju (ORCPT ); Fri, 23 Jun 2017 23:39:50 -0400 Received: by mail-pf0-f179.google.com with SMTP id s66so31338307pfs.1 for ; Fri, 23 Jun 2017 20:39:50 -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=dkkDP/Nc9/gzOI41useXFhnfOegMj1PtaDxmh3+/D6Y=; b=WhPEq4bsuIT5OT6CECzldRdpV13lBqqyyo+45svIyXOG8LhD3KI9O8Z0aAbie3kySO elFWUPnOucMF2hbXxukeJWJUMiq2vAQ+OF2rx1Njuk3rR5dZG1ZbBGtaRFgplGiMSsDd x6tovRV/sxFQ3yt52YBv0BIidiNeQd2JjEUnyItJM33ZA0l+ruSYfiJjLTIgXXhSo3jK Rk+kGvCxkS1SPeh97Pntfb5ZSyqx3muz7NUJfWuYxDSeNw9Sbbd7uScFvdVg0fVvLbas 2qS8WT2oF0qrpYk58VvU4+PDahtS/P2k09TnCHx00Qkm97+Z/Lhk7zc1TVucHyeQ++KW +XZA== 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=dkkDP/Nc9/gzOI41useXFhnfOegMj1PtaDxmh3+/D6Y=; b=fAiQQBggQ4Q9UJmrKd49FHxGNdtfJHNK6t+odDkrU2xO2AzZPLyPoYNbCeFe2lR3Fe +8ue9kDd5xoJ4blE3N+Ag88wsK4E4N4r6OIttJE9IyyuGF6ZgWo7c88k5q4ghMy66Jb1 TLcJQqptnwIeqtCUqjxRa2nUthUfe+cgCZ2KuJHXshU7MclQRCl0dX+oRJZFgD/Tm4ft S6f6C5pc8kIaUQ5/Sz6VKbY5VzQy8sMyTMGiMwo4DVmdwZhXxlWXAu/N/laOVaidPcjL f3ip3M7ZqCgEzaDbMEZJbVcL3H3sW1PkE6m1UPJlYiKglRx8ESsDxssgHwlJgRpnBpjs o/uQ== X-Gm-Message-State: AKS2vOyfcWy03qNvksHPVnZNlU0/hjl6jj+olScswayCmUHPELjytq22 QuWT6/GFkXt3e5jo X-Received: by 10.98.217.145 with SMTP id b17mr5310885pfl.70.1498275589430; Fri, 23 Jun 2017 20:39:49 -0700 (PDT) Received: from venture.svl.corp.google.com ([100.123.242.104]) by smtp.gmail.com with ESMTPSA id i63sm12388972pge.56.2017.06.23.20.39.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Jun 2017 20:39:48 -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 v3] hwmon: (aspeed-pwm-tacho) reduce fan_tach period Date: Fri, 23 Jun 2017 20:39:46 -0700 Message-Id: <20170624033946.120501-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 --- v3: Added missing change log v2: Updated commit message language --- 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 {