Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755009AbbGPM1V (ORCPT ); Thu, 16 Jul 2015 08:27:21 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:36581 "EHLO mail-ob0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753149AbbGPM1R (ORCPT ); Thu, 16 Jul 2015 08:27:17 -0400 MIME-Version: 1.0 In-Reply-To: <1435245213-17858-1-git-send-email-grygorii.strashko@ti.com> References: <1435245213-17858-1-git-send-email-grygorii.strashko@ti.com> Date: Thu, 16 Jul 2015 14:27:17 +0200 Message-ID: Subject: Re: [PATCH] gpio: omap: prevent module from being unloaded while in use From: Linus Walleij To: Grygorii Strashko Cc: Alexandre Courbot , Tony Lindgren , Sekhar Nori , Santosh Shilimkar , Javier Martinez Canillas , Linux-OMAP , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" 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: 1049 Lines: 32 On Thu, Jun 25, 2015 at 5:13 PM, Grygorii Strashko wrote: > OMAP GPIO driver allowed to be built as loadable module, but it > doesn't set owner field in GPIO chip structure. As result, > module_get/put() API is not working and it's possible to unload > OMAP driver while in use: > > omap_gpio 48051000.gpio: REMOVING GPIOCHIP WITH GPIOS STILL REQUESTED > > Hence, add missing configuration. > > Cc: Tony Lindgren > Fixes: cac089f9026e ('gpio: omap: Allow building as a loadable module') > Signed-off-by: Grygorii Strashko > --- > Hi Linus, > > Seems this one is for 4.2-rc. Yup applied for fixes with Alex' ACK. The bigger fix is applied for devel and the best way to handle this is open for discussion. 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/