From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH v2 04/10] pinctrl: sunxi: Prepare for building SoC specific drivers as modules Date: Tue, 19 May 2015 16:58:19 +0200 Message-ID: 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> Reply-To: linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <20150519075537.GU4004@lukather> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , linux-sunxi List-Id: devicetree@vger.kernel.org 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