linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: Ulf Hansson <ulf.hansson@linaro.org>, linux-mmc@vger.kernel.org
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
	linux-kernel@vger.kernel.org, mfuzzey@parkeon.com
Subject: [PATCH v3 0/3] mmc: pwrseq: convert to proper driver
Date: Wed, 13 Apr 2016 18:54:38 +0100	[thread overview]
Message-ID: <1460570081-1679-1-git-send-email-srinivas.kandagatla@linaro.org> (raw)

Just realized that I sent v3 patches long back with a title of v2, so resending
the v3 once again with proper version number.

Thanks for reviewing v2.

This patchset aims at converting the pwrseq devices to proper in drivers,
The issue is that on Qualcomm based platforms, most of the gpios require
a pinctrl setup. Existing pwrseq code does not do any kind of pinctrl setup.
So this makes the pwrseq unusable on those platfroms.

Convert the pwrseq to proper drivers so that they can reuse
common driver setup like pinctrl from drivers/base/pinctrl.c and clocks.
This solution works much better and would make pwrseq to reuse 
all the driver setup done in the common code.


Changes since v2: All changes suggested by Ulf
	- Moved all the allocations/gpio_get/clk_get to probe
	- Removed alloc and free callbacks
	- try_get_module inside a mutex
	- Fixed Kconfigs
	- renamed list to pwrseq_node
	- add mssing pdev_set_drvdata()

Changes since v1:
	- Fixed issue while building as module.

Changes since RFC:
	- Fixed issues reported by kbuild test robot.
	- return EPROBE_DEFER from *_alloc() suggested by Ulf.

Thanks,
srini

Srinivas Kandagatla (3):
  mmc: pwrseq_simple: add to_pwrseq_simple() macro
  mmc: pwrseq_emmc: add to_pwrseq_emmc() macro
  mmc: pwrseq: convert to proper platform device

 drivers/mmc/core/Kconfig         |  21 ++++++++
 drivers/mmc/core/Makefile        |   4 +-
 drivers/mmc/core/pwrseq.c        | 105 +++++++++++++++++----------------------
 drivers/mmc/core/pwrseq.h        |  19 ++++---
 drivers/mmc/core/pwrseq_emmc.c   |  81 ++++++++++++++++++------------
 drivers/mmc/core/pwrseq_simple.c |  91 +++++++++++++++++----------------
 6 files changed, 182 insertions(+), 139 deletions(-)

-- 
2.5.0

             reply	other threads:[~2016-04-13 17:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-13 17:54 Srinivas Kandagatla [this message]
2016-04-13 17:54 ` [PATCH v3 1/3] mmc: pwrseq_simple: add to_pwrseq_simple() macro Srinivas Kandagatla
2016-04-13 17:54 ` [PATCH v3 2/3] mmc: pwrseq_emmc: add to_pwrseq_emmc() macro Srinivas Kandagatla
2016-04-13 17:54 ` [PATCH v3 3/3] mmc: pwrseq: convert to proper platform device Srinivas Kandagatla
2016-04-14  9:33   ` Ulf Hansson
2016-04-14 12:07     ` Srinivas Kandagatla

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=1460570081-1679-1-git-send-email-srinivas.kandagatla@linaro.org \
    --to=srinivas.kandagatla@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=mfuzzey@parkeon.com \
    --cc=ulf.hansson@linaro.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).