Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756040AbbHZMiX (ORCPT ); Wed, 26 Aug 2015 08:38:23 -0400 Received: from mail-ob0-f172.google.com ([209.85.214.172]:35690 "EHLO mail-ob0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755531AbbHZMiV (ORCPT ); Wed, 26 Aug 2015 08:38:21 -0400 MIME-Version: 1.0 In-Reply-To: <1440549165-35637-1-git-send-email-hongzhou.yang@mediatek.com> References: <1440549165-35637-1-git-send-email-hongzhou.yang@mediatek.com> Date: Wed, 26 Aug 2015 14:38:20 +0200 Message-ID: Subject: Re: [PATCH v4] pinctrl: mediatek: Fix multiple registration issue. From: Linus Walleij To: Hongzhou Yang Cc: Matthias Brugger , Axel Lin , Yingjoe Chen , Antoine Tenart , Maoguang Meng , Masahiro Yamada , Chaotian Jing , "linux-gpio@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , linux-mediatek@lists.infradead.org, "linux-kernel@vger.kernel.org" , srv_heupstream@mediatek.com, Sascha Hauer Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1178 Lines: 34 On Wed, Aug 26, 2015 at 2:32 AM, Hongzhou Yang wrote: > Since our common driver need support main chip and PMU > at the same time, that means it will register two > pinctrl device, and the pinctrl_desc structure should > be used two times. > > But pinctrl_desc use global static definition, then > the latest registered pinctrl device will overwrite > the old one's, all members in pinctrl_desc will set to > the new one's, such as name, pins and pins numbers, etc. > This is a bug. > > Move pinctrl_desc into mtk_pinctrl, assign new value for > each pinctrl device to fix it. > > Cc: stable@vger.kernel.org # v4.1+ > Signed-off-by: Hongzhou Yang > Reviewed-by: Axel Lin > --- > In order to fix multiple registration issue, move > pinctrl_desc into mtk_pinctrl, assign new value for > each pinctrl device. This patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/