]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: mpc8xxx: Re-order transfer setup
authorMario Six <mario.six@gdsys.cc>
Sun, 28 Apr 2019 20:28:50 +0000 (01:58 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 10 Jun 2019 12:29:49 +0000 (17:59 +0530)
commita1c178e4c7eede986a31c18d413b33095136dbae
tree261971bdd65088fbbfe6364270c5ae5872ed7c64
parent85fa2655302bad69d5c6d19b0e8a6b188c77737d
spi: mpc8xxx: Re-order transfer setup

Minize the time the adapter is disabled (via SPI_MODE_EN
clearing/setting) to just the character length setting, and only set up
the temporary data writing variable right before we need it, so there is
a more clear distinction between setting up the SPI adapter, and setting
up the data to be written.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/mpc8xxx_spi.c