From patchwork Mon Oct 7 12:16:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 175333 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp4196692ill; Mon, 7 Oct 2019 05:16:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8huzJ1iNmnBKKe1+IWAkaUEgQbt47x2fVPuO5yN8v0+WlRBSIWavRFlmurMOYAusJBZpl X-Received: by 2002:aa7:d688:: with SMTP id d8mr28652641edr.156.1570450590960; Mon, 07 Oct 2019 05:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570450590; cv=none; d=google.com; s=arc-20160816; b=v4aDTdGJ4/PumwyczZNpTWYLSnUnt/ypLqaCP2VCLzq75YQGw30rDjf3aVuYXInEID O1TkSNfL9W6Vq8bxZOmzwIhm6aYysmVYq8VCG47HX8MTrBUpxQM5YOYbRxwy+WlVooOb n3MqS+eWVakUir71zq6ag6hmh+eyTJ/BTXfEbwVg+POPg6DpYuy7ssmylzqNR13KFGlV kXXKPhnxFGsAlJphJbcBjrH3en0HEZ/ssoDjhsoMLD80llrsEIoivaskEDdmN1ctUzj4 +b1l4N/lt1Ek+dybksL0vhUmT9n6X6HniuC5+GGRkmv9WnAqimp4wyq2nckkHOdLnd8c v8YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=JT6RnosxlMe8SvOy1VwR606ZNqg+8XpNbkC5dXgqkvo=; b=SgsmV7aKkwBTOnyFoqlGW5vVMv6EEZlotHZVzfCmmdWDtcmlmPh31ipXOJjVAkBYDP ANjC7Tra8YA0OV021PExJ/i9gxxnSWhlQx/QE9WnFVmfj6eznEwST85mVVwSsY7a8zB6 trYfejT4QMR+KFOS4ohwD2922zzCUPTQ7mny+UfyPISJBOW0xsai2b441nsgQlYDnCNO FfHshSiG4ME2l4uv1zNsXh/eA/S8PZY8vgwHVX4MPruvywZdhbYT4/hO+us7aW0f8S4S D6N84Bt9eTY/2t3TOnuYlh9J7LpXdsnPZV7z2yFYWyL/j+ylCjAOvTjnD3r1k39faYA7 nYMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ioAtB1uO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jx7si6903721ejb.84.2019.10.07.05.16.30; Mon, 07 Oct 2019 05:16:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ioAtB1uO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727898AbfJGMQ3 (ORCPT + 26 others); Mon, 7 Oct 2019 08:16:29 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:43416 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727561AbfJGMQ3 (ORCPT ); Mon, 7 Oct 2019 08:16:29 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x97CGD2Z020799; Mon, 7 Oct 2019 07:16:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570450573; bh=JT6RnosxlMe8SvOy1VwR606ZNqg+8XpNbkC5dXgqkvo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ioAtB1uO2dWk6Kmff/0tXOG2aXczU4w1PLeI9HIbXuj1HxbO/xIMATdpAEIFQw9Bq nrDUXzmgzqfVQiR3YiMcHIP1tW+aV4SO/6vAclKU7GscwLIFc20s5/RLVKzax7pFtY CWU5Q3cIQjtVc4eBt8+WMH7+Qc/FeLmWm7U2xRRI= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x97CGDi8070468 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Oct 2019 07:16:13 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 7 Oct 2019 07:16:13 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 7 Oct 2019 07:16:11 -0500 Received: from lta0400828a.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x97CG6fM070909; Mon, 7 Oct 2019 07:16:11 -0500 From: Roger Quadros To: , , CC: , , , , , Roger Quadros Subject: [PATCH 2/2] usb: cdns3: gadget: Fix full-speed mode Date: Mon, 7 Oct 2019 15:16:01 +0300 Message-ID: <20191007121601.25996-3-rogerq@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191007121601.25996-1-rogerq@ti.com> References: <20191007121601.25996-1-rogerq@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We need to disable USB3 PHY for full-speed mode else gadget mode is broken. Signed-off-by: Roger Quadros Signed-off-by: Sekhar Nori --- drivers/usb/cdns3/gadget.c | 1 + 1 file changed, 1 insertion(+) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki Reviewed-by: Peter Chen Reviewed-by: Pawel Laszczak diff --git a/drivers/usb/cdns3/gadget.c b/drivers/usb/cdns3/gadget.c index 228cdc4ab886..157536753b8c 100644 --- a/drivers/usb/cdns3/gadget.c +++ b/drivers/usb/cdns3/gadget.c @@ -2571,6 +2571,7 @@ static int cdns3_gadget_start(struct cdns3 *cdns) switch (max_speed) { case USB_SPEED_FULL: writel(USB_CONF_SFORCE_FS, &priv_dev->regs->usb_conf); + writel(USB_CONF_USB3DIS, &priv_dev->regs->usb_conf); break; case USB_SPEED_HIGH: writel(USB_CONF_USB3DIS, &priv_dev->regs->usb_conf);