lspci looks like this:
0b:00.0 SATA controller: JMicron Technology Corp. 20360/20363 Serial ATA Controller (rev 03) 0b:00.1 IDE interface: JMicron Technology Corp. 20360/20363 Serial ATA Controller (rev 03)
, but after the wake from sleep, it seems that the PATA port looses power (or maybe only IDE Timing) and is gone and only restart reenables the IDE device:
0b:00.0 SATA controller : JMicron Technology Corp. 20360/20363 Serial ATA Controller [197b:2363] (rev 03) 0b:00.1 Unknown class [ffff]: Illegal Vendor ID Unknown device [ffff:ffff] (rev ff)
In _WAK method i store values back to SATA port (JM0) to reenable AHCI, maybe I only need to know the right values for IDE port, but I could't find JMicron datasheet anywhere.
Store (0xB3, \_SB.PCI0.P0PA.EHUB.DPT5.JM0.M1) Store (0xA1, \_SB.PCI0.P0PA.EHUB.DPT5.JM0.M2) Store (0xC2, \_SB.PCI0.P0PA.EHUB.DPT5.JM0.M3)
Message in kernel log:
kernel: pci restore waited for JM1 fail