Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp446628imu; Tue, 11 Dec 2018 01:41:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/U4kW6I693o05o7rYZgpSeev/c+VEj+ncRfQ3y1cZYtf56AT8LDVF4TPW0FY5lYmNyqUki0 X-Received: by 2002:a63:d747:: with SMTP id w7mr13759961pgi.360.1544521286693; Tue, 11 Dec 2018 01:41:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544521286; cv=none; d=google.com; s=arc-20160816; b=OAdsZEiEA2Mbzw+58cWBDGS33xmbpNx/0LbXwI9aG4S8a1aS5phCBA5mbWm/c0j2bQ BYeguVMTqTVj/oKjs2XpKLcSoshixn1UxA6YLSmnFk2YxXDX2mNuIB2aX9bZfLnKZULd n5Oznrj5GNXsf2OEysHcitBB/a6u0/0Msd9VmsFIP/A5xkJQu7NJsq281qQ+AMuLTURG MT9mq8sRvbUOjy8RBqqDFaMSNrzpqfkV0hspRvIgrRc5dDa2P8Ng3wzxBKTCJWWjXRGu 0Yh5BjtKMJJMGqakTZUb1WKM99gd538Tr+r+8A5JJpQVBkH0w2RjKQEwmNzTFHmtOUu+ LA5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=MxFcxNtcaU6eZxhD1q6+ktK+HN5lX/VkIDbLd+m8OBQ=; b=ih59qLBpjbMu1H8Zekzzyav82x/Q80xdVck3exmC16nXVUWtLdudCCfcFpD5FyIpUR 5qMN2BAhRrbBKm4Z94LzZfDv2ZmN1HLXjyze0/NAQy4Bd6gJiQL935YTLev/kQFijyVh VbziJiguqJ1/ghCV4cNr2RrHuv0B3LSc8KZ1VG7H9digxxhBQEnlf5mLjDsm/mPzsYux ftCEK741J5EoFelkupUm1mwY00sPQB6HO0i4GY1BLXxGvR0E4yVSmMPsOuacE4A/p3Vb gUSUxOm1ktFqIfyBWs2zx4aR7Hrdzm1RGW4MwKr0ZMQUZgLHErY6U4/zKE1Oq/MpMBZB +rTA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 j135si11438237pgc.517.2018.12.11.01.41.07; Tue, 11 Dec 2018 01:41:26 -0800 (PST) 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; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726232AbeLKJkB (ORCPT + 99 others); Tue, 11 Dec 2018 04:40:01 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:52614 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726132AbeLKJkA (ORCPT ); Tue, 11 Dec 2018 04:40:00 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id wBB9dqJ1085157; Tue, 11 Dec 2018 03:39:52 -0600 Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wBB9dqEu079262 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 11 Dec 2018 03:39:52 -0600 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 11 Dec 2018 03:39:51 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 11 Dec 2018 03:39:52 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wBB9dmPO012459; Tue, 11 Dec 2018 03:39:49 -0600 Subject: Re: [PATCH v1 2/2] usb:cdns3 Add Cadence USB3 DRD Driver To: Pawel Laszczak , References: <1544445555-17325-1-git-send-email-pawell@cadence.com> <1544445555-17325-3-git-send-email-pawell@cadence.com> CC: , , , , , , , , , , , From: Roger Quadros Message-ID: <5C0F85E4.10609@ti.com> Date: Tue, 11 Dec 2018 11:39:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1544445555-17325-3-git-send-email-pawell@cadence.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit 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 Pawel, On 10/12/18 14:39, Pawel Laszczak wrote: > This patch introduce new Cadence USBSS DRD driver > to linux kernel. > > The Cadence USBSS DRD Driver is a highly > configurable IP Core which can be > instantiated as Dual-Role Device (DRD), > Peripheral Only and Host Only (XHCI) > configurations. > > The current driver has been validated with > FPGA burned. We have support for PCIe > bus, which is used on FPGA prototyping. > > The host side of USBSS-DRD controller is compliance > with XHCI specification, so it works with > standard XHCI linux driver. > > Signed-off-by: Pawel Laszczak > --- > drivers/usb/Kconfig | 2 + > drivers/usb/Makefile | 2 + > drivers/usb/cdns3/Kconfig | 44 + > drivers/usb/cdns3/Makefile | 16 + > drivers/usb/cdns3/cdns3-pci-wrap.c | 157 +++ > drivers/usb/cdns3/core.c | 451 +++++++ > drivers/usb/cdns3/core.h | 108 ++ > drivers/usb/cdns3/debug.h | 346 ++++++ > drivers/usb/cdns3/debugfs.c | 168 +++ > drivers/usb/cdns3/drd.c | 315 +++++ > drivers/usb/cdns3/drd.h | 129 ++ > drivers/usb/cdns3/ep0.c | 864 +++++++++++++ > drivers/usb/cdns3/gadget-export.h | 28 + > drivers/usb/cdns3/gadget.c | 1802 ++++++++++++++++++++++++++++ > drivers/usb/cdns3/gadget.h | 1177 ++++++++++++++++++ > drivers/usb/cdns3/host-export.h | 28 + > drivers/usb/cdns3/host.c | 74 ++ > drivers/usb/cdns3/trace.c | 11 + > drivers/usb/cdns3/trace.h | 343 ++++++ You went to the other extreme of combining everything (host/gadget/drd) together which again makes this very hard to review. I think what Felipe meant was to only combine the gadget driver code into one patch. The series could be split into 6 patches like so. -dt binding -pci glue -core driver -host driver -gadget driver -drd driver > 19 files changed, 6065 insertions(+) > create mode 100644 drivers/usb/cdns3/Kconfig > create mode 100644 drivers/usb/cdns3/Makefile > create mode 100644 drivers/usb/cdns3/cdns3-pci-wrap.c > create mode 100644 drivers/usb/cdns3/core.c > create mode 100644 drivers/usb/cdns3/core.h > create mode 100644 drivers/usb/cdns3/debug.h > create mode 100644 drivers/usb/cdns3/debugfs.c > create mode 100644 drivers/usb/cdns3/drd.c > create mode 100644 drivers/usb/cdns3/drd.h > create mode 100644 drivers/usb/cdns3/ep0.c > create mode 100644 drivers/usb/cdns3/gadget-export.h > create mode 100644 drivers/usb/cdns3/gadget.c > create mode 100644 drivers/usb/cdns3/gadget.h > create mode 100644 drivers/usb/cdns3/host-export.h > create mode 100644 drivers/usb/cdns3/host.c > create mode 100644 drivers/usb/cdns3/trace.c > create mode 100644 drivers/usb/cdns3/trace.h > cheers, -roger -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki