From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7453D6D1B for ; Mon, 20 Nov 2023 07:35:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NyTPikx1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89F94C433C8; Mon, 20 Nov 2023 07:35:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700465725; bh=pyk6gGONqFth5PLxUaWaOTJmkFQyQCI3acwFRh3eMd8=; h=From:To:Cc:Subject:Date:From; b=NyTPikx1/6H1ySiEqpx7LPDo/kb7fenKCKixJcdpX6rccBJmFYhDqBiyt3XmbH1zi gqWIBUeUzncBg3OiibbnGQBI2EgAdlc8blUttZ10DtG2KsDXCp07KqxmrrbUZyiugK 4ZkaKVqdVLokLjd7pmFVC4AVSfw6HdDnDqbpAYq3rpbYS+3p++0nLLhjhj3K04qtpy wUWXgIV/RfERLdsN2r8QBG5ncPdYApwE6aR7M8Xu6H85+3g2eXBSo8CUBQJ2CxbRGN sQRyoy65+GNMX22ccqfcoczugyS4NqEO1/PgkJIgQvUbs9FD27k5PLbmQX4frTbJTi lG9aN2GtgHOZQ== From: Damien Le Moal To: "Martin K . Petersen" , James Bottomley , linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org Cc: Bart Van Assche , Phillip Susi Subject: [PATCH 0/2] Fix runtime suspended device resume Date: Mon, 20 Nov 2023 16:35:20 +0900 Message-ID: <20231120073522.34180-1-dlemoal@kernel.org> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-ide@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The first patch changes the use of the bool type back to the regular unsigned:1 for the manage_xxx scsi device flags. This is marked as a fix and CC-stable to avoid issues with later eventual fixes in this area. The second patch addresses an issue with system resume with devices that were runtime suspended. For ATA devices, this leads to a disk still being reported as suspended while it is in fact spun up due to how ATA resume is done (port reset). Damien Le Moal (2): scsi: Change scsi device boolean fields to single bit flags scsi: sd: fix system start for ATA devices drivers/ata/libata-scsi.c | 9 +++++++-- drivers/firewire/sbp2.c | 6 +++--- drivers/scsi/sd.c | 9 ++++++++- include/scsi/scsi_device.h | 12 +++++++++--- 4 files changed, 27 insertions(+), 9 deletions(-) -- 2.42.0