> This needs testing. Understood. I do not have a PowerMac with this controller, so I could only compile-test it (pmac32_defconfig). If someone on linuxppc-dev can run a suspend and resume cycle with it, that would settle it
Thanks, Arina > On 2 Dec 2026, at 11:05, Damien Le Moal <[email protected]> wrote: > > Notice: This email originated from outside MBZUAI. > Please exercise caution before clicking links, opening attachments, or > sharing sensitive information. > On 12/2/26 04:17, Arina Kharlamova via B4 Relay wrote: > > From: Arina Kharlamova <[email protected]> > > > > 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. > > > > 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. > > > > Fixes: f748a07a0b64 ("PCI: Remove legacy pcim_release()") > > Signed-off-by: Arina Kharlamova <[email protected]> > > This needs testing. > > -- > Damien Le Moal > Western Digital Research >
