All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] mmc: pwrseq: convert to proper driver
@ 2016-01-19 10:57 ` Srinivas Kandagatla
  0 siblings, 0 replies; 14+ messages in thread
From: Srinivas Kandagatla @ 2016-01-19 10:57 UTC (permalink / raw)
  To: Ulf Hansson, linux-mmc
  Cc: linux-kernel, linux-arm-kernel, Srinivas Kandagatla

Hi Ulf, 

This patchset aims at converting the pwrseq devices to proper in built 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.

There are two possible solutions to this isssue.
1. Convert the pwrseq to proper drivers so that they can reuse
common driver setup like pinctrl from drivers/base/pinctrl.c

2. copy pinctrl_bind_pins() code and modify to fit pwrseq.

IMO, solution 1 works much better and would make pwrseq to reuse 
all the driver setup done in the common code.

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/pwrseq.c        | 99 ++++++++++++++++++++--------------------
 drivers/mmc/core/pwrseq.h        | 13 ++++--
 drivers/mmc/core/pwrseq_emmc.c   | 73 ++++++++++++++++++-----------
 drivers/mmc/core/pwrseq_simple.c | 85 ++++++++++++++++++++--------------
 4 files changed, 155 insertions(+), 115 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-01-19 14:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-19 10:57 [RFC PATCH 0/3] mmc: pwrseq: convert to proper driver Srinivas Kandagatla
2016-01-19 10:57 ` Srinivas Kandagatla
2016-01-19 10:58 ` [RFC PATCH 1/3] mmc: pwrseq_simple: add to_pwrseq_simple() macro Srinivas Kandagatla
2016-01-19 10:58   ` Srinivas Kandagatla
2016-01-19 10:59 ` [RFC PATCH 2/3] mmc: pwrseq_emmc: add to_pwrseq_emmc() macro Srinivas Kandagatla
2016-01-19 10:59   ` Srinivas Kandagatla
2016-01-19 10:59 ` [RFC PATCH 3/3] mmc: pwrseq: convert to proper platform device Srinivas Kandagatla
2016-01-19 10:59   ` Srinivas Kandagatla
2016-01-19 13:01   ` Ulf Hansson
2016-01-19 13:01     ` Ulf Hansson
2016-01-19 13:01     ` Ulf Hansson
2016-01-19 14:05     ` Srinivas Kandagatla
2016-01-19 14:05       ` Srinivas Kandagatla
2016-01-19 14:05       ` Srinivas Kandagatla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.