From mboxrd@z Thu Jan 1 00:00:00 1970 From: Barry Song <21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Subject: Re: [PATCH 5/5] spi: sirf: fix spi full-duplex DMA transferring issue Date: Tue, 15 Apr 2014 17:57:39 +0800 Message-ID: References: <1397457001-5266-1-git-send-email-21cnbao@gmail.com> <1397457001-5266-6-git-send-email-21cnbao@gmail.com> <20140414200628.GX25182@sirena.org.uk> <20140415092609.GJ12304@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , DL-SHA-WorkGroupLinux , Qipan Li , Barry Song To: Mark Brown Return-path: In-Reply-To: <20140415092609.GJ12304-GFdadSzt00ze9xe1eoZjHA@public.gmane.org> Sender: linux-spi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: 2014-04-15 17:26 GMT+08:00 Mark Brown : > On Tue, Apr 15, 2014 at 09:43:24AM +0800, Barry Song wrote: > >> i felt strange too at the first look from internal gerrit. qipan told >> me there is one: >> drivers/spi/spidev.c > > OK, that needs fixing. That code predates anyone doing DMA. if it is out of specification, it seems fixing spidev.c is not enough as spi transfer actually needs an precondition of tx!=rx now. -barry -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: 21cnbao@gmail.com (Barry Song) Date: Tue, 15 Apr 2014 17:57:39 +0800 Subject: [PATCH 5/5] spi: sirf: fix spi full-duplex DMA transferring issue In-Reply-To: <20140415092609.GJ12304@sirena.org.uk> References: <1397457001-5266-1-git-send-email-21cnbao@gmail.com> <1397457001-5266-6-git-send-email-21cnbao@gmail.com> <20140414200628.GX25182@sirena.org.uk> <20140415092609.GJ12304@sirena.org.uk> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 2014-04-15 17:26 GMT+08:00 Mark Brown : > On Tue, Apr 15, 2014 at 09:43:24AM +0800, Barry Song wrote: > >> i felt strange too at the first look from internal gerrit. qipan told >> me there is one: >> drivers/spi/spidev.c > > OK, that needs fixing. That code predates anyone doing DMA. if it is out of specification, it seems fixing spidev.c is not enough as spi transfer actually needs an precondition of tx!=rx now. -barry