USB: EHCI: tegra: set txfill_tuning
authorStephen Warren <swarren@nvidia.com>
Mon, 14 Apr 2014 21:21:23 +0000 (15:21 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:59:38 +0000 (07:59 -0700)
commit7df528e7b9c438b592401473083126d6d79f78f9
tree19ec23b62f6072a3a18771923d84812d1a1b0a6f
parent73be2e28cf568eb9662fb9e1fb680977e072f66a
USB: EHCI: tegra: set txfill_tuning

commit 4f2fe2d27472f4a5dbd875888af4fc5175f3fdc5 upstream.

To avoid memory fetch underflows with larger USB transfers, Tegra SoCs
need txfill_tuning's txfifothresh register field set to a non-default
value. Add a custom reset override in order to set this up.

These values are recommended practice for all Tegra chips. However,
I've only noticed practical problems when not setting them this way on
systems using Tegra124. Hence, CC: stable only for recent kernels which
actually support Tegra124.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-tegra.c