From: "Måns Rullgård" <mans@mansr.com>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH 3/3] net: ethernet: add driver for Aurora VLSI NB8800 Ethernet controller
Date: Sat, 24 Oct 2015 16:45:48 +0100 [thread overview]
Message-ID: <yw1x611wfexf.fsf@unicorn.mansr.com> (raw)
In-Reply-To: <562A7000.2080502@gmail.com> (Florian Fainelli's message of "Fri, 23 Oct 2015 10:36:00 -0700")
Florian Fainelli <f.fainelli@gmail.com> writes:
>>>> +static void nb8800_set_rx_mode(struct net_device *dev)
>>>> +{
>>>> + struct nb8800_priv *priv = netdev_priv(dev);
>>>> + struct netdev_hw_addr *ha;
>>>> + int af_en;
>>>> +
>>>> + if ((dev->flags & (IFF_PROMISC | IFF_ALLMULTI)) ||
>>>> + netdev_mc_count(dev) > 64)
>>>
>>> 64, that's pretty generous for a perfect match filter, nice.
>>
>> That's bogus; I forgot to delete it. The hardware uses a 64-entry hash
>> table, and whoever wrote the old driver apparently didn't understand how
>> it works.
>
> Might be best to put the interface in promiscuous mode until you have
> proper multicast support. Since this is for a Set-Top box chip, having
> proper multicast support still seems like something highly desirable.
The code below should work correctly with any number of multicast
addresses.
>>>> + phydev = phy_find_first(bus);
>>>> + if (!phydev || phy_read(phydev, MII_BMSR) <= 0) {
>>>
>>> What is this additional MII_MBSR read used for?
>>
>> On one of my boards, phylib misdetects a phy on the second ethernet port
>> even though there is none. Perhaps I should revisit that problem and
>> look for a better solution.
>
> I think that would be best, if you are currently using the Generic PHY
> driver, consider writing a specific driver which would take care of
> quirky behavior.
The problem is that there is no PHY, yet for some reason reading the ID
registers appears to succeed.
--
Måns Rullgård
mans@mansr.com
prev parent reply other threads:[~2015-10-24 15:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1445522558-5808-1-git-send-email-mans@mansr.com>
2015-10-22 14:02 ` [PATCH 3/3] net: ethernet: add driver for Aurora VLSI NB8800 Ethernet controller Mans Rullgard
2015-10-22 14:41 ` David Miller
2015-10-22 17:18 ` Måns Rullgård
2015-10-22 14:55 ` kbuild test robot
2015-10-22 22:08 ` kbuild test robot
2015-10-23 0:31 ` Florian Fainelli
2015-10-23 15:20 ` Måns Rullgård
2015-10-23 17:36 ` Florian Fainelli
2015-10-24 15:45 ` Måns Rullgård [this message]
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=yw1x611wfexf.fsf@unicorn.mansr.com \
--to=mans@mansr.com \
--cc=f.fainelli@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).