From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Wahren Subject: Re: [PATCH 7/7] spi: bcm2835: Speed up FIFO access if fill level is known Date: Tue, 13 Nov 2018 20:07:17 +0100 (CET) Message-ID: <230536172.259102.1542136037433@email.ionos.de> References: <807EBC97-54BD-49D5-86C8-3768FB4C0105@martin.sperl.org> <52205641.172367.1541849134970@email.ionos.de> <20181113080740.lrhfo656m7e4kb7a@wunner.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Mathias Duckeck , Mark Brown , linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Noralf Tronnes , linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Frank Pavlic To: Lukas Wunner Return-path: In-Reply-To: <20181113080740.lrhfo656m7e4kb7a-JFq808J9C/izQB+pC5nmwQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-rpi-kernel" Errors-To: linux-rpi-kernel-bounces+glkr-linux-rpi-kernel=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-spi.vger.kernel.org > Lukas Wunner hat am 13. November 2018 um 09:07 geschrieben: > > > On Sat, Nov 10, 2018 at 12:25:34PM +0100, Stefan Wahren wrote: > > > On 08.11.2018, at 08:06, Lukas Wunner wrote: > > > > +#define BCM2835_SPI_FIFO_SIZE 64 > > > > +#define BCM2835_SPI_FIFO_SIZE_3_4 48 > > > > I only have doubts about the naming FIFO_SIZE_3_4 because it describe > > a fill level not a size. > > Hm, it's three quarters of the FIFO's size, so seems sufficiently apt? Just a thought because only from the define name i wouldn't think of three quarters first. Since i don't have a better solution, please go on.