mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] 'detect' command to detect devices
Date: Thu, 30 May 2013 14:40:28 +0200	[thread overview]
Message-ID: <1369917631-31436-1-git-send-email-s.hauer@pengutronix.de> (raw)

This adds a 'detect' callback for devices which can be used for
MMC/ATA/USB and maybe other stuff. See the first patch for details.

In short with this series we get a 'detect' command to trigger
a devices detect callback to detect SD/MMC cards. Currently only
SD/MMC is implemented, but this should also be used for USB/ATA
aswell later.

Sascha

----------------------------------------------------------------
Sascha Hauer (3):
      devices: add detect mechanism
      mci: implement detect driver callback
      mci fsl-esdhc: implement detect driver callback

 commands/Kconfig        |  9 +++++++
 commands/Makefile       |  1 +
 commands/detect.c       | 70 +++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/base/driver.c   |  7 +++++
 drivers/mci/imx-esdhc.c | 13 +++++++--
 drivers/mci/mci-core.c  | 21 +++++++++++++++
 include/driver.h        |  8 ++++++
 include/mci.h           |  6 +++--
 8 files changed, 131 insertions(+), 4 deletions(-)
 create mode 100644 commands/detect.c

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2013-05-30 12:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 12:40 Sascha Hauer [this message]
2013-05-30 12:40 ` [PATCH 1/3] devices: add detect mechanism Sascha Hauer
2013-05-30 12:40 ` [PATCH 2/3] mci: implement detect driver callback Sascha Hauer
2013-05-30 12:40 ` [PATCH 3/3] mci fsl-esdhc: " Sascha Hauer

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=1369917631-31436-1-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.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