spi: tegra: Max tx words limited to max buff size
authorAshwini Ghuge <aghuge@nvidia.com>
Wed, 20 Jun 2012 08:44:28 +0000 (13:44 +0530)
committerSimone Willett <swillett@nvidia.com>
Wed, 20 Jun 2012 20:47:44 +0000 (13:47 -0700)
commit4c165a4d5e76e5c111ac21c9d9506ea6d87705c9
tree499c4cab544bf7e5a9aa2b2181d1eb709695107c
parentb426ea53fbdd902e85eacb865d1b2912b49260fe
spi: tegra: Max tx words limited to max buff size

When computing required words for a transfer,
limit this to max possible size on given
sub transfer

Change-Id: Ia1a9290ae389e36ecb5a8d03be2982885a544a33
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/109462
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
drivers/spi/spi-tegra.c