Commit 6ae3483d authored by Sebastian Ott's avatar Sebastian Ott Committed by Vasily Gorbik
Browse files

s390/pci: correctly handle MIO opt-out



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: default avatarSebastian Ott <sebott@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent c7ff0e91
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)