Re: [PATCH] ata: libata-core: Do not use pcim_enable_device() on PCI resume
From: Niklas Cassel
Date: Thu Dec 03 2026 - 08:48:45 EST
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@xxxxxxxxxxxx/
which seemed to look at pata_macio only.
Kind regards,
Niklas