All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shawn Guo <shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Chao Fu <b44548-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
	R64188-KZfg59tc24xl57MIdRCFDg@public.gmane.org
Subject: Re: [PATCH 1/3] spi:fsl-dspi:add dspi tcfq mode transfer support
Date: Sun, 28 Sep 2014 16:52:18 +0800	[thread overview]
Message-ID: <20140928085216.GA2383@dragon> (raw)
In-Reply-To: <1411640665-20671-1-git-send-email-b44548-KZfg59tc24xl57MIdRCFDg@public.gmane.org>

On Thu, Sep 25, 2014 at 06:24:23PM +0800, Chao Fu wrote:
> From: Chao Fu <B44548-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
> 
> TCFQ is interrupt of Transfer Complete Flag in DSPI module.
> EOQ is interrupt of End of Queue Flag in DSPI module.
> For adopting of different platform, either of them is a way of DSPI
> transfer data. This patch add TCF support for DSPI module  in other platform.
> 
> The software will be changed in two transfer methods as followwing:
> 		 EOQ			TCFQ
> transfer data: dspi_eoq_write	  dspi_tcfq_write
> receive data:  dspi_eoq_read	  dspi_tcfq_read
> 
> Using which method will decided by paltform soc dtsi file.
> 
> Remove bitbang:
> Add tcf funtions, DSPI module need get cs change information in a spi transfer.
> According cs change, DSPI will give last data the right flag. Bitbang provide
> cs change behind the last data in a transfer. So DSPI can not deal the last data in
> every transfer properly, so remove the bitbang in the driver.
> 
> Merge duplicate code:
> 	dspi_data_from_popr
> 	dspi_data_to_pushr
> 
> Remove clk reference in regmap I/O:
> Set the clk parament is NULL in devm_regmap_init_mmio_clk, it will avoid clk handle
> in every register read/write, and advance tranferring efficiency.
> 
> Signed-off-by: Chao Fu      <b44548-KZfg59tc24xl57MIdRCFDg@public.gmane.org>

It looks you are doing too many things in a single patch.  You should
probably split into several patches to make the review process a little
easier.

Shawn
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: shawn.guo@linaro.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] spi:fsl-dspi:add dspi tcfq mode transfer support
Date: Sun, 28 Sep 2014 16:52:18 +0800	[thread overview]
Message-ID: <20140928085216.GA2383@dragon> (raw)
In-Reply-To: <1411640665-20671-1-git-send-email-b44548@freescale.com>

On Thu, Sep 25, 2014 at 06:24:23PM +0800, Chao Fu wrote:
> From: Chao Fu <B44548@freescale.com>
> 
> TCFQ is interrupt of Transfer Complete Flag in DSPI module.
> EOQ is interrupt of End of Queue Flag in DSPI module.
> For adopting of different platform, either of them is a way of DSPI
> transfer data. This patch add TCF support for DSPI module  in other platform.
> 
> The software will be changed in two transfer methods as followwing:
> 		 EOQ			TCFQ
> transfer data: dspi_eoq_write	  dspi_tcfq_write
> receive data:  dspi_eoq_read	  dspi_tcfq_read
> 
> Using which method will decided by paltform soc dtsi file.
> 
> Remove bitbang:
> Add tcf funtions, DSPI module need get cs change information in a spi transfer.
> According cs change, DSPI will give last data the right flag. Bitbang provide
> cs change behind the last data in a transfer. So DSPI can not deal the last data in
> every transfer properly, so remove the bitbang in the driver.
> 
> Merge duplicate code:
> 	dspi_data_from_popr
> 	dspi_data_to_pushr
> 
> Remove clk reference in regmap I/O:
> Set the clk parament is NULL in devm_regmap_init_mmio_clk, it will avoid clk handle
> in every register read/write, and advance tranferring efficiency.
> 
> Signed-off-by: Chao Fu      <b44548@freescale.com>

It looks you are doing too many things in a single patch.  You should
probably split into several patches to make the review process a little
easier.

Shawn

  parent reply	other threads:[~2014-09-28  8:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-25 10:24 [PATCH 1/3] spi:fsl-dspi:add dspi tcfq mode transfer support Chao Fu
2014-09-25 10:24 ` Chao Fu
2014-09-25 10:24 ` [PATCH 2/3] arm:dts:vf-610:add vybrid DSPI TCF " Chao Fu
2014-09-25 10:24   ` Chao Fu
2014-09-25 10:24 ` [PATCH 3/3] Documentation:spi:fsl-dspi:add DSPI tcf " Chao Fu
2014-09-25 10:24   ` Chao Fu
     [not found]   ` <1411640665-20671-3-git-send-email-b44548-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2014-09-28  8:58     ` Shawn Guo
2014-09-28  8:58       ` Shawn Guo
     [not found] ` <1411640665-20671-1-git-send-email-b44548-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2014-09-28  8:52   ` Shawn Guo [this message]
2014-09-28  8:52     ` [PATCH 1/3] spi:fsl-dspi:add dspi tcfq mode " Shawn Guo
2014-09-28 11:19   ` Mark Brown
2014-09-28 11:19     ` Mark Brown

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=20140928085216.GA2383@dragon \
    --to=shawn.guo-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \
    --cc=R64188-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
    --cc=b44548-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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.