]> git.ipfire.org Git - people/ms/u-boot.git/commit - include/spi.h
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)
committerSimon Glass <sjg@chromium.org>
Wed, 6 May 2015 02:58:18 +0000 (20:58 -0600)
commit60e2809a848bccd3a8090d3f2237964670f2780c
tree0e48144601cecacb6f58b2e32cf516c7281204f5
parent172a31bf87bf299130a68320f08aa492c34ea3e0
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