From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
To: Stefan Roese <sr@denx.de>
Cc: spi-devel-general@lists.sourceforge.net, weo@reccoware.de,
linuxppc-dev@ozlabs.org
Subject: Re: [PATCH v3] spi: Add PPC4xx SPI driver
Date: Fri, 31 Oct 2008 06:34:48 -0400 [thread overview]
Message-ID: <20081031063448.3fcb3421@zod.rchland.ibm.com> (raw)
In-Reply-To: <200810310931.19565.sr@denx.de>
On Fri, 31 Oct 2008 09:31:19 +0100
Stefan Roese <sr@denx.de> wrote:
> On Wednesday 29 October 2008, Josh Boyer wrote:
> > Looks pretty good. Just a few minor comments/questions below.
>
> Thanks. I also added some comments below.
>
> > Also, do you have a patch for a DTS file that gives an example of how to
> > instantiate the SPI stuff in the device tree?
>
> OK, I'll add a DTS patch to the next version.
Ok thanks.
> > >+ /* send the first byte */
> > >+ data = hw->tx ? hw->tx[0] : 0;
> > >+ out_8(&hw->regs->txd, data);
> > >+ out_8(&hw->regs->cr, SPI_PPC4XX_CR_STR);
> >
> > Maybe iowrite8? Same comment elsewhere.
>
> Why? We use the in_/out_xxx() accessor function for all other 4xx driver as
> well.
Yeah. We used to have all of 4xx in arch/ppc too. ;)
Seriously though, it doesn't really bother me too much. The
io{read,write} functions do have a bit better clarity as to endian-ness
though.
> > >+ wait_for_completion(&hw->done);
> > >+
> > >+ return hw->count;
> > >+}
> > >+
> >
> > <snip>
> >
> > >+static struct of_device_id spi_ppc4xx_of_match[] = {
> > >+ { .compatible = "ibm,spi", },
> > >+ {},
> > >+};
> >
> > I'm wondering if that is too generic of a match. In theory,
> > IBM could have another SPI controller that isn't for 4xx.
> > Maybe "ibm,spi-4xx" ?
>
> Right. I was doing it the same way as already done before, e.g. "ibm,iic". For
> the gpio driver we already switched to "ibm,ppc4xx-gpio". So how
> about "ibm,ppc4xx-spi"?
Sounds fine to me.
josh
prev parent reply other threads:[~2008-10-31 10:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-26 5:48 [PATCH v3] spi: Add PPC4xx SPI driver Stefan Roese
2008-10-29 14:53 ` Josh Boyer
2008-10-30 23:24 ` Jason Hanna
2008-11-21 3:17 ` [spi-devel-general] " David Brownell
2008-10-31 8:31 ` Stefan Roese
2008-10-31 10:34 ` Josh Boyer [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=20081031063448.3fcb3421@zod.rchland.ibm.com \
--to=jwboyer@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=spi-devel-general@lists.sourceforge.net \
--cc=sr@denx.de \
--cc=weo@reccoware.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).