MLK-20599-1 usb: cdns3: gadget: fix link test TD 7.23
authorPeter Chen <peter.chen@nxp.com>
Mon, 17 Dec 2018 06:57:10 +0000 (14:57 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 2 May 2019 08:35:28 +0000 (11:35 +0300)
The USB compliance link test TD 7.23 requires the U1 exit time
is from 900ns to 1.2us, the current code is 744ns, the default
value is 1.104us, so changing it as default value.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
(cherry picked from commit be0a22ce7192387b98a887d3ce4358e1db71b9f4)

drivers/usb/cdns3/gadget.c

index c01cbf5..0bcfbd4 100644 (file)
@@ -2420,10 +2420,6 @@ static void __cdns3_gadget_start(struct usb_ss_dev *usb_ss)
                        );
 
        gadget_writel(usb_ss, &usb_ss->regs->usb_conf, USB_CONF__DEVEN__MASK);
-
-       gadget_writel(usb_ss, &usb_ss->regs->dbg_link1,
-               DBG_LINK1__LFPS_MIN_GEN_U1_EXIT_SET__MASK |
-               DBG_LINK1__LFPS_MIN_GEN_U1_EXIT__WRITE(0x3C));
 }
 
 static int cdns3_gadget_start(struct cdns3 *cdns)