From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932352AbdJXKmQ (ORCPT ); Tue, 24 Oct 2017 06:42:16 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:9035 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751918AbdJXKmM (ORCPT ); Tue, 24 Oct 2017 06:42:12 -0400 Subject: Re: [RFC 2/3] USB: dwc3: Modify dwc3 code for support usb of Hikey960 To: , , , References: <20171024060610.10712-1-chenyu56@huawei.com> <20171024060610.10712-3-chenyu56@huawei.com> <87a80hgdgf.fsf@linux.intel.com> CC: wangbinghui 00388012 From: Chen Yu Message-ID: <3afa825f-f851-e7df-bfa0-db5daa5d31fd@huawei.com> Date: Tue, 24 Oct 2017 18:41:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.142.63.192] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.59EF18EA.009B,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 2726f880851a8c6c76d1349cc6abd8f3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Felipe On 2017/10/24 16:25, Felipe Balbi wrote: > Hi, > > Yu Chen writes: >> > The usb controller of Kirin960 is DesignWare Cores SuperSpeed USB 3.0 Controller. >> > The patch modifies dwc3 for support Kirin960 and adds codes for a USB Hub on board Hikey960. >> > >> > Signed-off-by: Yu Chen > > > Signed-off-by: Ning Fan > > Signed-off-by: Di Yang > > Signed-off-by: Rui Li > I think Linaro, recently, added support for chargers to mainline. You > should use what they did. > > I'm gonna stop here. There's no way I'm going through this much code in > a single patch. Specially since 90% of it is either completely > unnecessary or should be done using already-existing generic APIs. > > Sorry, no cookie today. Thanks a lot for your comments! These codes have been tested on Hikey960 board and work well. But indeed the codes can be simplified and made comply with already-existing architecture. We will work on these codes according to your reviews and make parted patch next time. Thanks, Yu Chen