]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
s390/pci: correctly handle MIO opt-out
authorSebastian Ott <sebott@linux.ibm.com>
Thu, 27 Jun 2019 13:47:13 +0000 (15:47 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 4 Jul 2019 11:13:59 +0000 (13:13 +0200)
Do not issue CLP_SET_ENABLE_MIO after opting out of MIO instruction
usage. This should not fix a bug but reduce overhead within firmware.

Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/pci/pci_clp.c

index d03631dba7c257923eb2182e277522a0a289e14f..9bdff4defef199746ef19d35207eb559dade6028 100644 (file)
@@ -291,7 +291,7 @@ int clp_enable_fh(struct zpci_dev *zdev, u8 nr_dma_as)
                goto out;
 
        zdev->fh = fh;
-       if (zdev->mio_capable) {
+       if (zpci_use_mio(zdev)) {
                rc = clp_set_pci_fn(&fh, nr_dma_as, CLP_SET_ENABLE_MIO);
                zpci_dbg(3, "ena mio fid:%x, fh:%x, rc:%d\n", zdev->fid, fh, rc);
                if (rc)