Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2108033imm; Thu, 2 Aug 2018 06:25:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd5iLsx6fJdoeVNPGSRxfcOexmuGB6BGej+dInXMI4rFEss6pcfq8wXtGZ/TJli7hvcv8rM X-Received: by 2002:a63:f14d:: with SMTP id o13-v6mr2878696pgk.236.1533216337086; Thu, 02 Aug 2018 06:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533216337; cv=none; d=google.com; s=arc-20160816; b=uotLALSsdPdTXP1dz+ba5Cxa/gsZI1Nym3o+4FB2gzjwPnWvwEMV5yCSwExO9WuGN0 R4ukJcqzMXisyNaZYTLesWf1Y0A5toBVH1u+UjDluWZ3w2Nf4/gbtjI4GBODQV+Z8qoI oMFu2h8y1TmsIMu0Qzl37eIfOg5assasGcGV7rXtZpRBSectTzFtq7PDyc0v6yrI5mUk FsPRuHVQQ61OrAk7odi6c8Z7irOPSlxhhwjwrMh1GDK2BUkrVdeWVV3gBWT1x0Xr515S pSr1kjtIjncTcssFYXGs/PD55syFvbRLjJl1XFLEg9MgOtySjuV80HB5d9C5vZGvPNAj dGgg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=E7lm9e3z4wgOvAgoz0h4TVxVFAvbGGjAg3VtJk+6hRo=; b=RPP2P9KOcAOypKyGnbCO/M8ESbjPbxZmCaaE0RGQ0un4Zb72aMAh8lzpDDGR3Q5CJo 7DvpXfxJ4wyxb09pojHRCbA+YuS4K2bCIHF4BcseOAY+EcW/i2DYZPAS6aAc9vPWa2D/ U0d5KKDf+9nAkWleVoenuPGG5hB1jtGp6D7is5jMT3MBmB3dEyxLHcMZtR4uqtvyMcEG LhTLS9EGSQkA2qxp2TTR44h6RhoWzRKpvlfc9t06x7FH3RJnQ0SIy1UNOtTjXSNeSHxJ /zEfeAiEgDnAlowPZWEhm/eedelXPiCFPy4w8XxYd4TZoQcwgAZx3H0tU+7sHDJ5dAXq KwqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=F2nBrbWC; 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 f21-v6si1853170pgk.418.2018.08.02.06.25.21; Thu, 02 Aug 2018 06:25:37 -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=F2nBrbWC; 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 S2387498AbeHBPPn (ORCPT + 99 others); Thu, 2 Aug 2018 11:15:43 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:50772 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732270AbeHBPPn (ORCPT ); Thu, 2 Aug 2018 11:15:43 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id w72DOR8A042985; Thu, 2 Aug 2018 08:24:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1533216267; bh=E7lm9e3z4wgOvAgoz0h4TVxVFAvbGGjAg3VtJk+6hRo=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=F2nBrbWCSo9nxFxlfC6/svSYkyKUVtEc8Pkh70T8oTFoAkL+ZqsrasosIScaScykC /32LOwPjRzm0arFLZvaKnsiDuidbp7BmJzTe3pyfAfvbXM/w0JbI9chY9cf8cGCenz F/9j4kD/xa3DCAcWq5H4GQ+9AsAKP2KFMW1FuRvc= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w72DORBo006143; Thu, 2 Aug 2018 08:24:27 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 2 Aug 2018 08:24:26 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 2 Aug 2018 08:24:26 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w72DOOV5020440; Thu, 2 Aug 2018 08:24:25 -0500 Subject: Re: [PATCH 00/31] Introduced new Cadence USBSSP DRD Driver To: Pawel Laszczak CC: Greg Kroah-Hartman , "linux-usb@vger.kernel.org" , Felipe Balbi , "linux-kernel@vger.kernel.org" , Lukasz Tyrala , Alan Douglas References: <1532023084-28083-1-git-send-email-pawell@cadence.com> <82e8093d-eb6b-ea04-7d36-54ee27df3e06@ti.com> From: Roger Quadros Openpgp: preference=signencrypt Autocrypt: addr=rogerq@ti.com; prefer-encrypt=mutual; keydata= xsFNBFT1lPYBEADZlKgOS2lxNkDRlc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9F 4VdByWgWCCY5Ynhe188sqNL+mFqLAaIssqyYwTBJM+Go6tOuRnP6jrkf2Va/pIwIltzf9QOW cgEAEQEAAcLBXwQYAQIACQUCVPWU9gIbDAAKCRDSWmvTvnYwk8niEACcwBAfe1tTSqCCHkRj zgIrt+NPBBfxilf9JXPGTYqfUkrcVfiNqLGFgIDZKjkLfArxiSmpmtKf1O1VYO9XDgADUKJO RvmUQM/l3Q99QC5b8yUyZOsgfSBOsV6DeqiULO30cXH/uEpR2fUcbtyYXHouiF2UNdq/BV5h HBQkGYtTf7K26NPp4wXMS+YsBm2Gbms/wywJh4KgRPP6LuA+UE/7l0xqMD3pBQ/L1KLTqOQY CItcZ0YbEvlrJc25PRkCssHf1J2c2MXV+CRqsibW8UamBmOyzKHVK/CwvIndwBmcciJrOf+4 uxegvXEnwvYPuQ3wvBSkgbJRFNJemnp5KSczANr4R/aA5cEbxhbg7peLv0FdFyTFJXCsKeuO 1gKoKtOLyxRhDocprSuEamaDWDCy3TmX+6nWaBIPYXDFT7IcHT6l6TyZ6IMjkXiHSLhynTIj f2xjSrvKPljIUxcqjhyqWe+coe/Xwbqz69DsK150xoAaoS3rbNlhmalbg15HNTipNDI/k81A fwt7ncjxvjXVJnA2nqPBDIW3mZO/ED0blLrVdaMZjf5LvS+vvsMdH7dHtrAXA50egr74sX0A NO7iW+gkmFYwap531ipMXthHPWbo5x9xfb+a48xA80ePBJLBDyw9X+cOe40+N4Ybiwy5Q2La IwrfNkJOLj3CvocMIw== Message-ID: <9bc72745-9c19-1522-ab90-ef8a4ef29917@ti.com> Date: Thu, 2 Aug 2018 16:24:24 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-GB Content-Transfer-Encoding: 8bit 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 On 02/08/18 07:26, Pawel Laszczak wrote: >>> This patch set introduce new Cadence USBSSP DRD driver to linux >>> kernel. >>> >>> The Cadence USBSSP DRD Driver s 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 site of USBSSP controller is compliance with XHCI >>> specification, so it works with standard XHCI linux driver. >>> >>> Also, device side of USBSSP controller was designed in such way to >>> looks like XHCI. It means that most of logic of USBSSP controller is >>> also compliance with XHCI specification. >>> >>> Consequently, the USBSSP driver for peripheral mode is very similar to >>> XHCI driver. >>> >>> This version of driver supports only Device mode but DRD and Host mode >>> will be added in the future. >>> >> >> Based on the posting date this series looks like v3. >> >> You should add the version prefix to the patches next time. >> e.g. [PATCH v4 ...] >> > I wanted to start versioning driver after this set patch will be approved. > Also I have plan to add change-log after approval this patch set. > I now treat this patch set as Initial version of driver. > If my approach is incorrect please correct me ?? > Maybe before approval the better versioning will be [PATCH vrc4] ? You should prefix patch with RFC. [RFC PATCH v4] Drop the RFC and reset version to 1 when things are ready for integration. > >> It is also recommended to add a Change-log in the cover letter explaining >> what changes were made in each revision. >> > I > >> There are a bunch of checkpatch warnings in this series. >> You can use ./scripts/checkpatch.pl on the patches and fix the issues. > Yes I know, but most of them are related to "line over 80 characters" > and " quoted string split across lines" warnings. The first group I could correct > but then I will make readability worse. > To eliminate the second group I will have to enlarge the first group of warnings and > the number of characters in single line will be bigger than 100. Readability is preferred over getting rid of "line over 80 char" warning. But it is maintainer's call here. >>> --- >>> >>> Pawel Laszczak (31): >>> usb: usbssp: Defined register maps and other useful structures. >>> usb: usbssp: Added some decoding functions. >>> usb: usbssp: Add trace events used in driver >>> usb: usbssp: Added USBSSP platform driver >>> usb: usbssp: Added first part of initialization sequence. >>> usb: usbssp: added template functions used by upper layer. >>> usb: usbssp: Initialization - added usbssp_mem_init >>> usb: usbssp: Added ring and segment handling functions. >>> usb: usbssp: add implementation of usbssp_mem_cleanup >>> usb: usbssp: added usbssp_trb_in_td function. >>> usb: usbssp: added function for stopping driver. >>> usb: usbssp: added functions for queuing commands. >>> usb: usbssp: addec procedure for handlin Port Status Change events. >>> usb: usbssp: added procedure handling command completion events. >>> usb: usbssp: added device controller error, transfer and SETUP >>> completion event. >>> usb: usbssp: added connect/disconnect procedures. >>> usb: usbssp: added implementation of usbssp_halt_endpoint function. >>> usb: usbssp: added handling of Port Reset event. >>> usb: usbssp: added support for USB enumeration process. >>> usb: usbssp: added queuing procedure for control transfer. >>> usb: usbssp: added queuing procedure for BULK and INT transfer. >>> usb: usbssp: added procedure removing request from transfer ring >>> usb: usbssp: added implementation of transfer events. >>> usb: usbssp: added detecting command timeout. >>> usb: usbssp: added implementation of usbssp interface. >>> usb: usbssp: added endpoint configuration functionality. >>> usb: usbssp: implements usbssp_gadget_ep_enable function >>> usb: usbssp: implemented usbssp_gadget_ep_disable function. >>> usb: usbssp: added support for LPM. >>> usb: usbssp: added support for TEST_MODE. >>> usb: usbssp: add pci to platform driver wrapper. >>> >>> drivers/usb/Kconfig | 2 + >>> drivers/usb/Makefile | 2 + >>> drivers/usb/usbssp/Kconfig | 29 + >>> drivers/usb/usbssp/Makefile | 15 + >>> drivers/usb/usbssp/gadget-dbg.c | 39 + >>> drivers/usb/usbssp/gadget-ep0.c | 571 +++++ >>> drivers/usb/usbssp/gadget-ext-caps.h | 102 + >>> drivers/usb/usbssp/gadget-if.c | 569 +++++ >>> drivers/usb/usbssp/gadget-mem.c | 1938 +++++++++++++++ >>> drivers/usb/usbssp/gadget-port.c | 287 +++ >>> drivers/usb/usbssp/gadget-ring.c | 3452 ++++++++++++++++++++++++++ >>> drivers/usb/usbssp/gadget-trace.c | 13 + >>> drivers/usb/usbssp/gadget-trace.h | 482 ++++ >>> drivers/usb/usbssp/gadget.c | 1909 ++++++++++++++ >>> drivers/usb/usbssp/gadget.h | 2373 ++++++++++++++++++ >>> drivers/usb/usbssp/usbssp-pci-wrap.c | 226 ++ >>> drivers/usb/usbssp/usbssp-plat.c | 186 ++ >>> 17 files changed, 12195 insertions(+) create mode 100644 >>> drivers/usb/usbssp/Kconfig create mode 100644 >>> drivers/usb/usbssp/Makefile create mode 100644 >>> drivers/usb/usbssp/gadget-dbg.c create mode 100644 >>> drivers/usb/usbssp/gadget-ep0.c create mode 100644 >>> drivers/usb/usbssp/gadget-ext-caps.h >>> create mode 100644 drivers/usb/usbssp/gadget-if.c create mode 100644 >>> drivers/usb/usbssp/gadget-mem.c create mode 100644 >>> drivers/usb/usbssp/gadget-port.c create mode 100644 >>> drivers/usb/usbssp/gadget-ring.c create mode 100644 >>> drivers/usb/usbssp/gadget-trace.c create mode 100644 >>> drivers/usb/usbssp/gadget-trace.h create mode 100644 >>> drivers/usb/usbssp/gadget.c create mode 100644 >>> drivers/usb/usbssp/gadget.h create mode 100644 >>> drivers/usb/usbssp/usbssp-pci-wrap.c >>> create mode 100644 drivers/usb/usbssp/usbssp-plat.c >>> >> >> -- > cheers, > Pawel > -- cheers, -roger Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki