linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: p.zabel@pengutronix.de (Philipp Zabel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 0/5] Unify simple reset drivers
Date: Fri, 11 Aug 2017 15:06:13 +0200	[thread overview]
Message-ID: <20170811130618.3676-1-p.zabel@pengutronix.de> (raw)

Hi,

from time to time people notice that we are slowly accumulating reset drivers
for simple reset controllers. "Simple" in this context means that they allow to
directly control reset lines by setting and clearing bits in a single register
or in a contiguous register range that is exclusive to the reset controller.

I had previously suggested to add common reset ops for them [1], and Andre
advised to combine them into a single platform driver instead. This series
does that. It should allow to replace the socfpga, stm32, and zx2967 drivers
entirely.
The SoCFPGA device tree quirk parsing is now contained in reset-simple.c.
The sunxi driver is kept around to register the early reset controllers,
but it reuses the exported reset_simple_ops.

[1] https://patchwork.kernel.org/patch/9610709/

regards
Philipp

Philipp Zabel (5):
  reset: add reset-simple to unify socfpga, stm32, sunxi, and zx2967
  reset: socfpga: use the reset-simple driver
  reset: stm32: use the reset-simple driver
  reset: zx2967: use the reset-simple driver
  reset: simple: read back to make sure changes are applied

 MAINTAINERS                   |   1 -
 drivers/reset/Kconfig         |  24 +++---
 drivers/reset/Makefile        |   4 +-
 drivers/reset/reset-simple.c  | 183 ++++++++++++++++++++++++++++++++++++++++++
 drivers/reset/reset-simple.h  |  33 ++++++++
 drivers/reset/reset-socfpga.c | 154 -----------------------------------
 drivers/reset/reset-stm32.c   | 108 -------------------------
 drivers/reset/reset-sunxi.c   | 104 ++----------------------
 drivers/reset/reset-zx2967.c  |  99 -----------------------
 9 files changed, 232 insertions(+), 478 deletions(-)
 create mode 100644 drivers/reset/reset-simple.c
 create mode 100644 drivers/reset/reset-simple.h
 delete mode 100644 drivers/reset/reset-socfpga.c
 delete mode 100644 drivers/reset/reset-stm32.c
 delete mode 100644 drivers/reset/reset-zx2967.c

-- 
2.11.0

             reply	other threads:[~2017-08-11 13:06 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-11 13:06 Philipp Zabel [this message]
2017-08-11 13:06 ` [PATCH v2 1/5] reset: add reset-simple to unify socfpga, stm32, sunxi, and zx2967 Philipp Zabel
2017-08-11 15:39   ` Dinh Nguyen
2017-08-11 15:59     ` Philipp Zabel
2017-08-11 15:51   ` Chen-Yu Tsai
2017-08-11 15:57     ` Philipp Zabel
2017-08-11 16:04   ` Alexandru Gagniuc
2017-08-11 16:37     ` Philipp Zabel
2017-08-14 13:45       ` Eugeniy Paltsev
2017-08-11 17:47   ` Alexandru Gagniuc
2017-08-14  7:26     ` Philipp Zabel
2017-08-11 13:06 ` [PATCH v2 2/5] reset: socfpga: use the reset-simple driver Philipp Zabel
2017-08-11 16:28   ` Alexandru Gagniuc
2017-08-11 16:50     ` Philipp Zabel
2017-08-11 13:06 ` [PATCH v2 3/5] reset: stm32: " Philipp Zabel
2017-08-11 13:06 ` [PATCH v2 4/5] reset: zx2967: " Philipp Zabel
2017-08-11 13:06 ` [PATCH v2 5/5] reset: simple: read back to make sure changes are applied Philipp Zabel

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=20170811130618.3676-1-p.zabel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --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;
as well as URLs for NNTP newsgroup(s).