]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: spi: Remember the last speed to avoid re-setting it
authorSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 02:44:03 +0000 (19:44 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 03:42:35 +0000 (20:42 -0700)
commit28a943c11018f7e2946f3a529de87102f268cedb
treedb57df246af2bfaec66e3d92ca62c593fade6a35
parenta49dc0a91456dda9baec7e4778de4d96fa9174ec
rockchip: spi: Remember the last speed to avoid re-setting it

Rather than changing the clock to the same value on every transaction,
remember the last value and don't adjust the clock unless it is necessary.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/spi/rk_spi.c