Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2598841ybl; Sun, 11 Aug 2019 05:04:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqztFAGCZKNUddRpaFFOllkMa/D52DZ/R6P0HGikF1f4joy6+WKMsV22z6PomIMMV7UncGD5 X-Received: by 2002:aa7:8817:: with SMTP id c23mr31411911pfo.146.1565525087208; Sun, 11 Aug 2019 05:04:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1565525087; cv=pass; d=google.com; s=arc-20160816; b=PG2RT3lr+QDYoLYeZevw40Q2TM8FogInEfFgYYlH3RSJJVwwvrnYx4uQnUfWTibRxx F0O9Nd+K7Xb5jhDzVRzgHbzs+VY+T4n6PjDA5apgTRIxF0MSUujBD4TdrWD3upGxHJu+ ABKxlk34ZDilQLvP/lmpwtIem0UenHdcbjvvn76k9wPjIelNnGfGwOHsbC/Iq+SK7eVb fvBWEEfBFXck+nsY8RR0dpWJoPA5aydX2sfrLOVa0KEsnQKq0D+5UTH2aR75XOSSiEbe nWkS+4LhUnwmYHz7Ho5UZNt4c/1+w/AAonNDKqwYdcISrRBx1p1GTz0kqAt2Ev0E5J19 I/hw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature; bh=Pg4Mf4Y7lfjaSm3XRSeS7b1sENRaR9YtDEq1ue4I2d0=; b=W6wx/3H4L+r/7TLDB6Wef+qK3Un36r8V7VcpEOFgzweAKdb0ZW0X+RmhsJNPPTqLwm LFlyZtUwKLd/s8XYO0IwM2ErJvSAFddGb1g6rry/etnTJmSx+6n13ZSKIVl5Rl664qU6 G6W81kvKnKBulb1hpVppyL5+xtBa/D7jWMWIt2G32fTQS51y60KfUh956YJoq1cN2rkQ y4tI+KpIrKBPeIv+2bIr9VEg2ey/biMorT8aCsthmaMtj4AXpWlPiTKJdCXFMvNMbJkj lUraOxSlSmzfEZOwizPdtTPA6FuYDaUGo0L4FiWsygu0J0qgDY2E7ODnQAIz1220pTDC KYjg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cadence.com header.s=proofpoint header.b=SB4K+ucz; dkim=pass header.i=@cadence.com header.s=selector2 header.b=kgH+cHg0; arc=pass (i=1 spf=pass spfdomain=cadence.com dkim=pass dkdomain=cadence.com dmarc=pass fromdomain=cadence.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=pass (p=NONE sp=NONE dis=NONE) header.from=cadence.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e19si8732191pjp.49.2019.08.11.05.04.02; Sun, 11 Aug 2019 05:04:47 -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=@cadence.com header.s=proofpoint header.b=SB4K+ucz; dkim=pass header.i=@cadence.com header.s=selector2 header.b=kgH+cHg0; arc=pass (i=1 spf=pass spfdomain=cadence.com dkim=pass dkdomain=cadence.com dmarc=pass fromdomain=cadence.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=pass (p=NONE sp=NONE dis=NONE) header.from=cadence.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726267AbfHKMC3 (ORCPT + 99 others); Sun, 11 Aug 2019 08:02:29 -0400 Received: from mx0b-0014ca01.pphosted.com ([208.86.201.193]:18338 "EHLO mx0a-0014ca01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726038AbfHKMC3 (ORCPT ); Sun, 11 Aug 2019 08:02:29 -0400 Received: from pps.filterd (m0042333.ppops.net [127.0.0.1]) by mx0b-0014ca01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7BBnrNC031663; Sun, 11 Aug 2019 04:59:56 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=proofpoint; bh=Pg4Mf4Y7lfjaSm3XRSeS7b1sENRaR9YtDEq1ue4I2d0=; b=SB4K+uczDrHV8fxWVU545EnDaJN9dEdKvyG/SlW5RUYs21DwqRfZeuSh2ZUpPwioG4ml CK979m2n4J4BarDjSHDOy4NU/XYU095RaKv1KEFlfq8riRvnMyNZrh9Ai30yqLoEH6x9 ygE2kwPPlnacjGmQuje5+wC0aYUbw4GGii3gHAn1mJMKCAONYfD2otxsl/bFc+emrr5Y 15RbckTEwv692UgzEUi3CTzzoA04Cj9vlhtMNySTnC1bIKdz0cemB8ll41gcnvCLVOG9 IjyGwAgeymLBL6ZLnAOwfgUh1kfEBuqCsQpcL9bORaCsy/rJ1jfQqXH1NmI3iXQtw3ci ZA== Authentication-Results: cadence.com; spf=pass smtp.mailfrom=pawell@cadence.com Received: from nam02-cy1-obe.outbound.protection.outlook.com (mail-cys01nam02lp2055.outbound.protection.outlook.com [104.47.37.55]) by mx0b-0014ca01.pphosted.com with ESMTP id 2u9sgyttx4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 11 Aug 2019 04:59:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NwvBgB9khZmG2Q+DHKmFdr6e0mvr8nwrlGvhDQZTZbxmfk0HrdE5L4gWb3ivcbg14KZFn6b2Xy2NZgCB30NAwYSvVsyVx5X00ZjwezsqxlTDP1TPUP9jbTb8/w7JML+Kbbafs8ONmrlp0rwLrbq3PUYm7zI1upp42ZbhxqTlAUkgoEzq2fu3tucrKY0V6+w6D37jEIy8OSAM9FrJY/BHN8fv1m4l1VjZrfyvPPzi/5ov983fd/4YvfftRLTh7AhiHbynWQP5McSg6fyMMk9WuxBUw4S7Z69CRhe7Cl/AVcqOC8n+JNwr3nQiwWNG07A/TRgTsYXMCae0qPtoqJPTDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pg4Mf4Y7lfjaSm3XRSeS7b1sENRaR9YtDEq1ue4I2d0=; b=K83GPqw7+HydlyXYTLLFi1vMKSTTi+RaasRqe/Ve0HMB2mwG8pqEAclWHSxtH2O3PXEux7KupPzNVJLjwdA87YVu8LuDMt8W7BESH0bgkFZLsLkVHk/Byqa8iOUYQBgGUzaLwQvp+aerghS4gVmGd5biAHRbAYH7cxg6XAT/bUY3kv3gfu5Vlcj4Ko80QSpWzgj3hTfxgk9NJKq8x8XZjIYqizc6D3UtjNhCqEBvZ1EZGR4cwnPSomK14xQnjFeV94Xdhp/FpTT9IyX8GV4KEleVu7dOGsafB5sLRf1HD8vAomsgnsYla6R/aJrrIO/83dDZWVHzK+3VmkokCERwqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cadence.com; dmarc=pass action=none header.from=cadence.com; dkim=pass header.d=cadence.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pg4Mf4Y7lfjaSm3XRSeS7b1sENRaR9YtDEq1ue4I2d0=; b=kgH+cHg0MoyeCaB/3DZWpWPWNcBPrEju2eRn99+2wkPINWpP1lnC+AwN2wh3T+Occnj8RiNA7ZeiQtkKTcU39XFrhhUqjs/LD30q+asZfgK2kZV57oUcpT1+JFMhvi34hAE40anCkr4RDI7qTCsGjaOSbmU5gK6BJ+kf9Y/Z1c0= Received: from BYAPR07MB4709.namprd07.prod.outlook.com (52.135.204.159) by BYAPR07MB6069.namprd07.prod.outlook.com (20.179.93.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.15; Sun, 11 Aug 2019 11:59:52 +0000 Received: from BYAPR07MB4709.namprd07.prod.outlook.com ([fe80::98f2:1592:6dff:63e]) by BYAPR07MB4709.namprd07.prod.outlook.com ([fe80::98f2:1592:6dff:63e%7]) with mapi id 15.20.2136.022; Sun, 11 Aug 2019 11:59:51 +0000 From: Pawel Laszczak To: Roger Quadros , "felipe.balbi@linux.intel.com" CC: "gregkh@linuxfoundation.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "jbergsagel@ti.com" , "nsekhar@ti.com" , "nm@ti.com" , Suresh Punnoose , Jayshri Dajiram Pawar , Rahul Kumar , Anil Joy Varughese , "heikki.krogerus@linux.intel.com" Subject: RE: [PATCH v10 5/6] usb:cdns3 Add Cadence USB3 DRD Driver Thread-Topic: [PATCH v10 5/6] usb:cdns3 Add Cadence USB3 DRD Driver Thread-Index: AQHVP/LMLOdqGz4qV0qb+zFnj54Ok6bvscSAgAYO39A= Date: Sun, 11 Aug 2019 11:59:51 +0000 Message-ID: References: <1563733939-21214-1-git-send-email-pawell@cadence.com> <1563733939-21214-6-git-send-email-pawell@cadence.com> <88742d5b-ee10-cf4e-6724-58e7bdd19cb9@ti.com> In-Reply-To: <88742d5b-ee10-cf4e-6724-58e7bdd19cb9@ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-tag-bcast: x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNccGF3ZWxsXGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0YmEyOWUzNWJcbXNnc1xtc2ctNWQ2YTk4NWMtYmMyZi0xMWU5LTg3NDUtMWM0ZDcwMWRmYmE0XGFtZS10ZXN0XDVkNmE5ODVkLWJjMmYtMTFlOS04NzQ1LTFjNGQ3MDFkZmJhNGJvZHkudHh0IiBzej0iNjU2OTMiIHQ9IjEzMjA5OTk4MzIzODczMDc5MSIgaD0iemtjWHFiVHZvZGhaS2ZYVkxoei9xVU5EWFZnPSIgaWQ9IiIgYmw9IjAiIGJvPSIxIi8+PC9tZXRhPg== x-dg-paste: x-dg-rorf: x-originating-ip: [185.217.253.59] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b37aa2ad-a770-4ae1-68ce-08d71e536ad0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BYAPR07MB6069; x-ms-traffictypediagnostic: BYAPR07MB6069: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2733; x-forefront-prvs: 0126A32F74 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(376002)(346002)(136003)(39860400002)(366004)(36092001)(199004)(189003)(6246003)(76116006)(2501003)(305945005)(74316002)(8676002)(7736002)(30864003)(66066001)(71200400001)(86362001)(14454004)(478600001)(3846002)(110136005)(6116002)(54906003)(486006)(66446008)(66476007)(64756008)(66556008)(6506007)(52536014)(66946007)(6436002)(5660300002)(53946003)(2906002)(71190400001)(99286004)(26005)(9686003)(7696005)(11346002)(102836004)(76176011)(25786009)(446003)(316002)(55016002)(229853002)(14444005)(81156014)(81166006)(186003)(33656002)(8936002)(256004)(5024004)(4326008)(476003)(53936002)(569006);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR07MB6069;H:BYAPR07MB4709.namprd07.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: cadence.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: QiGtMsCTF0x30RrB1InuRQpbgyG/mzTpxYX7rOm0pHiG2wL6Qizt/6FiCBBSRrghoi3gb2ZdKgMq44aRMGX1ZR/ANItKZhlxMU25irMeM03Pck6Cfhvw89rq/Xjn2Uzr0we+zjewkY3pNKV2mAw3wDTQNsACeiZh6SOdoT5LPr6YjcpiZHPfCOG2r+/XrHz12z42nzy3cVXRLk7UAP3PU7DpWXKVluyejtnzsgnPDNnqmu3/rTZL8QJNAlBPYJ2ouZwEZjcCqgVLBkdUnQVPD1XoD+6Pqtt3NYZpifi5DpEAQMEFdPN/NwKqLzH9SCOMBRFtyKbL631wDRzoMyp8BcZKClqlMnSPBOmkRamWIz7D1EIhOe0eCK5s1+J56keYZpnj2N9UlGnBnFYjruOQtD8fYdE5gs2beM6xFa7ja34= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-Network-Message-Id: b37aa2ad-a770-4ae1-68ce-08d71e536ad0 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Aug 2019 11:59:51.4529 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pawell@global.cadence.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB6069 X-Proofpoint-SPF-Result: pass X-Proofpoint-SPF-Record: v=spf1 include:spf.smktg.jp include:_spf.salesforce.com include:mktomail.com include:spf-0014ca01.pphosted.com include:spf.protection.outlook.com include:auth.msgapp.com include:spf.mandrillapp.com ~all X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-11_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_check_notspam policy=outbound_check score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908110135 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksDQoNCj4NCj5PbiAyMS8wNy8yMDE5IDIxOjMyLCBQYXdlbCBMYXN6Y3phayB3cm90ZToNCj4+ IFRoaXMgcGF0Y2ggaW50cm9kdWNlIG5ldyBDYWRlbmNlIFVTQlNTIERSRCBkcml2ZXIgdG8gTGlu dXgga2VybmVsLg0KPj4NCj4+IFRoZSBDYWRlbmNlIFVTQlNTIERSRCBDb250cm9sbGVyIGlzIGEg aGlnaGx5IGNvbmZpZ3VyYWJsZSBJUCBDb3JlIHdoaWNoDQo+PiBjYW4gYmUgaW5zdGFudGlhdGVk IGFzIER1YWwtUm9sZSBEZXZpY2UgKERSRCksIFBlcmlwaGVyYWwgT25seSBhbmQNCj4+IEhvc3Qg T25seSAoWEhDSSljb25maWd1cmF0aW9ucy4NCj4+DQo+PiBUaGUgY3VycmVudCBkcml2ZXIgaGFz IGJlZW4gdmFsaWRhdGVkIHdpdGggRlBHQSBwbGF0Zm9ybS4gV2UgaGF2ZQ0KPj4gc3VwcG9ydCBm b3IgUENJZSBidXMsIHdoaWNoIGlzIHVzZWQgb24gRlBHQSBwcm90b3R5cGluZy4NCj4+DQo+PiBU aGUgaG9zdCBzaWRlIG9mIFVTQlNTLURSRCBjb250cm9sbGVyIGlzIGNvbXBsaWFudCB3aXRoIFhI Q0kNCj4+IHNwZWNpZmljYXRpb24sIHNvIGl0IHdvcmtzIHdpdGggc3RhbmRhcmQgWEhDSSBMaW51 eCBkcml2ZXIuDQo+Pg0KPj4gU2lnbmVkLW9mZi1ieTogUGF3ZWwgTGFzemN6YWsgP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