From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECE7BC433EF for ; Wed, 22 Sep 2021 05:57:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CB7326109F for ; Wed, 22 Sep 2021 05:57:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232404AbhIVF64 (ORCPT ); Wed, 22 Sep 2021 01:58:56 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:24502 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231908AbhIVF6z (ORCPT ); Wed, 22 Sep 2021 01:58:55 -0400 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 18M5a389088176; Wed, 22 Sep 2021 13:36:03 +0800 (GMT-8) (envelope-from billy_tsai@aspeedtech.com) Received: from BillyTsai-pc.aspeed.com (192.168.2.149) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 22 Sep 2021 13:56:21 +0800 From: Billy Tsai To: CC: , , , , , , , , , Subject: Re: [PATCH v2] hwmon: (pwm-fan) stop fan on shutdown Date: Wed, 22 Sep 2021 13:56:23 +0800 Message-ID: <20210922055624.17883-1-billy_tsai@aspeedtech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <1579534344-11694-1-git-send-email-akinobu.mita@gmail.com> References: <1579534344-11694-1-git-send-email-akinobu.mita@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.2.149] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 18M5a389088176 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Hi Akinobu, Can you add optional properties to switch the behavior? For the use case below, the pwm fan should not stop when the device is shutdown by the system reboot. Our platform is BMC that will use a PWM-FAN driver to control the fan on the managed host. In our case, we do not want to stop the fan when the BMC is reboot, which may cause the temperature of the managed host not to be lowered.