From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753076AbdLUGuw (ORCPT ); Thu, 21 Dec 2017 01:50:52 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:57098 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750797AbdLUGuu (ORCPT ); Thu, 21 Dec 2017 01:50:50 -0500 X-UUID: 2fd4dcb631b342d9aebe55f9bb130b54-20171221 Message-ID: <1513839044.17567.179.camel@mhfsdcap03> Subject: Re: [PATCH 1/7] soc: mediatek: Add USB wakeup driver From: Chunfeng Yun To: Rob Herring CC: Felipe Balbi , Matthias Brugger , Mathias Nyman , "Mark Rutland" , Greg Kroah-Hartman , Catalin Marinas , Will Deacon , Jean Delvare , "Sean Wang" , , , , , Date: Thu, 21 Dec 2017 14:50:44 +0800 In-Reply-To: <20171215205550.dkiymkok6arheidg@rob-hp-laptop> References: <1512809136-2779-1-git-send-email-chunfeng.yun@mediatek.com> <1512809136-2779-2-git-send-email-chunfeng.yun@mediatek.com> <20171215205550.dkiymkok6arheidg@rob-hp-laptop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2017-12-15 at 14:55 -0600, Rob Herring wrote: > On Sat, Dec 09, 2017 at 04:45:30PM +0800, Chunfeng Yun wrote: > > This driver is used to support usb wakeup which is controlled by > > the glue layer between SSUSB and SPM. Usually the glue layer is put > > into a system controller, such as pericfg module, which is > > represented by a syscon node in DTS. > > Due to the glue layer may vary on different SoCs, it's useful to > > extract a separated driver to simplify usb controller drivers. > > > > Signed-off-by: Chunfeng Yun > > --- > > drivers/soc/mediatek/Kconfig | 8 + > > drivers/soc/mediatek/Makefile | 1 + > > drivers/soc/mediatek/mtk-usb-wakeup.c | 519 ++++++++++++++++++++++++++ > > include/dt-bindings/soc/mediatek,usb-wakeup.h | 15 + > > This belongs in the binding patch and that should come first. > > > include/linux/soc/mediatek/usb-wakeup.h | 88 +++++ > > 5 files changed, 631 insertions(+) > > create mode 100644 drivers/soc/mediatek/mtk-usb-wakeup.c > > create mode 100644 include/dt-bindings/soc/mediatek,usb-wakeup.h > > create mode 100644 include/linux/soc/mediatek/usb-wakeup.h > > > +++ b/drivers/soc/mediatek/mtk-usb-wakeup.c > > @@ -0,0 +1,519 @@ > > +/* > > + * Copyright (c) 2017 MediaTek Inc. > > + * Author: Chunfeng Yun > > + * > > + * SPDX-License-Identifier: GPL-2.0 > > This should be the first line of the file and use a // style comment. > > [...] > > > diff --git a/include/dt-bindings/soc/mediatek,usb-wakeup.h b/include/dt-bindings/soc/mediatek,usb-wakeup.h > > new file mode 100644 > > index 0000000..2461795 > > --- /dev/null > > +++ b/include/dt-bindings/soc/mediatek,usb-wakeup.h > > @@ -0,0 +1,15 @@ > > +/* > > + * Copyright (c) 2017 MediaTek Inc. > > + * Author: Chunfeng Yun > > + * > > + * SPDX-License-Identifier: GPL-2.0 > > ditto. Except headers use /* */ comments... modify it next version. Thanks