mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Ansuel Smith <ansuelsmth@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] regmap: allow to define reg_update_bits for no bus configuration
Date: Thu, 4 Nov 2021 14:50:31 +0000	[thread overview]
Message-ID: <YYPzN98RdHGEkK+n@sirena.org.uk> (raw)
In-Reply-To: <YYMEzTQhb8s31rzu@Ansuel-xps.localdomain>

[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]

On Wed, Nov 03, 2021 at 10:53:17PM +0100, Ansuel Smith wrote:
> On Wed, Nov 03, 2021 at 09:29:11PM +0000, Mark Brown wrote:

> > > > I don't understand this change.  The point of the check for volatile
> > > > there is that if the register isn't volatile then we need to ensure that
> > > > the cache gets updated with any change that happens so we need to go
> > > > through paths that include cache updates.  The presence or otherwise of
> > > > a bus does not seem at all relevant here.

> I think I'm missing something. The user case is a driver that
> have CACHE DISABLED. The !map->bus check is added just to limit this to
> a no bus configuration not to permit this with CACHE enabled. The limit
> I was referring was in the init function where the update_bits is
> assigned to the map. I honestly didn't notice that anything with cache
> disabled was flagged as volatile.

In what way would the presence or absence of a bus be relevant to a
decision about being able to safely use an _update_bits() operation?

> So the rest of the changes permit to declare a update_bits function
> for a no bus configuration is good?

Probably, I'd need to look again.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2021-11-04 14:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-02 21:41 Ansuel Smith
2021-11-03 17:01 ` Mark Brown
2021-11-03 19:48   ` Ansuel Smith
2021-11-03 21:29     ` Mark Brown
2021-11-03 21:53       ` Ansuel Smith
2021-11-04 14:50         ` Mark Brown [this message]
2021-11-04 14:57           ` Ansuel Smith

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=YYPzN98RdHGEkK+n@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=ansuelsmth@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@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®