From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v8 13/14] dm: Enable gpio command to support driver model
Date: Wed, 26 Feb 2014 12:28:06 -0500 [thread overview]
Message-ID: <20140226172806.GD16805@bill-the-cat> (raw)
In-Reply-To: <CAPnjgZ2LxFOCfqOPcAtT=ONoFQUf_xnB+7ZT8QwjUzCidUJCWA@mail.gmail.com>
On Wed, Feb 26, 2014 at 10:21:15AM -0700, Simon Glass wrote:
> Hi Tom,
>
> On 26 February 2014 09:34, Tom Rini <trini@ti.com> wrote:
>
> > On Mon, Feb 17, 2014 at 03:06:47PM -0700, Simon Glass wrote:
> >
> > > Now that named GPIO banks are supported, along with a way of obtaining
> > > the status of a GPIO (input or output), we can provide an enhanced
> > > GPIO command for driver model. Where the driver provides its own
> > operation
> > > for obtaining the GPIO state, this is used, otherwise a generic version
> > > is sufficient.
> > [snip]
> > > +#if defined(CONFIG_DM_GPIO)
> > > + /*
> > > + * TODO(sjg at chromium.org): Convert this code over to use the GPIO
> > > + * uclass interface instead of the numbered GPIO compatibility
> > > + * layer.
> > > + */
> > > + ret = gpio_lookup_name(str_gpio, NULL, NULL, &gpio);
> > > + if (ret)
> > > + return cmd_process_error(cmdtp, ret);
> >
> > Since this is part of the initial "lets show DM code" shouldn't we do
> > this TODO before merging?
> >
>
> The problem is that this is generic code, which must work with and without
> driver model. So we can't move the command code over to exclusively use
> driver model until all GPIO drivers use driver model.
OK, since we're inside a CONFIG_DM_GPIO can you just expand the comment
a little so it's clear it's blocked by further conversion?
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140226/93e74fe7/attachment.pgp>
next prev parent reply other threads:[~2014-02-26 17:28 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-17 22:06 [U-Boot] [PATCH v8 0/14] Driver model implementation, tests, demo and GPIO Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 01/14] sandbox: Build a device tree file for sandbox Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 02/14] Add cmd_process_error() to report and process errors Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 03/14] yaffs: Remove private list implementation Simon Glass
2014-02-24 17:54 ` Marek Vasut
2014-02-24 18:59 ` Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 04/14] dm: Add README for driver model Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 05/14] dm: Add base driver model support Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 06/14] sandbox: config: Enable driver model Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 07/14] dm: Set up driver model after relocation Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 08/14] dm: Add basic tests Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 09/14] dm: Add a 'dm' command for testing Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 10/14] dm: Add a demonstration/example driver Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 11/14] dm: Add GPIO support and tests Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 12/14] sandbox: Convert GPIOs to use driver model Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 13/14] dm: Enable gpio command to support " Simon Glass
2014-02-26 16:34 ` Tom Rini
2014-02-26 17:21 ` Simon Glass
2014-02-26 17:28 ` Tom Rini [this message]
2014-02-26 17:29 ` Simon Glass
2014-02-17 22:06 ` [U-Boot] [PATCH v8 14/14] dm: Remove old driver model documentation Simon Glass
2014-02-17 22:12 ` [U-Boot] [PATCH v8 0/14] Driver model implementation, tests, demo and GPIO Simon Glass
2014-02-26 16:34 ` Tom Rini
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=20140226172806.GD16805@bill-the-cat \
--to=trini@ti.com \
--cc=u-boot@lists.denx.de \
/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