From patchwork Wed Jun 21 01:12:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Leis X-Patchwork-Id: 9800561 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 E7DC96038C for ; Wed, 21 Jun 2017 01:12:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1D6C2624A for ; Wed, 21 Jun 2017 01:12:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3E5D284B2; Wed, 21 Jun 2017 01:12:34 +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 618112624A for ; Wed, 21 Jun 2017 01:12:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752891AbdFUBMe (ORCPT ); Tue, 20 Jun 2017 21:12:34 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:35750 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752855AbdFUBMd (ORCPT ); Tue, 20 Jun 2017 21:12:33 -0400 Received: by mail-pg0-f44.google.com with SMTP id 132so36481495pgb.2 for ; Tue, 20 Jun 2017 18:12:33 -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=Lz8XtTORlhN5P4+zzlcjw6eELD2BbU9XsFiI5K8kQ5bZQy39Gk9H0LHmkwMVxiRys8 vcrlaeSK/vuObm2hunQ3r4y3zTo1dz1ZT8+KNhwXTU4MdpTcqllUjPU1B/aMEMpTTjPQ KxPNqEiArHwVYQMXrrOYTwBodfIvoHXSVzyEq1r70HakheK4mhnR28oQW56gVCHoB8Lz 9FAPhkmdE7v9/Ww3pLsbmgJTD3q1e3U6BSDepU87CnJSFafVh59Aw/hkf7PQPG/0vgTr iEWLUF91f1xh6IN/HulODeMgv2hegBdkyfBVt37nBlwomsdifPk9R7jCu3jetbVCiKbJ UxRw== 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=O3+u8HN83V+AFO8/1IZ0xlwTguGywqcGXGePQzldnqANfuWYtWgpUzS9vVvhZAz6aM o4w7WBM5z5ZfqfX3hBXM4lkDt1vH0cUauR33OmHSL/gcBVzBTa6MADHVhUIoepkF4rUl v1OY1PpggsAChHCqs0VO49MP2xizz2n9SGI/mLx4jd3wynbxn2f+UEpF2flWZ/cAAzV/ BW4vVtalpmm26K99kAWbAzJY4ucOzCekXZyUIWuPxeiXqYt/SZzjJhWxbeTZJo89OcXE NVBvj07j0RAHoNnLzdYgtcN9YvlfbTq/ANqLZtaLKrqAvK+1FQkXKHuCzVV588XbI/AX 19og== X-Gm-Message-State: AKS2vOzqmn45+sU6ZpWXXHs4xWcZi0DkergHPkc7KGMxAchqyxgvA3S7 BWJLodXFtMO/TO5A X-Received: by 10.99.4.6 with SMTP id 6mr33075200pge.126.1498007552914; Tue, 20 Jun 2017 18:12:32 -0700 (PDT) Received: from venture.svl.corp.google.com ([100.123.242.104]) by smtp.gmail.com with ESMTPSA id m132sm7580371pfc.76.2017.06.20.18.12.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 18:12:32 -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:12:27 -0700 Message-Id: <20170621011228.25128-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 {