Re: [PATCH v2 3/9] libata: cleanup device sleep capability detection
From: Hannes Reinecke <hare@suse.de>
Date: 2021-08-06 08:50:44
Also in:
linux-ide, linux-scsi
From: Hannes Reinecke <hare@suse.de>
Date: 2021-08-06 08:50:44
Also in:
linux-ide, linux-scsi
On 8/6/21 9:42 AM, Damien Le Moal wrote:
Move the code to retrieve the device sleep capability and timings out of ata_dev_configure() into the helper function ata_dev_config_devslp(). While at it, mark the device as supporting the device sleep capability only if the sata settings page was retrieved successfully to ensure that the timing information is correctly initialized. Signed-off-by: Damien Le Moal <redacted> --- drivers/ata/libata-core.c | 55 +++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 23 deletions(-)
Reviewed-by: Hannes Reinecke <hare@suse.de> Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer