Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933388AbbESO6V (ORCPT ); Tue, 19 May 2015 10:58:21 -0400 Received: from mail-oi0-f44.google.com ([209.85.218.44]:35347 "EHLO mail-oi0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753895AbbESO6U (ORCPT ); Tue, 19 May 2015 10:58:20 -0400 MIME-Version: 1.0 In-Reply-To: <20150519075537.GU4004@lukather> References: <1431707940-19372-1-git-send-email-jenskuske@gmail.com> <1431707940-19372-5-git-send-email-jenskuske@gmail.com> <20150517141922.GE4004@lukather> <5559B1AF.2010200@gmail.com> <20150519075537.GU4004@lukather> Date: Tue, 19 May 2015 16:58:19 +0200 Message-ID: Subject: Re: [PATCH v2 04/10] pinctrl: sunxi: Prepare for building SoC specific drivers as modules From: Linus Walleij To: Maxime Ripard , Johan Hovold Cc: Jens Kuske , =?UTF-8?Q?Emilio_L=C3=B3pez?= , Mike Turquette , Rob Herring , Chen-Yu Tsai , Vishnu Patekar , Hans de Goede , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , linux-sunxi 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: 842 Lines: 23 On Tue, May 19, 2015 at 9:55 AM, Maxime Ripard wrote: >> Apart from that, currently the kernel panics some seconds after removing >> the pinctrl module because mmc wants to access a gpio. Can this be >> prevented somehow? I think pinctrl must not be removed once other >> devices use any pin-related things. > > pinctrl_unregister doesn't look like it cares about whether or not > there's users left in the system. Both GPIO and pinctrl has this problem, Johan Hovold has been looking at fixing the GPIO side of things. Patches welcome. 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/