• Chin Liang See's avatar
    spi: cadence_qspi_apb: Ensure baudrate doesn't exceed max value · 5405817a
    Chin Liang See authored
    Ensuring the baudrate divisor value doesn't exceed the max value
    in the calculation.It will be capped at max value to ensure the
    correct value being written into the register.
    
    Example of the existing bug is when calculated div = 16. After and
    with the mask, the value written to register is actually 0 (register
    field for baudrate divisor). With this fix, the value written is now
    15 which is max value for baudrate divisor.
    Signed-off-by: default avatarChin Liang See <clsee@altera.com>
    Cc: Marek Vasut <marex@denx.de>
    Cc: Jagan Teki <jteki@openedev.com>
    Cc: Dinh Nguyen <dinguyen@altera.com>
    5405817a
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
altera_spi.c Loading commit data...
armada100_spi.c Loading commit data...
ath79_spi.c Loading commit data...
atmel_dataflash_spi.c Loading commit data...
atmel_spi.c Loading commit data...
atmel_spi.h Loading commit data...
bfin_spi.c Loading commit data...
bfin_spi6xx.c Loading commit data...
cadence_qspi.c Loading commit data...
cadence_qspi.h Loading commit data...
cadence_qspi_apb.c Loading commit data...
cf_qspi.c Loading commit data...
cf_spi.c Loading commit data...
davinci_spi.c Loading commit data...
designware_spi.c Loading commit data...
ep93xx_spi.c Loading commit data...
exynos_spi.c Loading commit data...
fsl_dspi.c Loading commit data...
fsl_espi.c Loading commit data...
fsl_qspi.c Loading commit data...
fsl_qspi.h Loading commit data...
ich.c Loading commit data...
ich.h Loading commit data...
kirkwood_spi.c Loading commit data...
lpc32xx_ssp.c Loading commit data...
mpc52xx_spi.c Loading commit data...
mpc8xxx_spi.c Loading commit data...
mxc_spi.c Loading commit data...
mxs_spi.c Loading commit data...
omap3_spi.c Loading commit data...
pic32_spi.c Loading commit data...
rk_spi.c Loading commit data...
rk_spi.h Loading commit data...
sandbox_spi.c Loading commit data...
sh_qspi.c Loading commit data...
sh_spi.c Loading commit data...
sh_spi.h Loading commit data...
soft_spi.c Loading commit data...
soft_spi_legacy.c Loading commit data...
spi-emul-uclass.c Loading commit data...
spi-uclass.c Loading commit data...
spi.c Loading commit data...
tegra114_spi.c Loading commit data...
tegra20_sflash.c Loading commit data...
tegra20_slink.c Loading commit data...
tegra210_qspi.c Loading commit data...
tegra_spi.h Loading commit data...
ti_qspi.c Loading commit data...
xilinx_spi.c Loading commit data...
zynq_qspi.c Loading commit data...
zynq_spi.c Loading commit data...