From: Stefan Wahren <stefan.wahren@i2se.com> To: netdev@vger.kernel.org Cc: eric@anholt.net, UNGLinuxDriver@microchip.com, marc.zyngier@arm.com, linux-arm-kernel@lists.infradead.org, Woojung.Huh@microchip.com Subject: RE: lan78xx: WARNING: irq 79 handler enabled interrupts Date: Tue, 5 Feb 2019 20:57:39 +0100 (CET) [thread overview] Message-ID: <71485139.238913.1549396659042@email.ionos.de> (raw) In-Reply-To: <958035754.310420.1546378307673@email.ionos.de> Hi, > Stefan Wahren <stefan.wahren@i2se.com> hat am 1. Januar 2019 um 22:31 geschrieben: > > > Hi Woojung, > > > Woojung.Huh@microchip.com hat am 30. Dezember 2018 um 04:25 geschrieben: > > > > > > HI Marc & Stephen, > > > > Most of engineers are out until New Year's Day. > > thanks. I didn't expect a reply that fast. > > > > > LAN78xx driver uses irq_domain for phy interrupt, but smsc95xx uses polling. > > Need to check flow again, you can try that comment out "lan78xx_setup_irq_domain" to > > make dev->domain_data.phyirq = 0 which forces PHY polling. > > I tested your suggestion with multi_v7_defconfig (32 bit) and arm64/defconfig. > The warning disappeared and Ethernet is still working. > > Only the old issue that we can't receive until a first packet has been send out reappear. But this should be manageable. > i got informed that the engineers are busy with other issues and come back later to this :-( Since i'm getting requests to provide my PHY polling patch, here it is: diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index e96bc0c..a5bb292 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -2982,13 +2982,6 @@ static int lan78xx_bind(struct lan78xx_net *dev, struct usb_interface *intf) dev->net->hw_features = dev->net->features; - ret = lan78xx_setup_irq_domain(dev); - if (ret < 0) { - netdev_warn(dev->net, - "lan78xx_setup_irq_domain() failed : %d", ret); - goto out1; - } - dev->net->hard_header_len += TX_OVERHEAD; dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; @@ -2996,13 +2989,13 @@ static int lan78xx_bind(struct lan78xx_net *dev, struct usb_interface *intf) ret = lan78xx_reset(dev); if (ret) { netdev_warn(dev->net, "Registers INIT FAILED...."); - goto out2; + goto out1; } ret = lan78xx_mdio_init(dev); if (ret) { netdev_warn(dev->net, "MDIO INIT FAILED....."); - goto out2; + goto out1; } dev->net->flags |= IFF_MULTICAST; @@ -3011,9 +3004,6 @@ static int lan78xx_bind(struct lan78xx_net *dev, struct usb_interface *intf) return ret; -out2: - lan78xx_remove_irq_domain(dev); - out1: netdev_warn(dev->net, "Bind routine FAILED"); cancel_work_sync(&pdata->set_multicast);
WARNING: multiple messages have this Message-ID (diff)
From: Stefan Wahren <stefan.wahren@i2se.com> To: netdev@vger.kernel.org Cc: marc.zyngier@arm.com, eric@anholt.net, Woojung.Huh@microchip.com, linux-arm-kernel@lists.infradead.org, UNGLinuxDriver@microchip.com Subject: RE: lan78xx: WARNING: irq 79 handler enabled interrupts Date: Tue, 5 Feb 2019 20:57:39 +0100 (CET) [thread overview] Message-ID: <71485139.238913.1549396659042@email.ionos.de> (raw) In-Reply-To: <958035754.310420.1546378307673@email.ionos.de> Hi, > Stefan Wahren <stefan.wahren@i2se.com> hat am 1. Januar 2019 um 22:31 geschrieben: > > > Hi Woojung, > > > Woojung.Huh@microchip.com hat am 30. Dezember 2018 um 04:25 geschrieben: > > > > > > HI Marc & Stephen, > > > > Most of engineers are out until New Year's Day. > > thanks. I didn't expect a reply that fast. > > > > > LAN78xx driver uses irq_domain for phy interrupt, but smsc95xx uses polling. > > Need to check flow again, you can try that comment out "lan78xx_setup_irq_domain" to > > make dev->domain_data.phyirq = 0 which forces PHY polling. > > I tested your suggestion with multi_v7_defconfig (32 bit) and arm64/defconfig. > The warning disappeared and Ethernet is still working. > > Only the old issue that we can't receive until a first packet has been send out reappear. But this should be manageable. > i got informed that the engineers are busy with other issues and come back later to this :-( Since i'm getting requests to provide my PHY polling patch, here it is: diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index e96bc0c..a5bb292 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -2982,13 +2982,6 @@ static int lan78xx_bind(struct lan78xx_net *dev, struct usb_interface *intf) dev->net->hw_features = dev->net->features; - ret = lan78xx_setup_irq_domain(dev); - if (ret < 0) { - netdev_warn(dev->net, - "lan78xx_setup_irq_domain() failed : %d", ret); - goto out1; - } - dev->net->hard_header_len += TX_OVERHEAD; dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; @@ -2996,13 +2989,13 @@ static int lan78xx_bind(struct lan78xx_net *dev, struct usb_interface *intf) ret = lan78xx_reset(dev); if (ret) { netdev_warn(dev->net, "Registers INIT FAILED...."); - goto out2; + goto out1; } ret = lan78xx_mdio_init(dev); if (ret) { netdev_warn(dev->net, "MDIO INIT FAILED....."); - goto out2; + goto out1; } dev->net->flags |= IFF_MULTICAST; @@ -3011,9 +3004,6 @@ static int lan78xx_bind(struct lan78xx_net *dev, struct usb_interface *intf) return ret; -out2: - lan78xx_remove_irq_domain(dev); - out1: netdev_warn(dev->net, "Bind routine FAILED"); cancel_work_sync(&pdata->set_multicast); _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-02-05 19:57 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-12-29 0:02 lan78xx: WARNING: irq 79 handler enabled interrupts Stefan Wahren 2018-12-29 0:02 ` Stefan Wahren 2018-12-29 9:41 ` Marc Zyngier 2018-12-29 9:41 ` Marc Zyngier 2018-12-30 3:25 ` Woojung.Huh 2018-12-30 3:25 ` Woojung.Huh 2019-01-01 21:31 ` Stefan Wahren 2019-01-01 21:31 ` Stefan Wahren 2019-01-02 21:42 ` Woojung.Huh 2019-01-02 21:42 ` Woojung.Huh 2019-02-05 19:57 ` Stefan Wahren [this message] 2019-02-05 19:57 ` Stefan Wahren
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=71485139.238913.1549396659042@email.ionos.de \ --to=stefan.wahren@i2se.com \ --cc=UNGLinuxDriver@microchip.com \ --cc=Woojung.Huh@microchip.com \ --cc=eric@anholt.net \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=marc.zyngier@arm.com \ --cc=netdev@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.