Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: David Daney <ddaney.cavm@gmail.com>
To: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: James Cowgill <James.Cowgill@imgtec.com>,
	"Herrmann, Andreas" <Andreas.Herrmann@caviumnetworks.com>,
	linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>,
	David Daney <david.daney@cavium.com>,
	Markos Chandras <markos.chandras@imgtec.com>
Subject: Re: [PATCH] MIPS: octeon: Add support for the UBNT E200 board
Date: Mon, 24 Nov 2014 11:53:46 -0800	[thread overview]
Message-ID: <54738CCA.4090302@gmail.com> (raw)
In-Reply-To: <20141124194611.GD6796@fuloong-minipc.musicnaut.iki.fi>

On 11/24/2014 11:46 AM, Aaro Koskinen wrote:
> Hi,
>
> On Mon, Nov 24, 2014 at 09:13:01PM +0200, Aaro Koskinen wrote:
>> On Mon, Nov 24, 2014 at 09:25:26AM -0800, David Daney wrote:
>>> On 11/24/2014 05:51 AM, James Cowgill wrote:
>>>> From: Markos Chandras <markos.chandras@imgtec.com>
>>>>
>>>> Add support for the UBNT E200 board (EdgeRouter/EdgeRouter Pro 8 port).
>>>>
>>>> Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
>>>> Signed-off-by: James Cowgill <James.Cowgill@imgtec.com>
>>>
>>> NACK.
>>>
>>> As far as I know, these boards have a boot loader that supplies a correct
>>> device tree, there should be no need to hack up the kernel like this.
>>>
>>> As far as I know, Andreas is running a kernel.org kernel on these boards
>>> without anything like this.
>>
>> It gets called from Octeon Ethernet driver through cvmx_helper_link_get()
>> frequently so the console gets spammed about unknown board, and probably
>> also the link status is bogus as a result.
>
> Just tested with 3.18-rc6 and this behaviour has been apparently
> fixed somehow. Cool.
>

It is magic!

If the kernel is built with the proper ethernet phy drivers *and* the 
device tree contains proper phy topology information, then the phy 
drivers handle link monitoring and none of the cvmx-* crap is used.

So for all boards with bootloaders that supply a device tree, there 
should never be any reason to patch in the hacky board identifiers to 
the kernel sources.

David.


> A.
>
>

  reply	other threads:[~2014-11-24 19:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-24 13:51 [PATCH] MIPS: octeon: Add support for the UBNT E200 board James Cowgill
2014-11-24 13:51 ` James Cowgill
2014-11-24 17:25 ` David Daney
2014-11-24 17:37   ` James Cowgill
2014-11-24 18:54   ` Andreas Herrmann
2014-11-24 18:54     ` Andreas Herrmann
2014-11-24 19:13   ` Aaro Koskinen
2014-11-24 19:46     ` Aaro Koskinen
2014-11-24 19:53       ` David Daney [this message]
2014-11-25 11:58         ` James Cowgill
2014-11-25 12:09           ` Ralf Baechle

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=54738CCA.4090302@gmail.com \
    --to=ddaney.cavm@gmail.com \
    --cc=Andreas.Herrmann@caviumnetworks.com \
    --cc=James.Cowgill@imgtec.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=david.daney@cavium.com \
    --cc=linux-mips@linux-mips.org \
    --cc=markos.chandras@imgtec.com \
    --cc=ralf@linux-mips.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