lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e30343c0-2e8e-9412-08ed-f839e998248d@roeck-us.net>
Date:   Mon, 17 May 2021 12:09:37 -0700
From:   Guenter Roeck <linux@...ck-us.net>
To:     Ashwin H <ashwin@...sando.io>, jdelvare@...e.com, corbet@....net,
        linux-hwmon@...r.kernel.org, linux-doc@...r.kernel.org
Cc:     linux-kernel@...r.kernel.org, snelson@...sando.io
Subject: Re: [PATCH] hwmon: (adt7462) Add settings for manual fan control.

On 5/17/21 11:24 AM, Ashwin H wrote:
> ADT7462 can operate in manual mode for fan control.
> Currently if we want to read fan speed,
> there is a check if TACH measurement is enabled for a fan.
> (In fan_enabled function).
> There is no way to enable TACH measurement currently.
> This is addressed in this commit.
> 
> Along with the above support few more features are enabled
> - Support for setting fan presence.
> - Support for setting low and high frequency mode.
> - Support for setting easy config option.
> - Support for setting the duration of the fan startup timeout.
> - Once the setting is done, there is a setup complete bit in cfg1 register.
>    Settings this bit will start the monitoring of all selected channels.
>    Added support for that.
> 
> Based on this, below is the flow to set/get fan speed (example:pwm1)
> 
> echo 1 > pwm1_enable            #Set to manual mode
> echo 1 > pwm_freq_mode          #High freq mode (optional.newly added)
> echo 1 > fan1_presence          #Set fan 1 as present(newly added)
> echo 1 > fan1_tach_enable       #Start TACH measurement-fan1(newly added)
> echo 1 > setup_complete         #Mark as setup complete (newly added)

Please refrain from adding non-standard attributes. Several of the above
non-standard attributes can be expressed as standard attributes, which is
even less acceptable.

Also, please follow Documentation/process/submitting-patches.rst, which
clearly states

	Separate each **logical change** into a separate patch.

Guenter

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ