From: Paolo Abeni <pabeni@redhat.com>
To: Mark Brown <broonie@kernel.org>,
Woojung Huh <woojung.huh@microchip.com>,
UNGLinuxDriver@microchip.com, Andrew Lunn <andrew@lunn.ch>,
Florian Fainelli <f.fainelli@gmail.com>,
Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: dsa: microchip: Use standard regmap locking
Date: Tue, 27 Aug 2024 14:54:52 +0200 [thread overview]
Message-ID: <36f312eb-150e-4497-84f0-6bfbaab16d9b@redhat.com> (raw)
In-Reply-To: <20240822-net-dsa-microchip-regmap-locking-v1-1-d557073b883c@kernel.org>
On 8/22/24 21:53, Mark Brown wrote:
> For unclear reasons the ksz drivers use custom regmap locking which is
> simply a wrapper around a standard mutex.
According to the commit introducing such lock,
013572a236ef53cbd1e315e0acf2ee632cc816d4
the ksz driver family one regmap per register width (8/16/32), accessing
the same set of registers.
The locking implemented with the code removed here allows serializing
operations using different register widths.
Thanks,
Paolo
next prev parent reply other threads:[~2024-08-27 12:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-22 19:53 Mark Brown
2024-08-27 12:54 ` Paolo Abeni [this message]
2024-08-27 13:07 ` Andrew Lunn
2024-08-28 11:13 ` Mark Brown
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=36f312eb-150e-4497-84f0-6bfbaab16d9b@redhat.com \
--to=pabeni@redhat.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew@lunn.ch \
--cc=broonie@kernel.org \
--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=woojung.huh@microchip.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®