From: Olof Johansson <olof@lixom.net>
To: Mike Rapoport <mike@compulab.co.il>
Cc: Chris Ball <cjb@laptop.org>,
linux-mmc@vger.kernel.org, linux-tegra@vger.kernel.org,
Yvonne Yip <y@palm.com>, Gary King <gking@nvidia.com>,
Todd Poynor <toddpoynor@google.com>,
Dmitry Shmidt <dimitrysh@google.com>,
Rhyland Klein <rklein@nvidia.com>
Subject: Re: [PATCH 4/4] mmc: add sdhci-tegra driver for Tegra SoCs
Date: Wed, 15 Dec 2010 05:31:15 -0600 [thread overview]
Message-ID: <20101215113115.GB2086@lixom.net> (raw)
In-Reply-To: <4D08A54E.9070103@compulab.co.il>
Hi,
On Wed, Dec 15, 2010 at 01:23:58PM +0200, Mike Rapoport wrote:
> Hi Olof,
>
> Overall looks good, just some nitpicking comments.
>
[...]
> > +struct tegra_sdhci_platform_data {
> > + int cd_gpio;
> > + int wp_gpio;
> > + int power_gpio;
>
> The power_gpio seems to be unused...
Yep, will remove.
> > +static unsigned int tegra_sdhci_get_ro(struct sdhci_host *sdhci)
> > +{
> > + struct tegra_sdhci_host *host = sdhci_priv(sdhci);
> > +
> > + if (host->wp_gpio != -1)
>
> if (gpio_is_valid(host->wp_gpio)) whould be better IMO.
[...]
> > + if (plat->cd_gpio != -1) {
>
> if (gpio_is_valid(host->wp_gpio)) whould be better IMO.
>
Fair enough (x2).
> > + rc = request_irq(gpio_to_irq(plat->cd_gpio), carddetect_irq,
> > + IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING,
> > + mmc_hostname(sdhci->mmc), sdhci);
> > +
> > + if (rc)
> > + goto err_remove_host;
> > + }
>
> It seems to me that the tegra_sdhci_probe should handle gpio initialization,
> rather then keep gpio_request etc calls in the board files.
Yeah, I had been planning on moving that over but not at this pass. I can do that
though.
> > + printk(KERN_INFO "sdhci%d: initialized irq %d ioaddr %p\n", pdev->id,
> > + sdhci->irq, sdhci->ioaddr);
> > +
>
> dev_info?
Yep, will change.
Thanks!
-Olof
next prev parent reply other threads:[~2010-12-15 11:31 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-15 4:49 [PATCH 0/4] Add SDHCI driver for Tegra Olof Johansson
2010-12-15 4:49 ` [PATCH 1/4] sdhci: add quirk for max len ADMA descriptors Olof Johansson
2010-12-15 4:49 ` [PATCH 2/4] sdhci: add quirk for broken sdio irq Olof Johansson
2010-12-15 10:42 ` zhangfei gao
2010-12-15 10:54 ` Olof Johansson
2010-12-15 11:03 ` Wolfram Sang
2010-12-15 11:24 ` Olof Johansson
2010-12-15 11:44 ` Wolfram Sang
2010-12-15 10:57 ` Wolfram Sang
2010-12-15 11:34 ` Olof Johansson
2010-12-15 4:49 ` [PATCH 3/4] sdhci: don't finish commands in flight Olof Johansson
2010-12-15 4:49 ` [PATCH 4/4] mmc: add sdhci-tegra driver for Tegra SoCs Olof Johansson
2010-12-15 8:35 ` Wolfram Sang
2010-12-15 8:43 ` Olof Johansson
2010-12-15 8:46 ` Olof Johansson
2010-12-15 10:37 ` Wolfram Sang
2010-12-15 11:40 ` Olof Johansson
2010-12-15 11:59 ` Wolfram Sang
2010-12-15 13:03 ` Olof Johansson
2010-12-15 13:40 ` Wolfram Sang
2010-12-15 11:23 ` Mike Rapoport
2010-12-15 11:31 ` Olof Johansson [this message]
2010-12-15 11:33 ` Pavan Kondeti
2010-12-15 11:35 ` Olof Johansson
2010-12-15 11:37 ` Wolfram Sang
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=20101215113115.GB2086@lixom.net \
--to=olof@lixom.net \
--cc=cjb@laptop.org \
--cc=dimitrysh@google.com \
--cc=gking@nvidia.com \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mike@compulab.co.il \
--cc=rklein@nvidia.com \
--cc=toddpoynor@google.com \
--cc=y@palm.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