From patchwork Wed Oct 16 10:04:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 176445 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp7138824ill; Wed, 16 Oct 2019 03:05:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxd3rflpY62x6oDGh9XT0yXLOEWKklkCW4o9EnlATiuB1LIrPy/XNbccWGWhZRmPCOQI85e X-Received: by 2002:aa7:d045:: with SMTP id n5mr38169032edo.24.1571220312320; Wed, 16 Oct 2019 03:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571220312; cv=none; d=google.com; s=arc-20160816; b=XZ6TegI9wIK49Ee+GUKaWCCLZLWW2duU1YbO5orebpTGojvPrGVPN4vTqvYCaJtifY CT0fzr0eO3dXvG6L7usNC6OgC+36zhzJB1a3Enr7P5Amn6uA4sTidV6CmAQ0NIEqTkmX WIFOkNLSy57bymCnfeAdsaMbOGnXhN541KtigKm8yOiClORhVT4ZQqGYHZZOVT/+qE8P +qgkBZAggCBGu9ZLr/swKdY7t2apzi8rkYL7Lpb/9Xf3nmzgeMdIDLZjyyOiO7frDWn8 YwoAQaBxpYypR8kU2hunvq0Ii/NXMM3qJM53UK9fxeD/2af0T6yBWAuCalNOdxG2ujE4 nidg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=TOtq7/uBhvMQEaiIM1zV+jIeZbkMvT9UMyYNJVM2XaQ=; b=MVw/SoU7WFJTHF5mJA8E/y5KK6/afSD/a+pa2UXnqNDOAc1Q4KAHz8zJ6EsOTj7nhL J++h8lzt8WiiFGIvn3nSWW73DGW4cz3f53OrtcjXwqh/6sBYqSBk7VpLnfYK1wVmAtnA +mdD1Nk6j6+IiNK0wBFqDhHA+DHOfAB56lQdPUc/v1dAW0oz16Yu0x0OXWMww2WYDXR4 hmgiAxnqGXqgLHxzRY0QWwg+2oKqrXnbLl9BwKCicCf/I7U43pr3na3HnR6GGWBcAPGv EX4DXors2B/rteWCsisi3wQlpxjjQXZKeKezHiI3gg9vBZPZN3LUXwOx/IqwzGiQtDil 3JxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UtzTLluj; 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 t49si17839113edd.198.2019.10.16.03.05.11; Wed, 16 Oct 2019 03:05:12 -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=UtzTLluj; 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 S2389703AbfJPKFJ (ORCPT + 26 others); Wed, 16 Oct 2019 06:05:09 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:40696 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728081AbfJPKFI (ORCPT ); Wed, 16 Oct 2019 06:05:08 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9GA4wB5076543; Wed, 16 Oct 2019 05:04:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571220298; bh=TOtq7/uBhvMQEaiIM1zV+jIeZbkMvT9UMyYNJVM2XaQ=; h=From:To:CC:Subject:Date; b=UtzTLlujpWjxMQy2t9WHQlhA8ClUuiH4S/XNLq1Nzbg7szAxEIGIL43NhDAGVLClF JCEnImfVZ/Vi2lN1wRXAm5xcr6SAiZi5WAaqGN+yZmrdhtz0K/z1lLQIOJO1inzYWm ey5rP+y1WLG2FH0ZVALsoafya0pt9Dr/5Pda66yw= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9GA4wDB095648; Wed, 16 Oct 2019 05:04:58 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 16 Oct 2019 05:04:50 -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; Wed, 16 Oct 2019 05:04:50 -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 x9GA4sKB001596; Wed, 16 Oct 2019 05:04:55 -0500 From: Roger Quadros To: , CC: , , , , , , Roger Quadros Subject: [PATCH v2 0/2] usb: cdns3: fixes for 5.4-rc Date: Wed, 16 Oct 2019 13:04:50 +0300 Message-ID: <20191016100452.32613-1-rogerq@ti.com> X-Mailer: git-send-email 2.17.1 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 Hi, Here are 2 fixes we found while testing the cdns3 driver on our platform. The first one fixes a corner case where super-speed in host mode doesn't work if device was plugged before the cdns3 driver probes. The second one fixes the case when gadget driver is limited to full-speed. cheers, -roger Changelog: v2 - treat USB_DR_MODE_UNKNOWN as error case Roger Quadros (2): usb: cdns3: fix cdns3_core_init_role() usb: cdns3: gadget: Fix full-speed mode drivers/usb/cdns3/core.c | 22 +++++++++++++++++++++- drivers/usb/cdns3/gadget.c | 1 + 2 files changed, 22 insertions(+), 1 deletion(-) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki