Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: guy.shapiro@mobi-wize.com (Guy Shapiro)
To: linux-arm-kernel@lists.infradead.org
Subject: syscon-poweroff: add a mask property
Date: Sun, 29 Jan 2017 14:04:00 +0200	[thread overview]
Message-ID: <71309f45-0f6c-a7af-eb01-59400f0c93a1@mobi-wize.com> (raw)


The syscon-poweroff driver powers off the machine by writing a value to
a register. Both the register and the value are configured via the
device tree.

I encountered a situation where I need to mask the written value - some
values of the register must remain unchanged during the power-down.
(This is required to turn on the i.mx6ul using the RTC. See [1] for more
details.)

Unfortunately, the property of the register value is currently named
mask, so we can't just add a "mask" property.

The solutions I could think of:
1) Add a new mask property and name it "mask_mask" or something like
that.
2) Create a new "syscon-masked-poweroff" driver that will have value and
mask properties.

What do you think?


[1] https://www.spinics.net/lists/arm-kernel/msg555580.html

             reply	other threads:[~2017-01-29 12:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-29 12:04 Guy Shapiro [this message]
2017-01-29 18:50 ` syscon-poweroff: add a mask property Sebastian Reichel

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=71309f45-0f6c-a7af-eb01-59400f0c93a1@mobi-wize.com \
    --to=guy.shapiro@mobi-wize.com \
    --cc=linux-arm-kernel@lists.infradead.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