From: Andrew Victor <andrew@sanpeople.com>
To: David Brownell <david-b@pacbell.net>
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>,
Milan Svoboda <msvoboda@ra.rockwell.com>,
Haavard Skinnemoen <hskinnemoen@atmel.com>
Subject: Re: [patch 2.6.20-rc2] gpio_direction_output() needs an initial value
Date: 02 Mar 2007 07:48:12 +0200 [thread overview]
Message-ID: <1172814491.26751.4.camel@fuzzie.sanpeople.com> (raw)
In-Reply-To: <200703011825.10370.david-b@pacbell.net>
hi David,
> It's been pointed out that output GPIOs should have an initial value, to
> avoid signal glitching ... among other things, it can be some time before
> a driver is ready. This patch corrects that oversight, fixing
For the AT91 changes:
Acked-by: Andrew Victor <andrew@sanpeople.com>
> --- g26.orig/drivers/spi/atmel_spi.c 2007-02-28 12:47:43.000000000 -0800
> +++ g26/drivers/spi/atmel_spi.c 2007-03-01 15:29:30.000000000 -0800
> - gpio_direction_output(npcs_pin);
> + gpio_direction_output(npcs_pin, !(spi->mode & SPI_CS_HIGH));
> }
As mentioned previously (by Walter Tuppa), wouldn't it be better to just
change this to:
cs_deactivate(spi);
Regards,
Andrew Victor
next prev parent reply other threads:[~2007-03-02 6:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-02 2:25 David Brownell
2007-03-02 5:48 ` Andrew Victor [this message]
2007-03-02 18:45 ` David Brownell
2007-03-02 9:26 ` Haavard Skinnemoen
2007-03-02 7:20 Milan Svoboda
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=1172814491.26751.4.camel@fuzzie.sanpeople.com \
--to=andrew@sanpeople.com \
--cc=david-b@pacbell.net \
--cc=hskinnemoen@atmel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=msvoboda@ra.rockwell.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®