Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755462AbcK2K5W (ORCPT ); Tue, 29 Nov 2016 05:57:22 -0500 Received: from lelnx193.ext.ti.com ([198.47.27.77]:61229 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754395AbcK2K5C (ORCPT ); Tue, 29 Nov 2016 05:57:02 -0500 From: Roger Quadros To: CC: , , Roger Quadros Subject: [PATCH 1/2] usb: dwc3: gadget: Fix full speed mode Date: Tue, 29 Nov 2016 12:56:36 +0200 Message-ID: <1480416997-19757-2-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480416997-19757-1-git-send-email-rogerq@ti.com> References: <1480416997-19757-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 666 Lines: 23 DCFG.DEVSPD == 0x3 is not valid and we need to set DCFG.DEVSPD to 0x1 for full speed mode. Signed-off-by: Roger Quadros --- drivers/usb/dwc3/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 1dfa56a5f..797e013 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1597,7 +1597,7 @@ static int __dwc3_gadget_start(struct dwc3 *dwc) reg |= DWC3_DCFG_LOWSPEED; break; case USB_SPEED_FULL: - reg |= DWC3_DCFG_FULLSPEED1; + reg |= DWC3_DCFG_FULLSPEED2; break; case USB_SPEED_HIGH: reg |= DWC3_DCFG_HIGHSPEED; -- 2.7.4