linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chunyan Zhang <zhang.chunyan@linaro.org>
To: Stephen Boyd <sboyd@kernel.org>
Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
	Orson Zhai <orsonzhai@gmail.com>,
	Chunyan Zhang <zhang.lyra@gmail.com>,
	Baolin Wang <baolin.wang@linaro.org>
Subject: [PATCH v2 0/3] Return immediately if sprd_clk_regmap_init() fails
Date: Wed, 22 May 2019 09:26:40 +0800	[thread overview]
Message-ID: <20190522012640.19910-1-zhang.chunyan@linaro.org> (raw)
In-Reply-To: <20190522011504.19342-1-zhang.chunyan@linaro.org>

The function sprd_clk_regmap_init() doesn't always return success,
drivers should return immediately when it fails rather than
continue the clock initialization.

The patch 1/3 in this set switchs to use devm_ioremap_resources()
instead of of_iomap(), that will make caller programs more simple.

Changes from V1:
- Split out the patch 2/3 from 1/2 of the first version;
- Added reviewed-by from Baolin.

Chunyan Zhang (3):
  clk: sprd: Switch from of_iomap() to devm_ioremap_resource()
  clk: sprd: Check error only for devm_regmap_init_mmio()
  clk: sprd: Add check the return value of sprd_clk_regmap_init()

 drivers/clk/sprd/common.c     | 9 +++++++--
 drivers/clk/sprd/sc9860-clk.c | 4 +++-
 2 files changed, 10 insertions(+), 3 deletions(-)

-- 
2.17.1


      parent reply	other threads:[~2019-05-22  1:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-22  1:15 [PATCH v2 0/3] Return immediately if sprd_clk_regmap_init() fails Chunyan Zhang
2019-05-22  1:15 ` [PATCH v2 1/3] clk: sprd: Switch from of_iomap() to devm_ioremap_resource() Chunyan Zhang
2019-05-22  2:07   ` Baolin Wang
2019-06-26 18:16   ` Stephen Boyd
2019-06-27  7:52     ` Chunyan Zhang
2019-05-22  1:15 ` [PATCH v2 2/3] clk: sprd: Check error only for devm_regmap_init_mmio() Chunyan Zhang
2019-05-22  2:08   ` Baolin Wang
2019-06-26 18:16   ` Stephen Boyd
2019-05-22  1:15 ` [PATCH v2 3/3] clk: sprd: Add check for return value of sprd_clk_regmap_init() Chunyan Zhang
2019-06-26 18:16   ` Stephen Boyd
2019-05-22  1:15 ` [PATCH v2 3/3] clk: sprd: Add check the " Chunyan Zhang
2019-05-22  1:26 ` Chunyan Zhang [this message]

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=20190522012640.19910-1-zhang.chunyan@linaro.org \
    --to=zhang.chunyan@linaro.org \
    --cc=baolin.wang@linaro.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=orsonzhai@gmail.com \
    --cc=sboyd@kernel.org \
    --cc=zhang.lyra@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;
as well as URLs for NNTP newsgroup(s).