From: Markus Niebel Date: Thu, 23 Oct 2014 14:09:38 +0000 (+0200) Subject: SPI: mxc_spi: remove second reset from ECSPI config handler X-Git-Tag: v2015.01-rc1~68^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ba3451d3d8990fec10c1addc689448bd5b81dc62;p=oweals%2Fu-boot.git SPI: mxc_spi: remove second reset from ECSPI config handler the second reset prevents other registers to be written. This will prevent to have the correct signal levels for SCLK before writing to the config reg in spi_xchg_single. Tested with GPIO based chipselect and SPI_MODE_3 on i.MX6S Signed-off-by: Markus Niebel Acked-by: Stefano Babic Reviewed-by: Jagannadha Sutradharudu Teki --- diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c index be102692d4..523c7af204 100644 --- a/drivers/spi/mxc_spi.c +++ b/drivers/spi/mxc_spi.c @@ -169,9 +169,6 @@ static s32 spi_cfg_mxc(struct mxc_spi_slave *mxcs, unsigned int cs, reg_ctrl = (reg_ctrl & ~MXC_CSPICTRL_POSTDIV(0x0F)) | MXC_CSPICTRL_POSTDIV(post_div); - /* We need to disable SPI before changing registers */ - reg_ctrl &= ~MXC_CSPICTRL_EN; - if (mode & SPI_CS_HIGH) ss_pol = 1;