From patchwork Mon Oct 8 21:49:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kun Yi X-Patchwork-Id: 10631513 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EF11413AA for ; Mon, 8 Oct 2018 21:49:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E07D929B1E for ; Mon, 8 Oct 2018 21:49:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2B2429B21; Mon, 8 Oct 2018 21:49:31 +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=-15.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, USER_IN_DEF_DKIM_WL 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 4EF0929B1E for ; Mon, 8 Oct 2018 21:49:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725823AbeJIFDS (ORCPT ); Tue, 9 Oct 2018 01:03:18 -0400 Received: from mail-it1-f201.google.com ([209.85.166.201]:54283 "EHLO mail-it1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725794AbeJIFDS (ORCPT ); Tue, 9 Oct 2018 01:03:18 -0400 Received: by mail-it1-f201.google.com with SMTP id v13-v6so11682562itc.4 for ; Mon, 08 Oct 2018 14:49:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=DGjpJh6NY26XNmkgK/G3W85M0KbT1oJdmcCbZa5PHLo=; b=I91n2RiS7+dQbL9RuN/a27WtrIatJqaKpPZWaTIr7cDU5UuMgDjlYLAz9+6mXHUYEb iZb8g0TUSpoeiIJeQxIciHe7gKG20xGwagmmZGmHzDA2/nSZOfqIURpIUoi+z917Z6Y+ 66syTLyuhLdtPozVZITHzqiqHL4tz7sKma9zpUIjeCi3NvQr8O8vazjH35Smv7MdxHfQ 9ePiUDycYrpcaX+BHygWCOTjlzQaOIewWrz2BiQZWctxAuBZ8dcgxQwFD+Y+BsthORUo tXVWiBSMkhALn+Fm4P/h7X9V06Z9E22L4//mpLZf4BejqmbrT7TcYD57r8PbpxXDuW0t HlVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=DGjpJh6NY26XNmkgK/G3W85M0KbT1oJdmcCbZa5PHLo=; b=jhRuVDWr3jX/v0pYB+KqlacvNf0/PyoNamYLKqjy2hFbH4qqe3OFO/R/+NUb6ThT72 e6A8bsYODETVcELAmOqckwWP6q+i96ER7KcRTKgu8yATMZHlJFLk8V2gSrwPXzfiMBP/ sxFZHcbJ7yDM6X9IapjbAA0ETeQUyc/6gtZ2yhjKoRx5jBZMNOUMFwSWrzhyHbz7EXCC FqPL+k3dD+Ydszs/wmKBQgVc0N4cWIVJlgmrb9CTNNhsiU3wOd/MV8uW7PX9huTiu4Ff bOLJ0QqeMxg+z+7b1LA73e9VaanFh2CR+xW7QPeDaadCuQ2/qtF7SZUQHQAKFWNx1twI Csvw== X-Gm-Message-State: ABuFfogdz6FCmk0TaWSaXyA4IbubAlJ/8NDtS/Tkw5Yi2sztL1cmlGxq tisR/PAtXUGaJHBhkmASjwbS00sLGw== X-Google-Smtp-Source: ACcGV63gMLjQFuWcULek/00WKjkMhnV+NrVG+Si0OpxQh8TbT+p0PNOxMtTWhnzaKBAVyCDoreLXH/apyg== X-Received: by 2002:a24:e48b:: with SMTP id o133-v6mr8514229ith.0.1539035369836; Mon, 08 Oct 2018 14:49:29 -0700 (PDT) Date: Mon, 8 Oct 2018 14:49:25 -0700 Message-Id: <20181008214925.86281-1-kunyi@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog Subject: [PATCH] hwmon: (npcm-750-pwm-fan): Change initial pwm target to 255 From: Kun Yi To: avifishman70@gmail.com, tmaimon77@gmail.com, jdelvare@suse.com, linux@roeck-us.net, openbmc@lists.ozlabs.org, linux-hwmon@vger.kernel.org Cc: rlippert@google.com, benjaminfair@google.com, Kun Yi 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 Change initial PWM target to 255 to prevent overheating, for example when BMC hangs in userspace or when userspace fan control application is not implemented yet. Signed-off-by: Kun Yi --- drivers/hwmon/npcm750-pwm-fan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/npcm750-pwm-fan.c b/drivers/hwmon/npcm750-pwm-fan.c index 96634fd54e0b..c0fab54c0094 100644 --- a/drivers/hwmon/npcm750-pwm-fan.c +++ b/drivers/hwmon/npcm750-pwm-fan.c @@ -52,7 +52,7 @@ /* Define the Counter Register, value = 100 for match 100% */ #define NPCM7XX_PWM_COUNTER_DEFAULT_NUM 255 -#define NPCM7XX_PWM_CMR_DEFAULT_NUM 127 +#define NPCM7XX_PWM_CMR_DEFAULT_NUM 255 #define NPCM7XX_PWM_CMR_MAX 255 /* default all PWM channels PRESCALE2 = 1 */