[PATCH 3/5] nvme: Change 'bool shutdown' to an enum shutdown_type in nvme_dev_disable()

Christoph Hellwig hch at lst.de
Sun Feb 11 23:01:00 PST 2024


>  	    (ndev->ctrl.quirks & NVME_QUIRK_SIMPLE_SUSPEND))
> -		return nvme_disable_prepare_reset(ndev, true);
> +		return nvme_disable_prepare_reset(ndev, NVME_PCI_DISABLE_SHUTDOWN);


> -		ret = nvme_disable_prepare_reset(ndev, true);
> +		ret = nvme_disable_prepare_reset(ndev, NVME_PCI_DISABLE_SHUTDOWN);

Please avoid overly long lines.

The rest looks good to me.



More information about the Linux-nvme mailing list