ata: libata-core: Remove ata_port_suspend_async()
authorDamien Le Moal <dlemoal@kernel.org>
Mon, 4 Sep 2023 11:46:23 +0000 (20:46 +0900)
committerDamien Le Moal <dlemoal@kernel.org>
Tue, 3 Oct 2023 00:39:49 +0000 (09:39 +0900)
commit6702255d700a6b41413d6701454cac320f2a9a42
treea2bc1bd865958a6cb0da79a9dd614bd6f51c81f5
parent5b6fba546da246b3d0dd8465c07783e22629cc53
ata: libata-core: Remove ata_port_suspend_async()

ata_port_suspend_async() is only called by ata_sas_port_suspend().
Modify ata_port_suspend() with an additional bool argument indicating an
asynchronous or synchronous suspend to allow removing that helper
function. With this change, the variable ata_port_resume_ehi can also be
removed and its value (ATA_EHI_XXX flags passed directly to
ata_port_request_pm().

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ata/libata-core.c