From: Rahul Joshi <rj5547884@gmail.com>
To: rmfrfs@gmail.com, johan@kernel.org, elder@kernel.org,
gregkh@linuxfoundation.org
Cc: greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org, Rahul Joshi <rj5547884@gmail.com>
Subject: [PATCH] staging: greybus: gpio: add comment to mutex definition
Date: Wed, 11 Mar 2026 23:23:34 +0530 [thread overview]
Message-ID: <20260311175334.464391-1-rj5547884@gmail.com> (raw)
The irq_lock mutex is missing a comment describing what it protects,
which is required by kernel coding style. Add a comment clarifying
that it serializes IRQ bus lock/unlock operations used to defer and
sync pending IRQ type and mask changes to hardware.
Signed-off-by: Rahul Joshi <rj5547884@gmail.com>
---
drivers/staging/greybus/gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c
index 12185f7a982c..89c15b804b2a 100644
--- a/drivers/staging/greybus/gpio.c
+++ b/drivers/staging/greybus/gpio.c
@@ -39,7 +39,7 @@ struct gb_gpio_controller {
struct gpio_chip chip;
struct irq_chip irqc;
- struct mutex irq_lock;
+ struct mutex irq_lock; /* protects irq bus operations */
};
static struct gpio_chip *irq_data_to_gpio_chip(struct irq_data *d)
--
2.34.1
next reply other threads:[~2026-03-11 17:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-11 17:53 Rahul Joshi [this message]
2026-03-18 15:30 ` Greg KH
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=20260311175334.464391-1-rj5547884@gmail.com \
--to=rj5547884@gmail.com \
--cc=elder@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=greybus-dev@lists.linaro.org \
--cc=johan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=rmfrfs@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®