]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
greybus: spi: use timeout request send operation
authorRui Miguel Silva <rui.silva@linaro.org>
Wed, 20 Apr 2016 13:40:23 +0000 (14:40 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 20 Apr 2016 23:34:00 +0000 (08:34 +0900)
commitd1d67714a4ece3c1438c9d7def324ee0424e7cbd
treec88d626c7c714d95d839454c5eef533f810a54e3
parent0928b2e4401cebd7fd2b8aebc41be60dbe4c2ef3
greybus: spi: use timeout request send operation

When transfer speed is too slow (less than 17Khz) the operation can take
longer than the default greybus timeout. Because of this we need to use
the request_send_sync_timeout and calculate the correct timeout for each
operation.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Tested-by: Philip Yang <philipy@bsquare.com>
Tested-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/spi.c