]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
usb: phy: tegra: Fix max value of xcvr_setup
authorRohith Seelaboyina <rseelaboyina@nvidia.com>
Thu, 4 Feb 2016 16:17:38 +0000 (08:17 -0800)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 1 Apr 2016 17:32:53 +0000 (10:32 -0700)
Max value allowed for xcvr_setup value is 0x3f
Although it has 7 bits, MSB is unused.

Bug 200161481

Change-Id: I1f6289ab3f12fcfefd5d877f2ac23d4850100028
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
(cherry picked from commit eaf3bb6817fd58cee5b87640af45ead2025471a8)
Reviewed-on: http://git-master/r/1118373
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/usb/phy/tegra11x_usb_phy.c

index d46b5c7eced59a68247787b86e2e8a551a8ec92f..cf3335d93785c5f8fa5e56ee612819f8fc34e161 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * drivers/usb/phy/tegra11x_usb_phy.c
  *
- * Copyright (c) 2012-2015 NVIDIA Corporation. All rights reserved.
+ * Copyright (c) 2012-2016 NVIDIA Corporation. All rights reserved.
  *
  *
  * This software is licensed under the terms of the GNU General Public
 #define   UTMIP_XCVR_HSSLEW_MSB(x)             (((x) & 0x7f) << 25)
 #define   UTMIP_XCVR_HSSLEW_LSB(x)             (((x) & 0x3) << 4)
 #define   UTMIP_XCVR_MAX_OFFSET                0x10
-#define   UTMIP_XCVR_SETUP_MAX_VALUE   0x7f
+#define   UTMIP_XCVR_SETUP_MAX_VALUE   0x3f
 #define   UTMIP_XCVR_SETUP_MIN_VALUE   0
 #define   XCVR_SETUP_MSB_CALIB(x) ((x) >> 4)