Commit ddbb5162 authored by Harini Katakam's avatar Harini Katakam Committed by Michal Simek
Browse files

SPI: zynq: Corrected upper limit for baud_rate_val in loop



In the loop where baud rate divisor value to be written to the
config register is calculated, the check was "baud_rate_val < 8"
which resulted in baud rate divisor field being set to '000'
which is invalid. Changed check to "baud_rate_val < 7".

Reported-by: default avatarThomas Betker <thomas.betker@rohde-schwarz.com>
Reported-by: default avatarTed Roth <Ted.Roth@covidien.com>
Signed-off-by: default avatarHarini Katakam <harinik@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 1a85939a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment