Re: [PATCH] ata: libata-core: Do not use pcim_enable_device() on PCI resume

From: Vaibhav Gupta

Date: Fri Dec 04 2026 - 14:06:51 EST


On Thu, Dec 03, 2026 at 10:36:55AM -0600, Weidong Wang wrote:
> On Thu, Dec 03, 2026 at 10:14:35AM -0600, Bjorn Helgaas wrote:
> > I think a better fix would be to remove ata_pci_device_do_resume() and
> > a lot of the related PCI power management completely. Most of that
> > should be done by the PCI core itself, without involving the drivers.
>
> Thanks Bjorn, and thanks Niklas for the offer to help. Moving libata
> to generic power management sounds like the better fix. It touches
> most of the PCI ATA drivers, and without PATA hardware to test on I
> don't think I can do it justice, so I'll leave it to someone who can
> test it rather than send a v2 of this one.
>
> Weidong

Hello Bjorn and Weidong!

Thanks for the cc Bjorn!

Weidong, thanks for the patch. As Bjorn mentioned above, I tried to move
ata drivers to generic PM but the blocker was testing. One good starting
point would be to test my patches on a VM via QEMU device. If you would
like to, you can do that testing.

Vaibhav