From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: [PATCH v2 net-next 0/2] Fixes to allow mv88e6xxx module to be reloaded Date: Sun, 25 Mar 2018 22:56:10 +0200 Message-ID: <1522011372-17080-1-git-send-email-andrew@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: netdev , u.kleine-koenig@pengutronix.de, Andrew Lunn To: David Miller Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:41443 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751112AbeCYU5O (ORCPT ); Sun, 25 Mar 2018 16:57:14 -0400 Sender: netdev-owner@vger.kernel.org List-ID: As reported by Uwe Kleine-Künig, the interrupt trigger is first configured by DT and then reconfigured to edge. This results in a failure on EPROBE_DEFER, or if the module is unloaded and reloaded. A second crash happens on module reload due to a missing call to the common IRQ free code when using polled interrupts. With these fixes in place, it becomes possible to load and unload the kernel modules a few times without it crashing. v2: Fix the ü in Künig a couple of times Andrew Lunn (2): net: dsa: mv88e6xxx: Use the DT IRQ trigger mode net: dsa: mv88e6xxx: Call the common IRQ free code drivers/net/dsa/mv88e6xxx/chip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.16.2