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 <damien.lemoal@xxxxxxx> > --- > drivers/ata/libata-core.c | 55 +++++++++++++++++++++++---------------- > 1 file changed, 32 insertions(+), 23 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@xxxxxxx +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer