mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Philipp Zabel <p.zabel@pengutronix.de>
To: Tzung-Bi Shih <tzungbi@kernel.org>,
	Bartosz Golaszewski <brgl@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>,
	Shuah Khan <skhan@linuxfoundation.org>,
	 Randy Dunlap <rdunlap@infradead.org>,
	Linus Walleij <linusw@kernel.org>,
	driver-core@lists.linux.dev,  linux-kernel@vger.kernel.org,
	linux-gpio@vger.kernel.org,
	Greg Kroah-Hartman	 <gregkh@linuxfoundation.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	 Danilo Krummrich	 <dakr@kernel.org>,
	Johan Hovold <johan@kernel.org>
Subject: Re: [PATCH v14 5/5] reset: Leverage revocable for accessing struct reset_controller_dev
Date: Mon, 19 Oct 2026 14:41:47 +0200	[thread overview]
Message-ID: <709ddfbbc57ce8f666fc8ebd7fe48dafed39ef33.camel@pengutronix.de> (raw)
In-Reply-To: <atYEwbTCcuYa5ShB@google.com>

On Mo, 2026-10-19 at 11:53 +0000, Tzung-Bi Shih wrote:
> On Thu, Oct 15, 2026 at 05:49:11AM -0400, Bartosz Golaszewski wrote:
> > > diff --git a/drivers/reset/core.c b/drivers/reset/core.c
> > > index 38e189d04d09..788a235c3965 100644
> > > --- a/drivers/reset/core.c
> > > +++ b/drivers/reset/core.c
> > > @@ -24,8 +24,8 @@
> > >  #include <linux/property.h>
> > >  #include <linux/reset.h>
> > >  #include <linux/reset-controller.h>
> > > +#include <linux/revocable.h>
> > >  #include <linux/slab.h>
> > > -#include <linux/srcu.h>
> > > 
> > >  static DEFINE_MUTEX(reset_list_mutex);
> > >  static LIST_HEAD(reset_controller_list);
> > > @@ -37,9 +37,7 @@ static DEFINE_IDA(reset_gpio_ida);
> > > 
> > >  /**
> > >   * struct reset_control - a reset control
> > > - * @rcdev: a pointer to the reset controller device
> > > - *         this reset control belongs to
> > > - * @srcu: protects the rcdev pointer from removal during consumer access
> > > + * @rev: revocable handle for accessing the reset controller device
> > 
> > Please call it "revocable". The name "rev" does not indicate what it is at all.
> > Same elsewhere if you call it the same.
> 
> Ack, I initially used "rev" to keep the lines shorter with the revocable
> APIs, but "rev" alone can indeed be confusing.  On the other hand, I feel
> "revocable" is a bit verbose and doesn't indicate which target object it
> protects.  How about calling it "rcdev_rev"?

I strongly associate "rev" with "revision".

I'd be fine with "rcdev_revocable" (in struct reset_control and
"revocable" in struct reset_controller_device).

regards
Philipp

  reply	other threads:[~2026-10-19 12:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-11 12:12 [PATCH v14 0/5] drivers/base: Introduce revocable Tzung-Bi Shih
2026-10-11 12:12 ` [PATCH v14 1/5] revocable: Revocable resource management Tzung-Bi Shih
2026-10-11 12:12 ` [PATCH v14 2/5] revocable: Add KUnit test cases Tzung-Bi Shih
2026-10-11 12:12 ` [PATCH v14 3/5] gpio: Leverage revocable for accessing struct gpio_chip Tzung-Bi Shih
2026-10-11 12:12 ` [PATCH v14 4/5] reset: Add KUnit test cases Tzung-Bi Shih
2026-10-19 13:32   ` Philipp Zabel
2026-10-11 12:12 ` [PATCH v14 5/5] reset: Leverage revocable for accessing struct reset_controller_dev Tzung-Bi Shih
2026-10-15  9:49   ` Bartosz Golaszewski
2026-10-19 11:53     ` Tzung-Bi Shih
2026-10-19 12:41       ` Philipp Zabel [this message]
2026-10-19 14:05         ` Bartosz Golaszewski

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=709ddfbbc57ce8f666fc8ebd7fe48dafed39ef33.camel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=brgl@kernel.org \
    --cc=corbet@lwn.net \
    --cc=dakr@kernel.org \
    --cc=driver-core@lists.linux.dev \
    --cc=gregkh@linuxfoundation.org \
    --cc=johan@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=skhan@linuxfoundation.org \
    --cc=tzungbi@kernel.org \
    /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®