Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3448266pxk; Mon, 28 Sep 2020 18:51:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycLutLwCQMLrwr/kHlmV54YOvMV2QnvXXzH1WoJbXq+1D6JdqwRtNTI7Tn1Z/kxC2VsckU X-Received: by 2002:aa7:c693:: with SMTP id n19mr845890edq.101.1601344318171; Mon, 28 Sep 2020 18:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601344318; cv=none; d=google.com; s=arc-20160816; b=TzyGtfQNjt3I9RztmYvHOAmB0Wke7dKrMeLSwjwr4daaTcYE3FlOSRz+HkBrT1XRBo UD94ihZqp2yxQqRoh4YddxhYbkW9nvTChtUf8Rs3nk5mDUtRi29rsV/pWpvZzxykq30t 0Pk6HZBFm48C+K2hJ3vQ3T5uYrn1W/th/9Uz4oqubyzD3p4F889FTjMMMIYeBzRVAgJp dA0nlAwwSGRisMvasX3Ui9lnnqktHYp9GNsiNTy6FavmyszZ3C09jdZdBJm4ZZuQGTcc HFV0l4p2O3LAn9DYRt+8vnfrRbADRy66GaUgStzXFqOQt5gfsa9GhPmE23XN+kO9E2lF p7HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=f27XtUCLTljbNuG7CVEDs5i7W7RSKIiuYOb8XIVa05c=; b=ETQ3aTUDJ9nvqw/3LpdeCO6NMscCYjVpCrjYrOqZTgnBeFpKa11IxNRzy7pR72AoY3 BUuKxRA7MmQ/h0m97VnAIS/9i4SPpcK2kCUOD8Akh1W5Etf+Dyszxj+2xOJQPD0jBRtp zyid1V3EX8sraq9ZUaUAH5pcuHKaGPonHjYYUiTmmYJh8dP8wmC3XoX3GhHWpaEfsk0U dTsQAHVgu3dK1lGZoogqviqwJ/cq2YCqXGuhGMgPY/cdjVE4MzsJEFHOVFARR4HuINqL wBAvEiilkDIkS7Ri3e58vIVBEBBtukzLp+uCS0u9DwnCr9+ocIrD5uOoFO5Cw7LYFVqM LURA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CRqIZK8Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hh9si1782489ejb.38.2020.09.28.18.51.27; Mon, 28 Sep 2020 18:51:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CRqIZK8Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727289AbgI2Bsz (ORCPT + 99 others); Mon, 28 Sep 2020 21:48:55 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:23275 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726064AbgI2Bsz (ORCPT ); Mon, 28 Sep 2020 21:48:55 -0400 X-UUID: ae7f065d6207439184ac196f663ab95f-20200929 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=f27XtUCLTljbNuG7CVEDs5i7W7RSKIiuYOb8XIVa05c=; b=CRqIZK8YM4occM0CUGrVoqEA3529OxJ6rItN0QYpHlPA/lRdjYeclUh9EhuevCyI2l3d2cp1M2jVHMVRd+ypYoKFjgu7MkE8ygTBketGGH73pkrpVF1WGzsEu+28Qx0M/shXKywSh7uh6hKOL6tuafS9pq+TVl82JvJQhCa6oKg=; X-UUID: ae7f065d6207439184ac196f663ab95f-20200929 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1964755560; Tue, 29 Sep 2020 09:48:39 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 29 Sep 2020 09:48:37 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 29 Sep 2020 09:48:37 +0800 Message-ID: <1601343964.29336.16.camel@mhfsdcap03> Subject: Re: [PATCH 2/8] usb: cdns3: Split core.c into cdns3-plat and core.c file From: Chunfeng Yun To: Pawel Laszczak CC: , , , , , , , , , , , , Date: Tue, 29 Sep 2020 09:46:04 +0800 In-Reply-To: <20200928122741.17884-3-pawell@cadence.com> References: <20200928122741.17884-1-pawell@cadence.com> <20200928122741.17884-3-pawell@cadence.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: C795A18CD452E3570818A0EF509A8B88B6B680B1F207D2C5DC5FE641AF49205A2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIwLTA5LTI4IGF0IDE0OjI3ICswMjAwLCBQYXdlbCBMYXN6Y3phayB3cm90ZToN Cj4gUGF0Y2ggc3BsaXRzIGZpbGUgY29yZS5jIGludG8gY29yZS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