[PATCH] nvme: add temperature threshold hysteresis feature field definition
Keith Busch
kbusch at kernel.org
Thu Nov 7 13:40:11 PST 2024
On Tue, Nov 05, 2024 at 11:55:36PM +0900, Tokunori Ikegami wrote:
> The definition TMPTHH field supported by NVMe 2.1.
>
> Signed-off-by: Tokunori Ikegami <ikegami.t at gmail.com>
> ---
> include/linux/nvme.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/linux/nvme.h b/include/linux/nvme.h
> index b58d9405d65e..68c60b0b177f 100644
> --- a/include/linux/nvme.h
> +++ b/include/linux/nvme.h
> @@ -1121,6 +1121,8 @@ enum {
> NVME_TEMP_THRESH_MASK = 0xffff,
> NVME_TEMP_THRESH_SELECT_SHIFT = 16,
> NVME_TEMP_THRESH_TYPE_UNDER = 0x100000,
> + NVME_TEMP_THRESH_HYST_SHIFT = 22,
> + NVME_TEMP_THRESH_HYST_MASK = 0x7,
> };
Let's not define new constants that are not used by the driver.
More information about the Linux-nvme
mailing list