linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mmc: improve power-on for sdio wifi card.
@ 2014-11-08  0:14 NeilBrown
  2014-11-08  0:14 ` [PATCH 1/2] mmc: core: allow a reset gpio to be configured NeilBrown
  2014-11-08  0:14 ` [PATCH 2/2] mmc: core: reset sdio card properly on resume NeilBrown
  0 siblings, 2 replies; 12+ messages in thread
From: NeilBrown @ 2014-11-08  0:14 UTC (permalink / raw)
  To: Ulf Hansson, Chris Ball
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-mmc-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, GTA04 owners

These two patches improve power-on management for my 'libertas'
wifi card.

On my board the card shares a regulator with a bluetooth device, so
turning off the regulator may not powercycle the card.  To get it to a
clean state it is necessary to hold the reset line down while enabling
the regulator.

So the first patch add a reset-gpio function for all sdio cards
which is configured through devicetree.

The sequence of commands sent to the sdio device for power-up differs
between runtime power resume (which works nicely) and system-suspend
resume (which doesn't).
The second patch add to calls to make these sequences the same and
allowed my device to work reliably after system suspend (though the
libertas driver needs a bit of work before it is completely reliable).

Thanks,
NeilBrown
---

NeilBrown (2):
      mmc: core: allow a reset gpio to be configured.
      mmc: core: reset sdio card properly on resume.


 Documentation/devicetree/bindings/mmc/mmc.txt |    3 +
 drivers/mmc/core/core.c                       |    3 +
 drivers/mmc/core/host.c                       |   12 ++++
 drivers/mmc/core/sdio.c                       |    8 ++-
 drivers/mmc/core/slot-gpio.c                  |   70 +++++++++++++++++++++++++
 include/linux/mmc/slot-gpio.h                 |    4 +
 6 files changed, 97 insertions(+), 3 deletions(-)

--
Signature

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH 0/2] mmc: core: power-on sdio card correctly.
@ 2014-11-12  3:55 NeilBrown
  2014-11-12  3:55 ` [PATCH 2/2] mmc: core: reset sdio card properly on resume NeilBrown
  0 siblings, 1 reply; 12+ messages in thread
From: NeilBrown @ 2014-11-12  3:55 UTC (permalink / raw)
  To: Ulf Hansson, Chris Ball; +Cc: GTA04 owners, linux-mmc, linux-kernel

These two patches replace my previous patch
  [PATCH 2/2] mmc: core: reset sdio card properly on resume.

The only change is to use host->card->ocr instead of
host->ocr_avail, as recommend by Ulf.

These restore my libertas  wifi device properly on system
resume.

(I'm still hoping for a reply to my other patch:
   [PATCH 1/2] mmc: core: allow a reset gpio to be configured.
)

Thanks,
NeilBrown

---

NeilBrown (2):
      mmc: core: use card->ocr when negotiating voltage setting in mmc_sdio_power_restore
      mmc: core: reset sdio card properly on resume.


 drivers/mmc/core/sdio.c |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

--
Signature

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

end of thread, other threads:[~2014-12-02 12:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-08  0:14 [PATCH 0/2] mmc: improve power-on for sdio wifi card NeilBrown
2014-11-08  0:14 ` [PATCH 1/2] mmc: core: allow a reset gpio to be configured NeilBrown
2014-11-28 11:56   ` Ulf Hansson
2014-11-28 14:45     ` Mark Brown
2014-12-02  1:55     ` NeilBrown
2014-12-02  6:05       ` [Gta04-owner] " Dr. H. Nikolaus Schaller
2014-12-02 12:11       ` Ulf Hansson
2014-11-08  0:14 ` [PATCH 2/2] mmc: core: reset sdio card properly on resume NeilBrown
2014-11-10 13:29   ` Ulf Hansson
     [not found]     ` <CAPDyKFrrOozTO5xR8RO=4L8xZ9hLGizH=2mxZE=5zvwMhhgD+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-11  0:17       ` NeilBrown
2014-11-11  8:12         ` Ulf Hansson
2014-11-12  3:55 [PATCH 0/2] mmc: core: power-on sdio card correctly NeilBrown
2014-11-12  3:55 ` [PATCH 2/2] mmc: core: reset sdio card properly on resume NeilBrown

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