From: Florian Fainelli <f.fainelli@gmail.com>
To: Andrew Lunn <andrew@lunn.ch>, Colin King <colin.king@canonical.com>
Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com>,
"David S . Miller" <davem@davemloft.net>,
netdev@vger.kernel.org, kernel-janitors@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: dsa: bcm_sf2: remove redundant variable off
Date: Mon, 9 Jul 2018 09:10:00 -0700 [thread overview]
Message-ID: <2f4bab8e-6f4f-cec1-77cc-4caeb95ebf2f@gmail.com> (raw)
In-Reply-To: <20180704142520.GD12405@lunn.ch>
Hi Andrew,
On 07/04/2018 07:25 AM, Andrew Lunn wrote:
> Hi Florian
>
> I this a bug? It seems to be a result of moving to
> b53_disable_port() in f86ad77faf.
>
> Before you would handle the CPU port differently than a normal
> port. After this change, there is no difference?
This is not a bug actually but it is not obvious because there was a
separate definition added in bcm_sf2_regs.h for port 8 named
CORE_IMP_CTL. The logic in b53_regs.h is:
#define B53_PORT_CTRL(i) (0x00 + (i))
and due to the memory map used in bcm_sf2, that would translate into:
8 << 2 = 0x20 which is correct here and matches the definition of
CORE_IMP_CTL.
in fact, the new code is more correct because any port could be a DSA
CPU port, whereas before we assumed that port 8 == CPU port, which is
not necessarily true.
Thanks!
--
Florian
prev parent reply other threads:[~2018-07-09 16:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-04 6:54 [PATCH] net: dsa: bcm_sf2: remove redundant variable off Colin King
2018-07-04 13:40 ` David Miller
2018-07-04 14:25 ` Andrew Lunn
2018-07-04 19:55 ` Florian Fainelli
2018-07-09 16:10 ` Florian Fainelli [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=2f4bab8e-6f4f-cec1-77cc-4caeb95ebf2f@gmail.com \
--to=f.fainelli@gmail.com \
--cc=andrew@lunn.ch \
--cc=colin.king@canonical.com \
--cc=davem@davemloft.net \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=vivien.didelot@savoirfairelinux.com \
/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).