linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND] mmc: omap_hsmmc: support more DT properties
@ 2014-03-03 21:16 Daniel Mack
  2014-03-04 16:19 ` Balaji T K
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Mack @ 2014-03-03 21:16 UTC (permalink / raw)
  To: balajitk, chris; +Cc: linux-mmc, tony, linux-omap, Daniel Mack

This should probably be done implicitly through mmc_of_parse(), but that
doesn't play well along with the multi-slot model the hsmmc driver
features. Hence, for now, do it manually. The properties are already
documented in Documentation/devicetree/bindings/mmc/mmc.txt.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Balaji T K <balajitk@ti.com>
---
This is a resend of a patch that was already acked by Balaji T K:

  http://www.spinics.net/lists/linux-mmc/msg25029.html


 drivers/mmc/host/omap_hsmmc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 2815de6..a5a38cc 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -1765,6 +1765,12 @@ static struct omap_mmc_platform_data *of_get_hsmmc_pdata(struct device *dev)
 	if (of_find_property(np, "ti,needs-special-hs-handling", NULL))
 		pdata->slots[0].features |= HSMMC_HAS_HSPE_SUPPORT;
 
+	if (of_find_property(np, "keep-power-in-suspend", NULL))
+		pdata->slots[0].pm_caps |= MMC_PM_KEEP_POWER;
+
+	if (of_find_property(np, "enable-sdio-wakeup", NULL))
+		pdata->slots[0].pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
+
 	return pdata;
 }
 #else
-- 
1.8.5.3


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

* Re: [PATCH RESEND] mmc: omap_hsmmc: support more DT properties
  2014-03-03 21:16 [PATCH RESEND] mmc: omap_hsmmc: support more DT properties Daniel Mack
@ 2014-03-04 16:19 ` Balaji T K
  2014-03-04 17:37   ` Tony Lindgren
  2014-03-04 17:39   ` Chris Ball
  0 siblings, 2 replies; 4+ messages in thread
From: Balaji T K @ 2014-03-04 16:19 UTC (permalink / raw)
  To: chris, linux-mmc; +Cc: Daniel Mack, tony, linux-omap

On Tuesday 04 March 2014 02:46 AM, Daniel Mack wrote:
> This should probably be done implicitly through mmc_of_parse(), but that
> doesn't play well along with the multi-slot model the hsmmc driver
> features. Hence, for now, do it manually. The properties are already
> documented in Documentation/devicetree/bindings/mmc/mmc.txt.
>
> Signed-off-by: Daniel Mack <zonque@gmail.com>
> Acked-by: Balaji T K <balajitk@ti.com>
> ---
> This is a resend of a patch that was already acked by Balaji T K:
>
>    http://www.spinics.net/lists/linux-mmc/msg25029.html

Hi Chris,

To make it easier for you, I have collected omap_hsmmc patches [1]
and pushed a branch omap_hsmmc-for-3.15 based on 3.14rc2.

Please pull or cherry pick

The following changes since commit b28a960c42fcd9cfc987441fa6d1c1a471f0f9ed:

   Linux 3.14-rc2 (2014-02-09 18:15:47 -0800)

are available in the git repository at:
   git://git.ti.com/~balajitk/ti-linux-kernel/omap-hsmmc.git omap_hsmmc-for-3.15

Balaji T K (14):
       mmc: omap_hsmmc: use devm_regulator API
       mmc: omap_hsmmc: handle vcc and vcc_aux independently
       regulator: add pbias regulator support
       mmc: omap_hsmmc: adapt hsmmc to use pbias regulator
       ARM: dts: add pbias dt node
       ARM: OMAP: enable SYSCON and REGULATOR_PBIAS in omap2plus_defconfig
       mmc: omap_hsmmc: remove pbias workaround
       mmc: omap_hsmmc: fix return error code for of_get_hsmmc_pdata
       mmc: omap_hsmmc: remove redundant reset done
       mmc: omap_hsmmc: save clock rate to use in interrupt context
       mmc: omap_hsmmc: fix request done for sbc error case
       mmc: omap_hsmmc: split dma setup
       mmc: omap_hsmmc: add cmd23 support
       mmc: omap_hsmmc: add autocmd23 support

Dan Carpenter (1):
       mmc: omap_hsmmc: remove a duplicative test

Daniel Mack (1):
       mmc: omap_hsmmc: support more DT properties

Nishanth Menon (2):
       mmc: omap_hsmmc: Add support for quirky omap3 hsmmc controller
       ARM: dts: omap3-ldp: fix mmc configuration

  .../devicetree/bindings/mmc/ti-omap-hsmmc.txt      |    1 +
  .../bindings/regulator/pbias-regulator.txt         |   27 ++
  arch/arm/boot/dts/dra7.dtsi                        |   17 ++
  arch/arm/boot/dts/omap2430.dtsi                    |   17 ++
  arch/arm/boot/dts/omap3-ldp.dts                    |   23 ++
  arch/arm/boot/dts/omap3.dtsi                       |   17 ++
  arch/arm/boot/dts/omap4.dtsi                       |   17 ++
  arch/arm/boot/dts/omap5.dtsi                       |   17 ++
  arch/arm/configs/omap2plus_defconfig               |    2 +
  drivers/mmc/host/omap_hsmmc.c                      |  242 +++++++++++++------
  drivers/regulator/Kconfig                          |    9 +
  drivers/regulator/Makefile                         |    1 +
  drivers/regulator/pbias-regulator.c                |  255 ++++++++++++++++++++
  13 files changed, 569 insertions(+), 76 deletions(-)
  create mode 100644 Documentation/devicetree/bindings/regulator/pbias-regulator.txt
  create mode 100644 drivers/regulator/pbias-regulator.c

[1]
http://www.spinics.net/lists/linux-omap/msg102811.html
http://lkml.org/lkml/2014/2/14/13
http://www.spinics.net/lists/linux-mmc/msg25029.html
http://www.spinics.net/lists/linux-omap/msg103488.html
http://www.spinics.net/lists/linux-omap/msg103608.html
http://comments.gmane.org/gmane.linux.kernel.mmc/24777


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

* Re: [PATCH RESEND] mmc: omap_hsmmc: support more DT properties
  2014-03-04 16:19 ` Balaji T K
@ 2014-03-04 17:37   ` Tony Lindgren
  2014-03-04 17:39   ` Chris Ball
  1 sibling, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2014-03-04 17:37 UTC (permalink / raw)
  To: Balaji T K; +Cc: chris, linux-mmc, Daniel Mack, linux-omap

* Balaji T K <balajitk@TI.COM> [140304 08:22]:
> On Tuesday 04 March 2014 02:46 AM, Daniel Mack wrote:
> >This should probably be done implicitly through mmc_of_parse(), but that
> >doesn't play well along with the multi-slot model the hsmmc driver
> >features. Hence, for now, do it manually. The properties are already
> >documented in Documentation/devicetree/bindings/mmc/mmc.txt.
> >
> >Signed-off-by: Daniel Mack <zonque@gmail.com>
> >Acked-by: Balaji T K <balajitk@ti.com>
> >---
> >This is a resend of a patch that was already acked by Balaji T K:
> >
> >   http://www.spinics.net/lists/linux-mmc/msg25029.html
> 
> Hi Chris,
> 
> To make it easier for you, I have collected omap_hsmmc patches [1]
> and pushed a branch omap_hsmmc-for-3.15 based on 3.14rc2.

You should probably send this as a proper pull request to Chris
with [GIT PULL] in the Subject line as it can otherwise get
easily lost.

Regards,

Tony
 
> Please pull or cherry pick
> 
> The following changes since commit b28a960c42fcd9cfc987441fa6d1c1a471f0f9ed:
> 
>   Linux 3.14-rc2 (2014-02-09 18:15:47 -0800)
> 
> are available in the git repository at:
>   git://git.ti.com/~balajitk/ti-linux-kernel/omap-hsmmc.git omap_hsmmc-for-3.15
> 
> Balaji T K (14):
>       mmc: omap_hsmmc: use devm_regulator API
>       mmc: omap_hsmmc: handle vcc and vcc_aux independently
>       regulator: add pbias regulator support
>       mmc: omap_hsmmc: adapt hsmmc to use pbias regulator
>       ARM: dts: add pbias dt node
>       ARM: OMAP: enable SYSCON and REGULATOR_PBIAS in omap2plus_defconfig
>       mmc: omap_hsmmc: remove pbias workaround
>       mmc: omap_hsmmc: fix return error code for of_get_hsmmc_pdata
>       mmc: omap_hsmmc: remove redundant reset done
>       mmc: omap_hsmmc: save clock rate to use in interrupt context
>       mmc: omap_hsmmc: fix request done for sbc error case
>       mmc: omap_hsmmc: split dma setup
>       mmc: omap_hsmmc: add cmd23 support
>       mmc: omap_hsmmc: add autocmd23 support
> 
> Dan Carpenter (1):
>       mmc: omap_hsmmc: remove a duplicative test
> 
> Daniel Mack (1):
>       mmc: omap_hsmmc: support more DT properties
> 
> Nishanth Menon (2):
>       mmc: omap_hsmmc: Add support for quirky omap3 hsmmc controller
>       ARM: dts: omap3-ldp: fix mmc configuration
> 
>  .../devicetree/bindings/mmc/ti-omap-hsmmc.txt      |    1 +
>  .../bindings/regulator/pbias-regulator.txt         |   27 ++
>  arch/arm/boot/dts/dra7.dtsi                        |   17 ++
>  arch/arm/boot/dts/omap2430.dtsi                    |   17 ++
>  arch/arm/boot/dts/omap3-ldp.dts                    |   23 ++
>  arch/arm/boot/dts/omap3.dtsi                       |   17 ++
>  arch/arm/boot/dts/omap4.dtsi                       |   17 ++
>  arch/arm/boot/dts/omap5.dtsi                       |   17 ++
>  arch/arm/configs/omap2plus_defconfig               |    2 +
>  drivers/mmc/host/omap_hsmmc.c                      |  242 +++++++++++++------
>  drivers/regulator/Kconfig                          |    9 +
>  drivers/regulator/Makefile                         |    1 +
>  drivers/regulator/pbias-regulator.c                |  255 ++++++++++++++++++++
>  13 files changed, 569 insertions(+), 76 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/regulator/pbias-regulator.txt
>  create mode 100644 drivers/regulator/pbias-regulator.c
> 
> [1]
> http://www.spinics.net/lists/linux-omap/msg102811.html
> http://lkml.org/lkml/2014/2/14/13
> http://www.spinics.net/lists/linux-mmc/msg25029.html
> http://www.spinics.net/lists/linux-omap/msg103488.html
> http://www.spinics.net/lists/linux-omap/msg103608.html
> http://comments.gmane.org/gmane.linux.kernel.mmc/24777
> 

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

* Re: [PATCH RESEND] mmc: omap_hsmmc: support more DT properties
  2014-03-04 16:19 ` Balaji T K
  2014-03-04 17:37   ` Tony Lindgren
@ 2014-03-04 17:39   ` Chris Ball
  1 sibling, 0 replies; 4+ messages in thread
From: Chris Ball @ 2014-03-04 17:39 UTC (permalink / raw)
  To: Balaji T K; +Cc: linux-mmc, Daniel Mack, tony, linux-omap

Hi Balaji,

On Tue, Mar 04 2014, Balaji T K wrote:
>  git://git.ti.com/~balajitk/ti-linux-kernel/omap-hsmmc.git omap_hsmmc-for-3.15

Thanks, all pushed to mmc-next for 3.15.

- Chris.
-- 
Chris Ball   <chris@printf.net>   <http://printf.net/>

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

end of thread, other threads:[~2014-03-04 17:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03 21:16 [PATCH RESEND] mmc: omap_hsmmc: support more DT properties Daniel Mack
2014-03-04 16:19 ` Balaji T K
2014-03-04 17:37   ` Tony Lindgren
2014-03-04 17:39   ` Chris Ball

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).