]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: spi: Avoid setting the speed with every transfer
authorSimon Glass <sjg@chromium.org>
Tue, 17 Feb 2015 22:29:35 +0000 (15:29 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:37:13 +0000 (22:37 +0200)
commitb7d360e2b0c21e1769543ff4bf67587b64513f7a
tree94e44b9b8b8e29a032c73df4ac38f3f8c35b7f86
parentf083926727fbe2823875411eb118849e84436f93
dm: spi: Avoid setting the speed with every transfer

Only set the speed if it has changed from last time. Since the speed will
be 0 when the device is probed it will always be changed on the first
transfer after the device is probed.

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