Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8037EEE57DF for ; Mon, 11 Sep 2023 07:01:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229553AbjIKHBf (ORCPT ); Mon, 11 Sep 2023 03:01:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232736AbjIKHBe (ORCPT ); Mon, 11 Sep 2023 03:01:34 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21E489C; Mon, 11 Sep 2023 00:01:30 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D602B1F460; Mon, 11 Sep 2023 07:01:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1694415688; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7EA2QFfzcvos1QzZPgKrT4hhz8+l8B27HR+dAlvg9WA=; b=JAmE46zWrJvNzcr6K7dE8ilZJBDeyAOFT7McXbG66ussw7ACpggvkECIOCz3p4fWUGURPU 5kp9HuKD0xfuES5rGqytjoKsPpO1h7fdt52Uqopi2tpFnvlHqOOnoNg/cDnJoJHk5yox+9 87V/Ersi5WQooSbDe3eeg0qOMx7puQk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1694415688; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7EA2QFfzcvos1QzZPgKrT4hhz8+l8B27HR+dAlvg9WA=; b=fsJHySwuoxhDhpkQo0vISh68kigLGYGmfW4wiSAzqxI+gWlZHeuJSb0qbnVVSNGOQrjNvC nALyC2Ioaw2ysgCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 545F513780; Mon, 11 Sep 2023 07:01:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id CMKlEki7/mSIUwAAMHmgww (envelope-from ); Mon, 11 Sep 2023 07:01:28 +0000 Message-ID: <6484aec0-5fc0-4cb6-9f4b-3e72303d2479@suse.de> Date: Mon, 11 Sep 2023 09:01:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 14/19] ata: libata-core: skip poweroff for devices that are runtime suspended Content-Language: en-US To: Damien Le Moal , linux-ide@vger.kernel.org Cc: linux-scsi@vger.kernel.org, "Martin K . Petersen" , John Garry , Rodrigo Vivi , Paul Ausbeck , Kai-Heng Feng , Joe Breuer References: <20230911040217.253905-1-dlemoal@kernel.org> <20230911040217.253905-15-dlemoal@kernel.org> From: Hannes Reinecke In-Reply-To: <20230911040217.253905-15-dlemoal@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org On 9/11/23 06:02, Damien Le Moal wrote: > When powering off, there is no need to suspend a port that has already > been runtime suspended. Skip the EH PM request in ata_port_pm_poweroff() > in this case. > > Signed-off-by: Damien Le Moal > --- > drivers/ata/libata-core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman