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=1796305715; b=EmqiPlX5VScvdoMJ3KfGMp2VmmKXYJfO9Kwo+3FQEbJr+yoXTwFcqU/feglgu/fVPfNt 4eXSPOkMVLxAqa7ZqZq7bxIWTp5bLlaMmgyApue6ZTbiv3L+lJFIGDdXP3jQPXFVpeXpo b2b6LLO4eQvnOX3rbbTtUnjrtdTpY1O+zRqc5zVpZ26vOqdMU6xC9A1xyVAnetCh1a+WV 9KhZFJcl54HkbLddz3iZqfI4/swl6gLOlR/pzvuscMhJpiqfSYODuV5R0mBIKXa52F7RS OJEeKyrfHqoRlv7vTbNzT1hpbtucWd1vOoYjHm4IVQDOjFzhOCUVvi7jrNrTEoKWawg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796305715; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=yk7/As+vNqwBQHx3CEy+RLydaDB+CdoWPjr3A/Vm3DQ=; b=QzVhFOSDTZtX5J7q5smjxPeVcwRDhl2cXyLZKyLy8W+siiF7B3Mg9kzsvjeBvDv1XQrY eFVoCoonWls5fGqSrevIYpPVHfdvMftdvcyzeqwuFFdJXisHgW1d03s5nFcmcEzsb059+ X8HEAMfkZqVts5cttgYkAS5ikz1BjF8v3gPCTwpfIbs7TR3yxlgq+Ka3Mp5nJvaqmiqUc 2WGoTwQEBZokNzZWD8hCYc6q3LiRxwm3jOdswGZVpot0vBU9LTuxI0lP4v/dfcH/nKWxK q133yvd0mB7bfiZ9M0PD9L8Z9tSCR4FvmI0mc1pIxjgOr3rQ6kICPy1KC6L/nJEBYOg== 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=eEaSUy6f; 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 95D08606A322; Thu, 3 Dec 2026 13:48:35 +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=eEaSUy6f Received: by smtp.kernel.org (Postfix) with ESMTPSA id C62421F00898; Thu, 3 Dec 2026 13:48:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796305715; bh=yk7/As+vNqwBQHx3CEy+RLydaDB+CdoWPjr3A/Vm3DQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=eEaSUy6fApA7LyyJs6i8C1zXQR5CBxy1yKs9/3FS7e1eVctZGULl1X/soj6j6Hcl2 5mm1L7NQKiorGu1F2FpuHQAXIVZAKtJTttWCwxJ3F1AzHwLo5tlZFHCOiSCD8f+hpj NYQjueVkDBnAhB3SObaessFPAAH4ovI4omcYyJ5yUYd6CChhBTMOBJd1e6LK7NL6Nd RvlFMfPvX5u2K5PSgOliqVVZq4B0tCho7HgvVaMyh4Z+6ZIQyqJ2ofA6PpKYnEn5Nd 4iPqs90eLwrUVaEvYEEZyBYhYTAZDrf9V4MPrlEgcPz6mnJbWVQY4TOfdWfjUe645M /CWI3UvFI8CyA== Date: Thu, 3 Dec 2026 14:48:31 +0100 From: Niklas Cassel To: Weidong Wang Cc: "pstanner@redhat.com" , Damien Le Moal , linux-ide@vger.kernel.org, Bjorn Helgaas , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] ata: libata-core: Do not use pcim_enable_device() on PCI resume Message-ID: References: <022e98e0c153e1e306fd06bf9198c25f32645389.camel@redhat.com> <20261201201504.1308278-1-weidongw@illinois.edu> X-Mailing-List: linux-ide@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Dec 03, 2026 at 02:39:26PM +0100, Niklas Cassel wrote: > On Thu, Dec 03, 2026 at 02:27:53PM +0100, Niklas Cassel wrote: > > > > But to me it makes sense to make libata consistent, either fully use the > > pci_* APIs or fully use the pcim_* APIs. > > > > Without looking at the patches, it is hard to know if it is more wise to > > convert everything to pci_* or to convert everything to pcim_*. > > > > (I assume that there was some weird corner case that caused someone to mix > > the APIs in the first place... So personally I would prefer the solution > > which untangles this mess with the most logical/beautiful end result.) > > Untangling a mix of APIs because of some weird corner case, sounds like a > perfect job for an LLM, since they are good at finding the weird corner > cases by being able to follow the call chain of all the libata drivers. See e.g.: https://lore.kernel.org/linux-ide/20261201-s2p-d104-v1-1-df4a9ef2b79d@mbzuai.ac.ae/ which seemed to look at pata_macio only. Kind regards, Niklas