All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: wangyuhang <wangyuhang2014@gmail.com>
Cc: devicetree@vger.kernel.org, linux-spi@vger.kernel.org,
	broonie@kernel.org, linux-mtd@lists.infradead.org, pekon@ti.com,
	sourav.poddar@ti.com
Subject: Re: [PATCH V2 1/2] spi: dual and quad support(device tree)
Date: Fri, 30 Aug 2013 15:20:13 -0600	[thread overview]
Message-ID: <52210C8D.7020609@wwwdotorg.org> (raw)
In-Reply-To: <1377564603-4030-1-git-send-email-wangyuhang2014@gmail.com>

On 08/26/2013 06:50 PM, wangyuhang wrote:
> fix two things in patch:
> commit id:f477b7fb13df2b843997559ff34e87d054ba6538
> 
> 1.change the name of property: spi-tx-nbits and spi-rx-nbits to
> spi-tmax-nbits and spi-rmax-nbits, aimed to make that name different
> from the member of spi_transfer(tx_nbits and rx_nbits). using tmax
> and rmax here to describe that it is the max transfer bits that the
> members in spi_transfer(tx_nbits and rx_nbits) can reach.
> 2.change property spi-tmax-nbits and spi-rmax-nbits to optional.
> If User don't set spi-tmax-nbits or spi-rmax-nbits, spi device mode
> should be regarded as SINGLE, not return an error. In such case, user
> don't have to modify the old dts files to fit the new spi framework.

> diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c

> +		} else {
> +			switch (be32_to_cpup(prop)) {
> +			case SPI_NBITS_SINGLE:
> +				break;
> +			case SPI_NBITS_DUAL:
> +				spi->mode |= SPI_TX_DUAL;
> +				break;
> +			case SPI_NBITS_QUAD:
> +				spi->mode |= SPI_TX_QUAD;
> +				break;
> +			default:
> +				dev_err(&master->dev,
> +					"spi-tmax-nbits value is not supported\n");
> +				spi_dev_put(spi);
> +				continue;

You're missing a closing brace here; this patch doesn't compile...

>  		}

WARNING: multiple messages have this Message-ID (diff)
From: Stephen Warren <swarren@wwwdotorg.org>
To: wangyuhang <wangyuhang2014@gmail.com>
Cc: devicetree@vger.kernel.org, linux-spi@vger.kernel.org,
	broonie@kernel.org, linux-mtd@lists.infradead.org, pekon@ti.com,
	sourav.poddar@ti.com
Subject: Re: [PATCH V2 1/2] spi: dual and quad support(device tree)
Date: Fri, 30 Aug 2013 15:20:13 -0600	[thread overview]
Message-ID: <52210C8D.7020609@wwwdotorg.org> (raw)
In-Reply-To: <1377564603-4030-1-git-send-email-wangyuhang2014@gmail.com>

On 08/26/2013 06:50 PM, wangyuhang wrote:
> fix two things in patch:
> commit id:f477b7fb13df2b843997559ff34e87d054ba6538
> 
> 1.change the name of property: spi-tx-nbits and spi-rx-nbits to
> spi-tmax-nbits and spi-rmax-nbits, aimed to make that name different
> from the member of spi_transfer(tx_nbits and rx_nbits). using tmax
> and rmax here to describe that it is the max transfer bits that the
> members in spi_transfer(tx_nbits and rx_nbits) can reach.
> 2.change property spi-tmax-nbits and spi-rmax-nbits to optional.
> If User don't set spi-tmax-nbits or spi-rmax-nbits, spi device mode
> should be regarded as SINGLE, not return an error. In such case, user
> don't have to modify the old dts files to fit the new spi framework.

> diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c

> +		} else {
> +			switch (be32_to_cpup(prop)) {
> +			case SPI_NBITS_SINGLE:
> +				break;
> +			case SPI_NBITS_DUAL:
> +				spi->mode |= SPI_TX_DUAL;
> +				break;
> +			case SPI_NBITS_QUAD:
> +				spi->mode |= SPI_TX_QUAD;
> +				break;
> +			default:
> +				dev_err(&master->dev,
> +					"spi-tmax-nbits value is not supported\n");
> +				spi_dev_put(spi);
> +				continue;

You're missing a closing brace here; this patch doesn't compile...

>  		}


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

  parent reply	other threads:[~2013-08-30 21:20 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-27  0:50 [PATCH V2 1/2] spi: dual and quad support(device tree) wangyuhang
2013-08-27  0:50 ` wangyuhang
2013-08-27  0:50 ` [PATCH V2 2/2] " wangyuhang
2013-08-27  0:50   ` wangyuhang
2013-08-27  4:03   ` Gupta, Pekon
2013-08-27  4:03     ` Gupta, Pekon
2013-08-30 21:26   ` Stephen Warren
2013-08-30 21:26     ` Stephen Warren
2013-08-30 22:23     ` Mark Brown
2013-08-30 22:23       ` Mark Brown
2013-09-01  8:05     ` yuhang wang
2013-09-01  8:05       ` yuhang wang
2013-08-30 21:30   ` Tomasz Figa
2013-08-30 21:30     ` Tomasz Figa
2013-09-01  8:14     ` yuhang wang
2013-09-01  8:14       ` yuhang wang
2013-08-27  4:09 ` [PATCH V2 1/2] " Gupta, Pekon
2013-08-27  4:09   ` Gupta, Pekon
2013-08-27  4:58   ` yuhang wang
2013-08-27  4:58     ` yuhang wang
2013-08-27  7:56     ` yuhang wang
2013-08-27  7:56       ` yuhang wang
2013-08-27  8:37       ` Gupta, Pekon
2013-08-27  8:37         ` Gupta, Pekon
2013-08-30 21:20 ` Stephen Warren [this message]
2013-08-30 21:20   ` Stephen Warren

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=52210C8D.7020609@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=pekon@ti.com \
    --cc=sourav.poddar@ti.com \
    --cc=wangyuhang2014@gmail.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 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.