Unverified Commit d81d0e41 authored by Thomas Perrot's avatar Thomas Perrot Committed by Mark Brown
Browse files

spi: spl022: fix Microwire full duplex mode



There are missing braces in the function that verify controller parameters,
then an error is always returned when the parameter to select Microwire
frames operation is used on devices allowing it.

Signed-off-by: default avatarThomas Perrot <thomas.perrot@bootlin.com>
Link: https://lore.kernel.org/r/20211022142104.1386379-1-thomas.perrot@bootlin.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f09f6dfe
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1716,7 +1716,7 @@ static int verify_controller_parameters(struct pl022 *pl022,
				return -EINVAL;
			}
		} else {
			if (chip_info->duplex != SSP_MICROWIRE_CHANNEL_FULL_DUPLEX)
			if (chip_info->duplex != SSP_MICROWIRE_CHANNEL_FULL_DUPLEX) {
				dev_err(&pl022->adev->dev,
					"Microwire half duplex mode requested,"
					" but this is only available in the"
@@ -1724,6 +1724,7 @@ static int verify_controller_parameters(struct pl022 *pl022,
				return -EINVAL;
			}
		}
	}
	return 0;
}