return 0;
 }
 
-static int ahci_softreset(struct ata_port *ap, unsigned int *class,
-                         unsigned long deadline)
+static int ahci_do_softreset(struct ata_port *ap, unsigned int *class,
+                            int pmp, unsigned long deadline)
 {
        const char *reason = NULL;
        unsigned long now, msecs;
                msecs = jiffies_to_msecs(deadline - now);
 
        tf.ctl |= ATA_SRST;
-       if (ahci_exec_polled_cmd(ap, 0, &tf, 0,
+       if (ahci_exec_polled_cmd(ap, pmp, &tf, 0,
                                 AHCI_CMD_RESET | AHCI_CMD_CLR_BUSY, msecs)) {
                rc = -EIO;
                reason = "1st FIS failed";
 
        /* issue the second D2H Register FIS */
        tf.ctl &= ~ATA_SRST;
-       ahci_exec_polled_cmd(ap, 0, &tf, 0, 0, 0);
+       ahci_exec_polled_cmd(ap, pmp, &tf, 0, 0, 0);
 
        /* spec mandates ">= 2ms" before checking status.
         * We wait 150ms, because that was the magic delay used for
        return rc;
 }
 
+static int ahci_softreset(struct ata_port *ap, unsigned int *class,
+                         unsigned long deadline)
+{
+       return ahci_do_softreset(ap, class, 0, deadline);
+}
+
 static int ahci_hardreset(struct ata_port *ap, unsigned int *class,
                          unsigned long deadline)
 {