Received: by 10.223.185.116 with SMTP id b49csp5883319wrg; Tue, 27 Feb 2018 23:48:16 -0800 (PST) X-Google-Smtp-Source: AH8x2243ONCFuN53ndn7Ju7J5u0W9UVVqIAcLrKeY4QzD8OeLTgWv96azS/uA0Lzp+iyB8kpgqpz X-Received: by 10.99.124.25 with SMTP id x25mr13581645pgc.372.1519804096251; Tue, 27 Feb 2018 23:48:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519804096; cv=none; d=google.com; s=arc-20160816; b=fW+GVegGjWtKLkw5VnEE3Ed4HSSi0JfdYfRAVL0PJ2xFXfVnhBzQA//T4n21+cwIYu AvR0JfzC+z0OY2MaMmr5XiBIHJiZ8x8aLX3XCF+XLK4EQs4k0Z68wv1z84NYUeNRB7A4 pn/zXnyigHr1oe6B8gXOm+SUY/KWLkZBURRgsMhdRhVft94IGbNrA64VYOh5mTw5vHpV gdSLpy7U8WfF6V2GTLy+bDcmcFebOAkH8roqzTJYnI9nFMo/R860Dww8TFkwrlSWYwKB jSv3FL4AdZOEckdgXQYbJh4lzpEOn7Wcpo4tAzVHLe0ZyZQozhf0F3CAZr3S1W1c+WPd ZFNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=iwwo4ft/Mf643a6gg2rMgMh7ltIpmr+tzuy/4gbeAxM=; b=qtdwFr8IrH6Vh1SVt4JOUFn/XNVE1Q7VgSNk6tNT1iXqpsPwMtQHrI+VkVA3nb9VQ2 XP4eFiVqJbI3nFquPsY0N/2/6QhRWRUvg6CHgpMi8xFCsrdyuljaLqrAOB9+7LSJxmy8 GWg7qQA5soGHM1yDYX8/Rip/W5v810stTFD6BqUDFhWsyxqA1zeayQ5QWgnh13KA9io9 wABvabZCFQiYY/5WKGLVVsRpYUtjUxhvVTbdCbXcD7YhdpFCMUZ8yD6H4Glsbj+atgGt 7TxDueVEnuxq4v5KEAbwCokIj0POKPqt2I+6DkPSbqzBZapDSTs4qQ6Vmpkmxcmz5Ydj KxqQ== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g87si817240pfg.251.2018.02.27.23.48.01; Tue, 27 Feb 2018 23:48:16 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752050AbeB1Hqn (ORCPT + 99 others); Wed, 28 Feb 2018 02:46:43 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:59761 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751423AbeB1Hql (ORCPT ); Wed, 28 Feb 2018 02:46:41 -0500 X-UUID: 7a8b5a36d57b48b99095f900001d64f1-20180228 Received: from mtkcas32.mediatek.inc [(172.27.4.250)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 982914475; Wed, 28 Feb 2018 15:46:18 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 28 Feb 2018 15:46:17 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 28 Feb 2018 15:46:16 +0800 Message-ID: <1519803976.23198.6.camel@mhfsdcap03> Subject: Re: [PATCH v2 3/4] pinctrl: add mt2712 pinctrl driver From: Zhiyong Tao To: Sean Wang CC: , , , , , , , , , , , , , , , Date: Wed, 28 Feb 2018 15:46:16 +0800 In-Reply-To: <1519802048.8089.17.camel@mtkswgap22> References: <1519634042-12063-1-git-send-email-zhiyong.tao@mediatek.com> <1519634042-12063-4-git-send-email-zhiyong.tao@mediatek.com> <1519802048.8089.17.camel@mtkswgap22> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-02-28 at 15:14 +0800, Sean Wang wrote: > Hi, Zhiyong > > all seems better than v1, but some nitpicking is addressed as below > > Sean > > On Mon, 2018-02-26 at 16:34 +0800, Zhiyong Tao wrote: > > The commit includes mt2712 pinctrl driver. > > > > Signed-off-by: Zhiyong Tao > > --- > > drivers/pinctrl/mediatek/Kconfig | 7 + > > drivers/pinctrl/mediatek/Makefile | 1 + > > drivers/pinctrl/mediatek/pinctrl-mt2712.c | 639 ++++++++ > > drivers/pinctrl/mediatek/pinctrl-mtk-mt2712.h | 1973 +++++++++++++++++++++++++ > > 4 files changed, 2620 insertions(+) > > create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt2712.c > > create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt2712.h > > > > diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig > > index 3e59874..b24bc76 100644 > > --- a/drivers/pinctrl/mediatek/Kconfig > > +++ b/drivers/pinctrl/mediatek/Kconfig > > @@ -32,6 +32,13 @@ config PINCTRL_MT8127 > > select PINCTRL_MTK > > > > # For ARMv8 SoCs > > +config PINCTRL_MT2712 > > + bool "Mediatek MT2712 pin control" > > > should be MediaTek for normal ==> Thanks for your suggestion. We will correct it in v3. > > > + depends on OF > > + depends on ARM64 || COMPILE_TEST > > + default ARM64 && ARCH_MEDIATEK > > + select PINCTRL_MTK > > + > > config PINCTRL_MT7622 > > bool "MediaTek MT7622 pin control" > > depends on OF > > diff --git a/drivers/pinctrl/mediatek/Makefile b/drivers/pinctrl/mediatek/Makefile > > index ed7d2b2..7959e77 100644 > > --- a/drivers/pinctrl/mediatek/Makefile > > +++ b/drivers/pinctrl/mediatek/Makefile > > @@ -4,6 +4,7 @@ obj-$(CONFIG_PINCTRL_MTK) += pinctrl-mtk-common.o > > > > # SoC Drivers > > obj-$(CONFIG_PINCTRL_MT2701) += pinctrl-mt2701.o > > +obj-$(CONFIG_PINCTRL_MT2712) += pinctrl-mt2712.o > > obj-$(CONFIG_PINCTRL_MT8135) += pinctrl-mt8135.o > > obj-$(CONFIG_PINCTRL_MT8127) += pinctrl-mt8127.o > > obj-$(CONFIG_PINCTRL_MT7622) += pinctrl-mt7622.o > > diff --git a/drivers/pinctrl/mediatek/pinctrl-mt2712.c b/drivers/pinctrl/mediatek/pinctrl-mt2712.c > > new file mode 100644 > > index 0000000..b6ae71b > > --- /dev/null > > +++ b/drivers/pinctrl/mediatek/pinctrl-mt2712.c > > @@ -0,0 +1,639 @@ > > +/* > > + * Copyright (c) 2014-2015 MediaTek Inc. > > + * Author: Hongzhou.Yang > > + * > > + * This program is free software; you can redistribute it and/or modify > > + * it under the terms of the GNU General Public License version 2 as > > + * published by the Free Software Foundation. > > + * > > + * This program is distributed in the hope that it will be useful, > > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > > + * GNU General Public License for more details. > > + */ > > + > > suggest to consider more on using SPDX identifiers and > using right data for both fields Copyright and Author ==> Thanks for your suggestion. We will correct it in v3. > > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include "pinctrl-mtk-common.h" > > +#include "pinctrl-mtk-mt2712.h" > > + > > <...> > > > diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-mt2712.h b/drivers/pinctrl/mediatek/pinctrl-mtk-mt2712.h > > new file mode 100644 > > index 0000000..71f4190 > > --- /dev/null > > +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt2712.h > > @@ -0,0 +1,1973 @@ > > +/* > > + * Copyright (C) 2015 MediaTek Inc. > > + * > > + * This program is free software: you can redistribute it and/or modify > > + * it under the terms of the GNU General Public License version 2 as > > + * published by the Free Software Foundation. > > + * > > + * This program is distributed in the hope that it will be useful, > > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > > + * GNU General Public License for more details. > > + */ > > Ditto > > > +#ifndef PINCTRL_MTK_MT2712_H > > +#define PINCTRL_MTK_MT2712_H > > + > > <...> > > > + > > +#endif /* __PINCTRL_MTK_MT2712_H */ > >