linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: mans@mansr.com (Måns Rullgård)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/4] net: nb8800: Drop generic support
Date: Tue, 14 Nov 2017 13:03:42 +0000	[thread overview]
Message-ID: <yw1xo9o5107l.fsf@mansr.com> (raw)
In-Reply-To: <f197b96e-55b1-463d-1276-1fecc1e5220d@sigmadesigns.com> (Marc Gonzalez's message of "Tue, 14 Nov 2017 13:47:26 +0100")

Marc Gonzalez <marc_gonzalez@sigmadesigns.com> writes:

> On 14/11/2017 13:37, M?ns Rullg?rd wrote:
>
>> Marc Gonzalez writes:
>> 
>>> According to our HW dev, there is no provision for software to safely
>>> disable RX DMA in the AU-NB8800 hardware block (ethernet DMA). Thus,
>>> it is the responsibility of the SoC designer to provide such a feature.
>>>
>>> The nb8800_dma_stop() implementation is a clever hack that works most
>>> of the times, but it breaks the DMA state machine in rare cases.
>>>
>>> Therefore, let's drop generic support.
>>>
>>> FWIW, tango chips provide a reset register. When the ethernet block
>>> comes out of reset, DMA is disabled.
>>>
>>> Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
>>> ---
>>>  drivers/net/ethernet/aurora/nb8800.c | 3 ---
>>>  1 file changed, 3 deletions(-)
>>>
>>> diff --git a/drivers/net/ethernet/aurora/nb8800.c b/drivers/net/ethernet/aurora/nb8800.c
>>> index e94159507847..26f719e2d6ca 100644
>>> --- a/drivers/net/ethernet/aurora/nb8800.c
>>> +++ b/drivers/net/ethernet/aurora/nb8800.c
>>> @@ -1335,9 +1335,6 @@ static const struct nb8800_ops nb8800_tango4_ops = {
>>>  };
>>>
>>>  static const struct of_device_id nb8800_dt_ids[] = {
>>> -	{
>>> -		.compatible = "aurora,nb8800",
>>> -	},
>>>  	{
>>>  		.compatible = "sigma,smp8642-ethernet",
>>>  		.data = &nb8800_tangox_ops,
>>> -- 
>> 
>> Please leave this.  It works just fine on tango3.
>
> What you call "tango3" is your SMP8642-based board, I suppose.
> That is covered by the "sigma,smp8642-ethernet" string.
>
> There is no need for the generic "aurora,nb8800" string, as no other
> known SoC uses the Aurora SSN8800+NB8800 IP; and as I point out in the
> commit message, the raw IP lacks certain features.
>
> There is no point in keeping this around. It just adds unnecessary
> existence tests for every use of the ops struct.

And if someone discovers another chip using this controller, having the
base support in there makes it much easier to get it working.

-- 
M?ns Rullg?rd

  reply	other threads:[~2017-11-14 13:03 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-14 10:53 [PATCH v3 0/4] Various nb8800 tweaks Marc Gonzalez
2017-11-14 10:54 ` [PATCH v3 1/4] net: nb8800: Drop generic support Marc Gonzalez
2017-11-14 12:37   ` Måns Rullgård
2017-11-14 12:47     ` Marc Gonzalez
2017-11-14 13:03       ` Måns Rullgård [this message]
2017-11-14 10:55 ` [PATCH v3 2/4] net: nb8800: Simplify nb8800_pause_config() Marc Gonzalez
2017-11-14 12:38   ` Måns Rullgård
2017-11-14 12:56     ` Marc Gonzalez
2017-11-14 13:22       ` Måns Rullgård
2017-11-15 10:53         ` Marc Gonzalez
2017-11-15 14:17           ` Andrew Lunn
2017-11-15 14:33             ` Marc Gonzalez
2017-11-15 15:03               ` Andrew Lunn
2017-11-15 15:19                 ` Marc Gonzalez
2017-11-15 15:36                   ` Måns Rullgård
2017-11-15 21:12                   ` Andrew Lunn
2017-11-14 10:56 ` [PATCH v3 3/4] net: nb8800: Move HW init to ndo_open() Marc Gonzalez
2017-11-14 12:40   ` Måns Rullgård
2017-11-14 13:26     ` Marc Gonzalez
2017-11-14 13:54       ` Måns Rullgård
2017-11-14 16:41         ` Marc Gonzalez
2017-11-14 16:55           ` Måns Rullgård
2017-11-14 17:07             ` Marc Gonzalez
2017-11-15 14:58             ` Marc Gonzalez
2017-11-15 15:11               ` Måns Rullgård
2017-11-15 16:15                 ` Marc Gonzalez
2017-11-16 12:21                   ` Marc Gonzalez
2017-11-16 16:23                     ` Andrew Lunn
2017-11-16 16:52                       ` Marc Gonzalez
2017-11-14 12:04 ` [PATCH v3 4/4] net: nb8800: Add support for suspend/resume Marc Gonzalez
2017-11-14 13:02   ` Måns Rullgård
2017-11-14 14:22     ` Marc Gonzalez
2017-11-14 16:31       ` Andrew Lunn
2017-11-14 17:08         ` Marc Gonzalez
2017-11-14 17:33           ` Andrew Lunn

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=yw1xo9o5107l.fsf@mansr.com \
    --to=mans@mansr.com \
    --cc=linux-arm-kernel@lists.infradead.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).