From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v8 2/4] gpio: Replace ARM gpio.h with the common API in include/asm-generic
Date: Mon, 7 Nov 2011 14:02:59 -0500 [thread overview]
Message-ID: <201111071403.01055.vapier@gentoo.org> (raw)
In-Reply-To: <74CDBE0F657A3D45AFBB94109FB122FF173F9A503D@HQMAIL01.nvidia.com>
On Monday 07 November 2011 12:02:16 Stephen Warren wrote:
> Mike Frysinger wrote at Monday, November 07, 2011 10:40 AM:
> > On Monday 07 November 2011 11:35:33 Stephen Warren wrote:
> > > Joe Hershberger wrote at Friday, November 04, 2011 8:25 PM:
> > > > -void gpio_free(int gp)
> > > > +int gpio_free(unsigned gpio)
> > > > {
> > > > + return 0;
> > > > }
> > >
> > > If you're doing a cleanup pass on this driver, you may as well make
> > > gpio_free() do something; it should probably clear
> > > gpio_names[gpio].name and perhaps set the pin back to SFIO - in other
> > > words, undo gpio_reqeust().
> >
> > i think the decision made in Linux was that freeing a GPIO should not
> > cause it to change tristate or anything. all it should do is mark it as
> > "available" so something else can request it.
>
> OK, I'll buy that, but presumably gpio_names[gpio].name should still be
> cleared to indicate the pin is free?
if the tegra code is using the gpio_names[] array to determine whether a pin
is allocated, then gpio_free() should take care of clearing it
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111107/9c93588d/attachment.pgp
next prev parent reply other threads:[~2011-11-07 19:02 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-09 22:31 [U-Boot] [PATCH 1/2] mpc83xx: Add a GPIO driver for the MPC83XX family Joe Hershberger
2011-08-09 22:15 ` Scott Wood
2011-08-09 22:23 ` Joe Hershberger
2011-08-10 0:45 ` [U-Boot] [PATCH v3 " Joe Hershberger
2011-08-10 0:45 ` [U-Boot] [PATCH v3 2/2] mpc8313erdb: Enable GPIO support on the MPC8313E RDB Joe Hershberger
2011-08-09 22:31 ` [U-Boot] [PATCH " Joe Hershberger
2011-08-09 22:54 ` [U-Boot] [PATCH 1/2] mpc83xx: Add a GPIO driver for the MPC83XX family Kim Phillips
2011-08-09 23:03 ` Joe Hershberger
2011-08-10 4:56 ` [U-Boot] [PATCH v4 1/3] gpio: Move common gpio.h to include/asm-generic Joe Hershberger
2011-08-11 3:26 ` Mike Frysinger
2011-08-12 8:11 ` [U-Boot] [PATCH v5 " Joe Hershberger
2011-08-12 18:42 ` Mike Frysinger
2011-08-13 0:10 ` [U-Boot] [PATCH v6 1/4] " Joe Hershberger
2011-08-14 18:55 ` Mike Frysinger
2011-09-14 1:08 ` Kim Phillips
2011-09-15 9:45 ` Wolfgang Denk
2011-09-15 21:27 ` Albert ARIBAUD
2011-10-12 3:50 ` [U-Boot] [PATCH v7 " Joe Hershberger
2011-10-12 15:55 ` Laurence Withers
2011-11-03 20:53 ` Kim Phillips
2011-11-05 2:24 ` [U-Boot] [PATCH v8 1/4] gpio: Modify common gpio.h to more closely match Linux Joe Hershberger
2011-11-05 17:06 ` Mike Frysinger
2011-11-11 21:55 ` [U-Boot] [PATCH v9 " Joe Hershberger
2011-12-13 0:54 ` Kim Phillips
2011-11-11 21:55 ` [U-Boot] [PATCH v9 2/4] gpio: Replace ARM gpio.h with the common API in include/asm-generic Joe Hershberger
2011-11-11 23:07 ` Kim Phillips
2011-11-17 18:24 ` Joe Hershberger
2011-11-11 21:55 ` [U-Boot] [PATCH v9 3/4] mpc83xx: Add a GPIO driver for the MPC83XX family Joe Hershberger
2011-11-11 21:55 ` [U-Boot] [PATCH v9 4/4] mpc8313erdb: Enable GPIO support on the MPC8313E RDB Joe Hershberger
2011-11-05 2:24 ` [U-Boot] [PATCH v8 2/4] gpio: Replace ARM gpio.h with the common API in include/asm-generic Joe Hershberger
2011-11-07 16:35 ` Stephen Warren
2011-11-07 17:39 ` Mike Frysinger
2011-11-07 17:02 ` Stephen Warren
2011-11-07 17:45 ` Joe Hershberger
2011-11-07 19:02 ` Mike Frysinger [this message]
2011-11-05 2:25 ` [U-Boot] [PATCH v8 3/4] mpc83xx: Add a GPIO driver for the MPC83XX family Joe Hershberger
2011-11-05 17:07 ` Mike Frysinger
2011-11-05 2:25 ` [U-Boot] [PATCH v8 4/4] mpc8313erdb: Enable GPIO support on the MPC8313E RDB Joe Hershberger
2011-10-12 3:50 ` [U-Boot] [PATCH v7 2/4] gpio: Modify common gpio.h to more closely match Linux Joe Hershberger
2011-10-12 15:55 ` Laurence Withers
2011-10-12 3:50 ` [U-Boot] [PATCH v7 3/4] mpc83xx: Add a GPIO driver for the MPC83XX family Joe Hershberger
2011-10-12 3:50 ` [U-Boot] [PATCH v7 4/4] mpc8313erdb: Enable GPIO support on the MPC8313E RDB Joe Hershberger
2011-08-13 0:10 ` [U-Boot] [PATCH v6 2/4] gpio: Modify common gpio.h to more closely match Linux Joe Hershberger
2011-08-14 18:55 ` Mike Frysinger
2011-10-06 21:56 ` Wolfgang Denk
2011-08-13 0:10 ` [U-Boot] [PATCH v6 3/4] mpc83xx: Add a GPIO driver for the MPC83XX family Joe Hershberger
2011-10-06 21:55 ` Wolfgang Denk
2011-08-13 0:10 ` [U-Boot] [PATCH v6 4/4] mpc8313erdb: Enable GPIO support on the MPC8313E RDB Joe Hershberger
2011-10-06 21:55 ` Wolfgang Denk
2011-08-12 8:11 ` [U-Boot] [PATCH v5 2/3] mpc83xx: Add a GPIO driver for the MPC83XX family Joe Hershberger
2011-08-12 8:11 ` [U-Boot] [PATCH v5 3/3] mpc8313erdb: Enable GPIO support on the MPC8313E RDB Joe Hershberger
2011-08-10 4:56 ` [U-Boot] [PATCH v4 2/3] mpc83xx: Add a GPIO driver for the MPC83XX family Joe Hershberger
2011-08-10 4:56 ` [U-Boot] [PATCH v4 3/3] mpc8313erdb: Enable GPIO support on the MPC8313E RDB Joe Hershberger
2011-08-09 23:52 ` [U-Boot] [PATCH v2 1/2] mpc83xx: Add a GPIO driver for the MPC83XX family Joe Hershberger
2011-08-09 23:52 ` [U-Boot] [PATCH v2 2/2] mpc8313erdb: Enable GPIO support on the MPC8313E RDB Joe Hershberger
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=201111071403.01055.vapier@gentoo.org \
--to=vapier@gentoo.org \
--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