From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3] spi: add new driver for OpenCores tiny_spi
Date: Mon, 11 Apr 2011 21:54:46 +0200 [thread overview]
Message-ID: <20110411195446.5428D14F02E@gemini.denx.de> (raw)
In-Reply-To: <1295323751-12085-1-git-send-email-thomas@wytron.com.tw>
Dear Thomas Chou,
In message <1295323751-12085-1-git-send-email-thomas@wytron.com.tw> you wrote:
> This patch adds support for OpenCores tiny_spi.
>
> http://opencores.org/project,tiny_spi
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> for u-boot
> v2, use const and clean up as Mike suggested.
> v3, use struct instead of base+offset as Wolfgang suggested.
>
> drivers/spi/Makefile | 1 +
> drivers/spi/oc_tiny_spi.c | 248 +++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 249 insertions(+), 0 deletions(-)
> create mode 100644 drivers/spi/oc_tiny_spi.c
Sorry, but I see only now trhat there is an issue left:
> +struct tiny_spi_regs {
> + volatile unsigned rxdata; /* Rx data reg */
> + volatile unsigned txdata; /* Tx data reg */
> + volatile unsigned status; /* Status reg */
> + volatile unsigned control; /* Control reg */
> + volatile unsigned baud; /* Baud reg */
> +};
Please drop all these volatiles; see
Documentation/volatile-considered-harmful.txt in the Linux source
tree.
Thanks.
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Accident: A condition in which presence of mind is good, but absence
of body is better.
next prev parent reply other threads:[~2011-04-11 19:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-08 23:56 [U-Boot] [PATCH] spi: add new driver for OpenCores tiny_spi Thomas Chou
2011-01-09 1:44 ` Mike Frysinger
2011-01-10 2:24 ` [U-Boot] [PATCH v2] " Thomas Chou
2011-01-17 21:23 ` Wolfgang Denk
2011-01-18 2:08 ` Thomas Chou
2011-01-18 4:09 ` [U-Boot] [PATCH v3] " Thomas Chou
2011-04-11 19:54 ` Wolfgang Denk [this message]
2011-04-12 5:48 ` [U-Boot] [PATCH v4] " Thomas Chou
2011-04-30 19:02 ` Wolfgang Denk
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=20110411195446.5428D14F02E@gemini.denx.de \
--to=wd@denx.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.