Re: [PATCH] ata: libata-core: Do not use pcim_enable_device() on PCI resume
From: Niklas Cassel
Date: Thu Dec 03 2026 - 08:39:29 EST
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.
If you don't say anything, I will wait for your findings.
I have access to some LLM models and could help out if you don't have time.
Kind regards,
Niklas