From: <Tristram.Ha@microchip.com>
To: <pabeni@redhat.com>
Cc: <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>,
<UNGLinuxDriver@microchip.com>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <Arun.Ramadoss@microchip.com>,
<Woojung.Huh@microchip.com>, <andrew@lunn.ch>,
<vivien.didelot@gmail.com>, <f.fainelli@gmail.com>,
<olteanv@gmail.com>
Subject: RE: [PATCH net] net: dsa: microchip: fix wrong register write when masking interrupt
Date: Thu, 30 May 2024 23:17:42 +0000 [thread overview]
Message-ID: <BYAPR11MB3558611EBDCD3097B764D2C2ECF32@BYAPR11MB3558.namprd11.prod.outlook.com> (raw)
In-Reply-To: <6092d48946628c7e41fff25b161fdb71ce55d3d2.camel@redhat.com>
> Subject: Re: [PATCH net] net: dsa: microchip: fix wrong register write when masking
> interrupt
>
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content
> is safe
>
> On Tue, 2024-05-28 at 14:35 -0700, Tristram.Ha@microchip.com wrote:
> > From: Tristram Ha <tristram.ha@microchip.com>
> >
> > The initial code used 32-bit register. After that it was changed to 0x1F
> > so it is no longer appropriate to use 32-bit write.
>
> IMHO the above sentence is too much unclear. It sort of implies that
> the currently used register is 8 bit wide because such register address
> can be represented with 8 bit - which in turn sounds weird or
> irrelevant.
>
> I guess some documentation describes register 0x1F, please rephrase the
> changelog accordingly.
I will clarify the comment.
Initially the REG_SW_PORT_INT_MASK__4 is defined as 0x001C in
ksz9477_reg.h and REG_PORT_INT_MASK is defined as 0x#01F. Because the
global and port interrupt handling is about the same new
REG_SW_PORT_INT_MASK__1 is defined as 0x1F in ksz_common.h. This works
as only the least significant bits have effect. As a result the 32-bit
write needs to be changed to 8-bit.
prev parent reply other threads:[~2024-05-30 23:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-28 21:35 Tristram.Ha
2024-05-30 8:56 ` Paolo Abeni
2024-05-30 23:17 ` Tristram.Ha [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=BYAPR11MB3558611EBDCD3097B764D2C2ECF32@BYAPR11MB3558.namprd11.prod.outlook.com \
--to=tristram.ha@microchip.com \
--cc=Arun.Ramadoss@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=Woojung.Huh@microchip.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=vivien.didelot@gmail.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
all inboxes | Powered by JetHome®