public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: me@felipebalbi.com
Cc: Felipe Balbi <felipe.balbi@nokia.com>,
	linux-omap@vger.kernel.org, Tony Lindgren <tony@atomide.com>,
	Jean Delvare <khali@linux-fr.org>
Subject: Re: [PATCH 11/9] move twl4030-gpio to drivers/gpio
Date: Sat, 27 Sep 2008 22:16:14 -0700	[thread overview]
Message-ID: <200809272216.14672.david-b@pacbell.net> (raw)
In-Reply-To: <20080928031411.GF8468@frodo>

On Saturday 27 September 2008, Felipe Balbi wrote:
> On Sat, Sep 27, 2008 at 04:45:20PM -0700, David Brownell wrote:
> > On Saturday 27 September 2008, Felipe Balbi wrote:
> > > We need something like the patch below (I can't find a substitute
> > > to twl4030_set_gpio_edge_ctrl and twl4030_set_gpio_debounce):
> > 
> > Something like that, yes.  I have other patches queued up though.
> > 
> > And meanwhile, your build seems goofed ... fix that first.
> 
> Yeah, it only happens when both mmc and twl4030-gpio are built as
> modules. Still sounds weird since we have EXPORT_SYMBOL() for those
> twl-specific crap.

Don't yet build twl4030 as a module.  The vmlinux object can't
link against symbols in other objects.  ;)

As I noted, the modular option is for build testing; when this
goes to mainline, this code should be able to build on most any
platform.  (Not just OMAP; not just ARM.)  I don't think any of
the OMAP boards which actually use this code will be able to use
that as a module, though.

When hsmmc.c behaves again, I've got patches to get rid of its
use of those twl-specific symbols.  Then that linkage issue
will go away.


> > For debouncing, see this LKML RFC:
> > 
> >   http://marc.info/?l=linux-kernel&m=122228602206108&w=2
> 
> the debouncing mechanism looks really good :-)

Kind of brainless ... except for the observation that
we pretty much need one of those.  ;)


> That's true. Didn't got that at first look. We should use something
> like:
> 
> return gpio_get_value_cansleep(irq_to_gpio(irq));
> 
> right ??

I want to avoid the irq_to_gpio() bit.   Eventually the whole
MMC/SD initialization needs reworking ... I doubt Overo will be
the only board using one SD for storage, and an SDIO for WLAN.


> it's good that you've been playing with twl4030-gpio. You've written
> gpiolib anyways, so you might better than I do where stuff should go.

Or in some cases:  where it's about time to add mechanisms
to gpiolib.  ;)

- dave


  reply	other threads:[~2008-09-28  5:16 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-26 11:19 [PATCH 0/9] twl4030 updates Felipe Balbi
2008-09-26 11:19 ` [PATCH 1/9] twl4030: fix potential null pointer dereference Felipe Balbi
2008-09-26 11:19   ` [PATCH 2/9] twl4030-gpio: Remove default pullup enable/disable of GPIO Felipe Balbi
2008-09-26 11:19     ` [PATCH 3/9] i2c: clean add_children a bit Felipe Balbi
2008-09-26 11:19       ` [PATCH 4/9] i2c: move twl4030_keypad to new style registration Felipe Balbi
2008-09-26 11:19         ` [PATCH 5/9] i2c: move twl4030-usb to platform_device Felipe Balbi
2008-09-26 11:19           ` [PATCH 6/9] i2c: twl4030-usb: add 'vbus' sysfs file Felipe Balbi
2008-09-26 11:19             ` [PATCH 7/9] twl4030 gpio platform data Felipe Balbi
2008-09-26 11:19               ` [PATCH 8/9] twl4030 uses gpiolib Felipe Balbi
2008-09-26 11:19                 ` [PATCH 9/9] i2c: move twl4030-madc to new registration style Felipe Balbi
2008-09-26 17:09                   ` David Brownell
2008-09-26 17:46                     ` Felipe Balbi
2008-09-27  7:37                       ` Mikko Ylinen
2008-09-27 15:04                         ` David Brownell
2008-09-27 15:40                           ` Steve Sakoman
2008-09-27 17:17                             ` David Brownell
2008-10-01 14:20                           ` Mikko Ylinen
2008-10-01 16:13                             ` David Brownell
2008-09-26 19:50                   ` David Brownell
2008-09-26 20:01                     ` Steve Sakoman
2008-09-26 17:10                 ` [PATCH 8/9] twl4030 uses gpiolib David Brownell
2008-09-26 17:47                   ` Felipe Balbi
2008-09-26 18:57                     ` David Brownell
2008-09-28  1:01           ` [PATCH 5/9] i2c: move twl4030-usb to platform_device David Brownell
2008-09-28  3:03             ` Felipe Balbi
2008-09-26 17:12 ` [PATCH 0/9] twl4030 updates David Brownell
2008-09-26 17:50   ` Felipe Balbi
2008-09-26 18:55     ` David Brownell
2008-09-26 19:00   ` David Brownell
2008-09-26 19:10     ` Steve Sakoman
2008-09-26 19:23       ` Felipe Balbi
2008-09-26 19:45       ` David Brownell
2008-09-27 19:14 ` David Brownell
2008-09-27 21:17   ` Felipe Balbi
2008-09-27 21:45     ` David Brownell
2008-09-27 21:46       ` Felipe Balbi
2008-09-27 21:41 ` [PATCH 11/9] move twl4030-gpio to drivers/gpio David Brownell
2008-09-27 22:29   ` Felipe Balbi
2008-09-27 23:09     ` Felipe Balbi
2008-09-27 23:45       ` David Brownell
2008-09-28  3:14         ` Felipe Balbi
2008-09-28  5:16           ` David Brownell [this message]
2008-10-01 13:46             ` Felipe Contreras
2008-10-01 13:52               ` Felipe Balbi
2008-10-01 15:58               ` David Brownell
2008-10-01 16:05                 ` Jean Delvare
2008-10-01 16:32                   ` David Brownell
2008-09-27 23:29     ` David Brownell

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=200809272216.14672.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=felipe.balbi@nokia.com \
    --cc=khali@linux-fr.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=me@felipebalbi.com \
    --cc=tony@atomide.com \
    /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