[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdbTCeh6ZX7dbHCQMtniYBxX_yKZPO=PJ-TTGOQP140vLw@mail.gmail.com>
Date: Tue, 7 Sep 2021 17:52:01 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Vladimir Oltean <olteanv@...il.com>
Cc: Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
netdev <netdev@...r.kernel.org>,
Alvin Šipraga <alsi@...g-olufsen.dk>,
Mauri Sandberg <sandberg@...lfence.com>,
DENG Qingfang <dqfext@...il.com>
Subject: Re: [PATCH net-next 3/5 v2] net: dsa: rtl8366rb: Support disabling learning
On Tue, Aug 31, 2021 at 12:40 AM Vladimir Oltean <olteanv@...il.com> wrote:
> > /* Enable learning for all ports */
> > - ret = regmap_write(smi->map, RTL8366RB_SSCR0, 0);
> > + ret = regmap_write(smi->map, RTL8366RB_PORT_LEARNDIS_CTRL, 0);
>
> So the expected behavior for standalone ports would be to _disable_
> learning. In rtl8366rb_setup, they are standalone.
OK I altered the code such that I disable learning on all ports instead,
the new callback can be used to enable it.
What about the CPU port here? Sorry if it is a dumb question...
I just disabled learning on all ports including the CPU port, but
should I just leave learning on on the CPU port?
Yours,
Linus Walleij
Powered by blists - more mailing lists