From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796153066; b=Vdg78vgCo3f18+zVDL+Q8WQQoqk2BTGRjpjHo4J591OWxqr5LskfUQDb36uc4HjmJQie CfGk1GH+wcDvEfLlZkGPy4xsaZObEUgs+riSWjFZtXCjViIHIx6E9+D2TOmgUwl+3V/9J lRDKv91NBuKkXjEhlRDi51SocwaCrXu44+YKg+u4XtkteTRf4b0DpSTwPhivM839jU98T vC/ngAPQ56sxheTlqQo7f8TPu1yQcc0hgV+4rbxqOTHcx8huh5B04w9lTo7qS3xOoY7D7 02RYJlHE193EklEt6F/54WT5rPd5qW/A4zaBfjsv78iLVScMxIOT86m70OPdFWAE2Iw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796153066; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=v2mQR5xKa3GzUeJjZ3XTthEEaVgsLuUdVcxk3TPLiqM=; b=O5HU7Uf0ItyCFeWkLugWwEZuTaGYxmZqzu81Z3YGYdmBoyQX/64J7M8nw3lXeAcf3M4o B8OhIrutB3ZlKmM3TYq5CE8JnNmcwueXACDp6tfioEjnyqe1ljuj1PQbGIpnlxjNLDh9k MbRmcYeWnB6wBETooJStvyzeRI5v9xES5df+CaKeq+y8ERLOMItw++hDrvfhCjAmbYseH uF8mUfSisfASNCNDX7OXz2ytZvQKfIVV7K0GrT1w7JKZYbkebuV5UxvZnTXksKre+zY6b uvqT+eOZMvHfRn4AG2RfFyMTYLTGx/58U9TxkqGn8Qj7jqZATgDeHu0BhkcIPgcPHQQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="fsoSr7w/"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 330E6606A322 for ; Tue, 1 Dec 2026 19:24:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fsoSr7w/ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72D351F00893; Tue, 1 Dec 2026 19:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796153065; bh=v2mQR5xKa3GzUeJjZ3XTthEEaVgsLuUdVcxk3TPLiqM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=fsoSr7w/UkEpTz/HZu5Z81ujhnlPjwCE6xRd/1GHqiFSWApZjV/dFIFEzY78rOeRd IJ73oSBlPv1zcnYlSy3y1jAkOFEWiHUvK2u1eTN0gC246Mox9X6ncT6Lr5fB+TTnjZ 7S0956OjjSqat64j5B0aDOqIRwJOey52vO7EU/NU27HCxS9zKJnfkXhi/DOocrnQSN M8T8IYzpr0fY/KcGXVVcdD8zwKDH5przVxTThrNgCpGo4MA+6fKWgXlMslACoCHrrv wSR1H2UqT+3+PI/R4/6TdcnYLGp6fwIW1IHS1cYdrbJWJhERHA8Rr1/p1NpChkgU3d 32MmTo8N+2ILg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] ata: pata_macio: Do not disable the PCI device on suspend Reply-To: sashiko-reviews@lists.linux.dev To: "Arina Kharlamova" Cc: linux-pci@vger.kernel.org In-Reply-To: <20261201-s2p-d104-v1-1-df4a9ef2b79d@mbzuai.ac.ae> References: <20261201-s2p-d104-v1-1-df4a9ef2b79d@mbzuai.ac.ae> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 19:24:25 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: Arina Kharlamova >=20 > pata_macio_suspend() disables the PCI device with pci_disable_device(), > and pata_macio_reset_hw() enables it again on resume with > pcim_enable_device(). Since commit f748a07a0b64 ("PCI: Remove legacy > pcim_release()") every pcim_enable_device() call adds a > pcim_disable_device() devres action, so each suspend and resume leaves > one more action behind. On unbind they all run, and every one after > the first warns about disabling an already disabled device. >=20 > The device is enabled with pcim_enable_device() in probe and stays > managed until unbind, so the driver should not disable and enable it by > hand. On suspend, clear only the bus master bit, which is all that > pci_disable_device() did on this hardware, and set it again on resume > without enabling the device. >=20 > Fixes: f748a07a0b64 ("PCI: Remove legacy pcim_release()") > Signed-off-by: Arina Kharlamova Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-s2p-d104-v= 1-1-df4a9ef2b79d@mbzuai.ac.ae?part=3D1