From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755193AbdEAGoT (ORCPT ); Mon, 1 May 2017 02:44:19 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:25197 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752151AbdEAGoP (ORCPT ); Mon, 1 May 2017 02:44:15 -0400 Message-ID: <1493621047.32195.4.camel@mtkswgap22> Subject: Re: [PATCH v2 02/30] pinctrl: mediatek: reuse pinctrl driver for mt7623 From: Sean Wang To: Linus Walleij CC: Rob Herring , Matthias Brugger , John Crispin , Mark Rutland , Russell King , "devicetree@vger.kernel.org" , "moderated list:ARM/Mediatek SoC support" , "linux-arm-kernel@lists.infradead.org" , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Date: Mon, 1 May 2017 14:44:07 +0800 In-Reply-To: References: <1493198774-4478-1-git-send-email-sean.wang@mediatek.com> <1493198774-4478-3-git-send-email-sean.wang@mediatek.com> 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-04-28 at 10:01 +0200, Linus Walleij wrote: > On Wed, Apr 26, 2017 at 11:25 AM, wrote: > > > From: Sean Wang > > > > mt7623 pinctrl driver can be compatible with mt2701 one, > > so the patch reuses the driver and deletes those redundant > > ones. > > > > Cc: John Crispin > > Signed-off-by: Sean Wang > > Partly correct. > > > "mediatek,mt6397-pinctrl", compatible with mt6397 pinctrl. > > - "mediatek,mt7623-pinctrl", compatible with mt7623 pinctrl. > > NO don't do this. > > "compatible" means exactly this: this hardware is compatible with > this driver. That is why we have it! > > So instead of mt7623 pretending to be mt2701, let the mt2701 driver > list that it is compatible with mt7623, simple. > > So patch pinctrl-mt2701.c mt2701_pctrl_match[] instead. > Hi Linus, really appreciate your clear guidance and reviewing on this I will fix it up in the next version Sean > Yours, > Linus Walleij