From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2] net: allwinner: emac: Add missing free_irq Date: Tue, 10 Dec 2013 18:01:38 -0500 (EST) Message-ID: <20131210.180138.15284905537878885.davem@davemloft.net> References: <1386700849-8496-1-git-send-email-maxime.ripard@free-electrons.com> Reply-To: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=ISO-8859-1 Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org Return-path: In-Reply-To: <1386700849-8496-1-git-send-email-maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> List-Post: , List-Help: , List-Archive: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , List-Id: netdev.vger.kernel.org From: Maxime Ripard Date: Tue, 10 Dec 2013 19:40:43 +0100 > The sun4i-emac driver uses devm_request_irq at .ndo_open time, but relies on > the managed device mechanism to actually free it. This causes an issue whenever > someone wants to restart the interface, the interrupt still being held, and not > yet released. > > Fall back to using the regular request_irq at .ndo_open time, and introduce a > free_irq during .ndo_stop. > > Signed-off-by: Maxime Ripard Applied, thanks.