From: Luiz Angelo Daros de Luca <luizluca@gmail.com>
To: "Linus Walleij" <linusw@kernel.org>,
"Alvin Šipraga" <alsi@bang-olufsen.dk>,
"Andrew Lunn" <andrew@lunn.ch>,
"Vladimir Oltean" <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Michael Rasmussen" <mir@bang-olufsen.dk>,
"Florian Fainelli" <f.fainelli@gmail.com>,
"Mieczyslaw Nalewaj" <namiltd@yahoo.com>
Cc: Luiz Angelo Daros de Luca <luizluca@gmail.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH net v2 0/4] net: dsa: realtek: use devm_mutex_init
Date: Sun, 26 Jul 2026 22:56:07 -0300 [thread overview]
Message-ID: <20260726-realtek_mutext-v2-0-5d62ba998791@gmail.com> (raw)
This series fixes mutex teardown in the Realtek DSA drivers.
With CONFIG_DEBUG_MUTEXES enabled, mutex_destroy() must be called before
the mutex is discarded. Using devm_mutex_init() lets the driver core
handle that automatically.
The changes are split into individual commits based on the feature that
introduced each lock to allow proper backports to stable trees.
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
---
Changes in v2:
- Split the commit into individual commits for each mutex_init()
introduction.
- Add the error code to the rtl8365mb_stats_setup() error message.
- Link to v1: https://patch.msgid.link/20260718-realtek_mutext-v1-1-1cd7beb20ae6@gmail.com
To: Linus Walleij <linusw@kernel.org>
To: Alvin Šipraga <alsi@bang-olufsen.dk>
To: Andrew Lunn <andrew@lunn.ch>
To: Vladimir Oltean <olteanv@gmail.com>
To: "David S. Miller" <davem@davemloft.net>
To: Eric Dumazet <edumazet@google.com>
To: Jakub Kicinski <kuba@kernel.org>
To: Paolo Abeni <pabeni@redhat.com>
To: Michael Rasmussen <mir@bang-olufsen.dk>
To: Florian Fainelli <f.fainelli@gmail.com>
To: Luiz Angelo Daros de Luca <luizluca@gmail.com>
To: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
Luiz Angelo Daros de Luca (4):
net: dsa: realtek: rtl8365mb: use devm_mutex_init for mib_lock
net: dsa: realtek: use devm_mutex_init for regmap lock
net: dsa: realtek: use devm_mutex_init for vlan_lock
net: dsa: realtek: use devm_mutex_init for l2_lock
drivers/net/dsa/realtek/rtl8365mb_main.c | 16 +++++++++++++---
drivers/net/dsa/realtek/rtl83xx.c | 14 +++++++++++---
2 files changed, 24 insertions(+), 6 deletions(-)
---
base-commit: 4361bac9a4adf0e97639130c765669b41030e86e
change-id: 20260718-realtek_mutext-41a072e5cd24
Best regards,
--
Luiz Angelo Daros de Luca <luizluca@gmail.com>
next reply other threads:[~2026-07-27 1:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-27 1:56 Luiz Angelo Daros de Luca [this message]
2026-07-27 1:56 ` [PATCH net v2 1/4] net: dsa: realtek: rtl8365mb: use devm_mutex_init for mib_lock Luiz Angelo Daros de Luca
2026-07-27 1:56 ` [PATCH net v2 2/4] net: dsa: realtek: use devm_mutex_init for regmap lock Luiz Angelo Daros de Luca
2026-07-27 1:56 ` [PATCH net v2 3/4] net: dsa: realtek: use devm_mutex_init for vlan_lock Luiz Angelo Daros de Luca
2026-07-27 1:56 ` [PATCH net v2 4/4] net: dsa: realtek: use devm_mutex_init for l2_lock Luiz Angelo Daros de Luca
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=20260726-realtek_mutext-v2-0-5d62ba998791@gmail.com \
--to=luizluca@gmail.com \
--cc=alsi@bang-olufsen.dk \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=kuba@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mir@bang-olufsen.dk \
--cc=namiltd@yahoo.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.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