linux/drivers/net/ethernet/renesas
Geert Uytterhoeven 7fa816b92c ravb: Add missing free_irq() call to ravb_close()
When reopening the network device on ra7795/salvator-x, e.g. after a
DHCP timeout:

    IP-Config: Reopening network devices...
    genirq: Flags mismatch irq 139. 00000000 (eth0:ch24:emac) vs. 00000000 (eth0:ch24:emac)
    ravb e6800000.ethernet eth0: cannot request IRQ eth0:ch24:emac
    IP-Config: Failed to open eth0
    IP-Config: No network devices available

The "mismatch" is due to requesting an IRQ that is already in use,
while IRQF_PROBE_SHARED wasn't set.

However, the real cause is that ravb_close() doesn't release the R-Car
Gen3-specific secondary IRQ.

Add the missing free_irq() call to fix this.

Fixes: 22d4df8ff3 ("ravb: Add support for r8a7795 SoC")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-05-09 22:30:39 -04:00
..
Kconfig sh_eth, ravb: Use ARCH_RENESAS 2016-03-03 17:09:08 -05:00
Makefile Renesas Ethernet AVB PTP clock driver 2015-06-11 00:24:12 -07:00
ravb.h ravb: factor out register bit twiddling code 2016-02-10 05:38:12 -05:00
ravb_main.c ravb: Add missing free_irq() call to ravb_close() 2016-05-09 22:30:39 -04:00
ravb_ptp.c ravb: factor out register bit twiddling code 2016-02-10 05:38:12 -05:00
sh_eth.c sh_eth: re-enable-E-MAC interrupts in sh_eth_set_ringparam() 2016-04-09 21:27:04 -04:00
sh_eth.h sh_eth: remove EDMAC_BIG_ENDIAN 2016-01-04 16:11:11 -05:00