linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wolfram Sang <w.sang@pengutronix.de>
To: Luotao Fu <l.fu@pengutronix.de>
Cc: Grant Likely <grant.likely@secretlab.ca>,
	spi-devel-general@lists.sourceforge.net,
	David Brownell <dbrownell@users.sourceforge.net>,
	linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org
Subject: Re: [PATCH 2/3] mpc52xx_spi: add missing mode_bits definition
Date: Wed, 11 Nov 2009 11:38:53 +0100	[thread overview]
Message-ID: <20091111103853.GB4234@pengutronix.de> (raw)
In-Reply-To: <1257844329-20687-3-git-send-email-l.fu@pengutronix.de>

[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]

On Tue, Nov 10, 2009 at 10:12:08AM +0100, Luotao Fu wrote:
> Signed-off-by: Luotao Fu <l.fu@pengutronix.de>

SPI_CS_HIGH should be dropped, otherwise:

Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>

> ---
>  drivers/spi/mpc52xx_spi.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/spi/mpc52xx_spi.c b/drivers/spi/mpc52xx_spi.c
> index 5b036f2..79ba678 100644
> --- a/drivers/spi/mpc52xx_spi.c
> +++ b/drivers/spi/mpc52xx_spi.c
> @@ -430,6 +430,8 @@ static int __devinit mpc52xx_spi_probe(struct of_device *op,
>  	master->num_chipselect = 1;
>  	master->setup = mpc52xx_spi_setup;
>  	master->transfer = mpc52xx_spi_transfer;
> +	master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST;
> +
>  	dev_set_drvdata(&op->dev, master);
>  
>  	ms = spi_master_get_devdata(master);
> -- 
> 1.6.5.2
> 
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  parent reply	other threads:[~2009-11-11 10:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-10  9:12 Patches for mpc52xx_spi Luotao Fu
     [not found] ` <1257844329-20687-1-git-send-email-l.fu-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2009-11-10  9:12   ` [PATCH 1/3] mpc52xx_spi: fix clearing status register Luotao Fu
2009-11-10  9:12     ` [PATCH 2/3] mpc52xx_spi: add missing mode_bits definition Luotao Fu
     [not found]       ` <1257844329-20687-3-git-send-email-l.fu-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2009-11-10  9:12         ` [PATCH 3/3] mpc52xx_spi: add gpio chipselect Luotao Fu
2009-11-11 10:50           ` [spi-devel-general] " Wolfram Sang
2009-11-11 10:38       ` Wolfram Sang [this message]
2009-11-11  9:48     ` [PATCH 1/3] mpc52xx_spi: fix clearing status register Wolfram Sang
2009-11-13 10:41 ` [V2] Patches for mpc52xx_spi Luotao Fu
     [not found]   ` <1258108877-25435-1-git-send-email-l.fu-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2009-11-13 10:41     ` [PATCH 1/3] [V2] mpc52xx_spi: fix clearing status register Luotao Fu
2009-11-13 10:41       ` [PATCH 2/3] [V2] mpc52xx_spi: add missing mode_bits definition Luotao Fu
     [not found]         ` <1258108877-25435-3-git-send-email-l.fu-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2009-11-13 10:41           ` [PATCH 3/3] [V2] mpc52xx_spi: add gpio chipselect Luotao Fu
2009-11-13 11:10             ` Wolfram Sang
2009-11-13 18:22               ` Grant Likely
2009-11-13 18:53   ` [V2] Patches for mpc52xx_spi Grant Likely

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=20091111103853.GB4234@pengutronix.de \
    --to=w.sang@pengutronix.de \
    --cc=dbrownell@users.sourceforge.net \
    --cc=grant.likely@secretlab.ca \
    --cc=l.fu@pengutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=spi-devel-general@lists.sourceforge.net \
    /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).