From patchwork Sat Mar 11 15:17:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 9618787 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 E6BFD602C2 for ; Sat, 11 Mar 2017 15:17:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C728C286F7 for ; Sat, 11 Mar 2017 15:17:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A85362870E; Sat, 11 Mar 2017 15:17:32 +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_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 2A12B286F7 for ; Sat, 11 Mar 2017 15:17:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755549AbdCKPRc (ORCPT ); Sat, 11 Mar 2017 10:17:32 -0500 Received: from bh-25.webhostbox.net ([208.91.199.152]:42849 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750954AbdCKPRb (ORCPT ); Sat, 11 Mar 2017 10:17:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=q1mvtLu2Bi4k/9sYfP4xnIx1MeffOPu8EqVTADCAhUU=; b=aKeLKUBmuOR3iYTGPBPIPvq5a+ exctXYWFBgOR3F/yyXWyYjlz1RR6vOlzaySzEEwJHOvC6c8DBNhmXZvza7Y9WJpOrjhY0sYnuMRx6 zsMA+pIlx15v0borRGT3v9le9fWiFMdIH89kRnyW8ePmcx8/Jovzq7CVw5JVhGXmFtWQE6H1V1xzA X/Aq5rfI5+G3rzJCFuOfB1uJjl+mX+juZLTnAYVq7QHbYczuSgCcfn2wrd+Ti70d/WrQ0/FpyxMe2 HIcnf6fK3L98fdelu8z089vwr284W9MWZOrA89pIr9TtwknR+Ji++156P91J7uwXtesnVDNrbOxJC rUBLxCRA==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:59040 helo=localhost) by bh-25.webhostbox.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1cmilu-002uEp-Ei; Sat, 11 Mar 2017 15:17:31 +0000 From: Guenter Roeck To: Hardware Monitoring Cc: Jean Delvare , Guenter Roeck Subject: [PATCH] hwmon: (it87) Fix feature mask for IT8792E (IT8733E) Date: Sat, 11 Mar 2017 07:17:26 -0800 Message-Id: <1489245446-6352-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.7.4 X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: 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 The chip features match those of IT8790E. Most important is the ADC resolution, which is 12 mV, not 10.9 mV. It also uses the 'new' set of registers for PECI control, and has a second PWM frequency register. Signed-off-by: Guenter Roeck --- drivers/hwmon/it87.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index efb01c247e2d..3e57a6120551 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c @@ -428,11 +428,10 @@ static const struct it87_devices it87_devices[] = { [it8792] = { .name = "it8792", .suffix = "E", - .features = FEAT_NEWER_AUTOPWM | FEAT_16BIT_FANS - | FEAT_TEMP_OFFSET | FEAT_TEMP_OLD_PECI | FEAT_TEMP_PECI - | FEAT_10_9MV_ADC | FEAT_IN7_INTERNAL, + .features = FEAT_NEWER_AUTOPWM | FEAT_12MV_ADC | FEAT_16BIT_FANS + | FEAT_TEMP_OFFSET | FEAT_TEMP_PECI | FEAT_IN7_INTERNAL + | FEAT_PWM_FREQ2, .peci_mask = 0x07, - .old_peci_mask = 0x02, /* Actually reports PCH */ }, [it8603] = { .name = "it8603",