From 5524c1e1f0915c4d950ba77433bf0718f277da21 Mon Sep 17 00:00:00 2001 From: Rohith Seelaboyina Date: Thu, 4 Feb 2016 08:17:38 -0800 Subject: [PATCH] usb: phy: tegra: Fix max value of xcvr_setup 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 (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 --- drivers/usb/phy/tegra11x_usb_phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/phy/tegra11x_usb_phy.c b/drivers/usb/phy/tegra11x_usb_phy.c index d46b5c7eced..cf3335d9378 100644 --- a/drivers/usb/phy/tegra11x_usb_phy.c +++ b/drivers/usb/phy/tegra11x_usb_phy.c @@ -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 @@ -109,7 +109,7 @@ #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) -- 2.39.2