mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shawn Guo <shawn.guo@linaro.org>
To: Simon Pearson <spearson@acumalabs.com>
Cc: <grant.likely@secretlab.ca>, <linus.walleij@linaro.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 001/001] gpio-mxs: Select faster gpio-generic set methods
Date: Mon, 24 Jun 2013 14:59:30 +0800	[thread overview]
Message-ID: <20130624065929.GC26254@S2101-09.ap.freescale.net> (raw)
In-Reply-To: <51C497EF.1070108@acumalabs.com>

On Fri, Jun 21, 2013 at 11:14:07AM -0700, Simon Pearson wrote:
> From: Simon Pearson <spearson@acumalabs.com>
> 
> Kernel 3.8.4.  By defining both the set and clear registers,
> the speed of the gpio isimproved. gpio-generic.c, selects the
> bgpio_set_with_clear() which isfaster than the current
> bgpio_set_set().  This has performance implications for all
> bitbang drivers (i2c, spi, etc).  Slow SPI as compared to
> 2.6.35.33 improved by a factor of 10 (80kHz CLK to 800kHz CLK).
> 
> Signed-off-by: Simon Pearson <spearson@acumalabs.com>

The latest mainline kernel already has the improvement made by commit
90dae4e (gpio: mxs: Use set and clear capabilities of the gpio
controller).

Shawn

> 
> ---
> --- a/drivers/gpio/gpio-mxs.c.orig    2013-03-20 13:11:19.000000000 -0700
> +++ b/drivers/gpio/gpio-mxs.c    2013-06-21 10:02:33.000000000 -0700
> @@ -292,7 +292,8 @@ static int mxs_gpio_probe(struct platfor
> 
>      err = bgpio_init(&port->bgc, &pdev->dev, 4,
>               port->base + PINCTRL_DIN(port),
> -             port->base + PINCTRL_DOUT(port), NULL,
> +             port->base + PINCTRL_DOUT(port) + MXS_SET,
> +             port->base + PINCTRL_DOUT(port) + MXS_CLR,
>               port->base + PINCTRL_DOE(port), NULL, 0);
>      if (err)
>          goto out_irqdesc_free;


      reply	other threads:[~2013-06-24  6:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-21 18:14 Simon Pearson
2013-06-24  6:59 ` Shawn Guo [this message]

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=20130624065929.GC26254@S2101-09.ap.freescale.net \
    --to=shawn.guo@linaro.org \
    --cc=grant.likely@secretlab.ca \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=spearson@acumalabs.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

all inboxes | Powered by JetHome®